I'm trying to figure out just what you're doing, the picture isn't quite clear. 
It sounds like you want to advertise routes learned via ospf over bgp.
In that case, you just need to write an appropriate policy statement to apply 
to those routes to tune metrics, etc.

Additionally, you need to play some rib-group games to get your routes to show 
up. Something like this:
if-rg {
    import-rib [ inet.0 inet.2 ];
}
ospf-rg {
    export-rib inet.0;
    import-rib [ inet.0 inet.2 ];
}
mcrg {
    export-rib inet.2;
    import-rib inet.2;
}

That's just an example, so be sure to tune it to apply to your application.

On Mar 23, 2013, at 9:13 AM, Piotr <piotr.1...@interia.pl>
 wrote:

> 
> Hello,
> 
> I have to connect two networks via bgp, both have own ospf area0, there are 2 
> points od redistribution between BGP and OSPF. We use med to have symmetry, 
> because Junipers must work in flow based (ipsec).
> 
> When we set on cisco  default AD, on juniper we change bgp ad to 20 ( like in 
> Cisco) juniper prefer routes from ibgp and there is a problem with 
> redistribution between ospf and ebgp because there is no prefix from ospf in 
> rib.
> 
> I think that when i remove internal bgp session there should be ok, in rib 
> there will be prefixes only from ospf so there will be no problem wirh 
> redistribution? There are some disadvantages when there is no ibgp ?
> 
> Thanks for any clue or notice,
> 
> thanks,
> regards,
> Piotr
> 
> 
> 
> _______________________________________________
> juniper-nsp mailing list juniper-nsp@puck.nether.net
> https://puck.nether.net/mailman/listinfo/juniper-nsp


_______________________________________________
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp

Reply via email to