[j-nsp] OSPF external routes

Olivier Benghozi olivier.benghozi at wifirst.fr
Mon Feb 10 07:57:37 EST 2014


You can match them in an import policy from ebgp to the rib with a lower pref to prefer them by example.

A better option would be to have a clean ibgp between your routers (mounted on loopbacks), to avoid redistributing ebgp to ospf, to keep only intercos & loopbacks in ospf, and to deal only with bgp routes for these external destinations (on which you set a more-than-100 local-pref on the side you want to prefer).

Even better option would be to keep only loopbacks & internal, ospf intercos in ospf and to have everything else (including external intercos) in ibgp.
Even even better option would be to also use next-hop-self in ibgp.


Le 10 févr. 2014 à 12:34, R S <dim0sal at hotmail.com> a écrit :

> Hi Olivier
> can I change the preference only for selected routes ?
> 
> Which is the best and clean solution from your point of view ?
> 
> Kind regards
> 
> From: dim0sal at hotmail.com
> To: juniper-nsp at puck.nether.net
> Subject: OSPF external routes
> Date: Fri, 7 Feb 2014 15:37:55 +0000
> 
> 
> 
> 
> I’ve a couple of OSPF ASBR router (ASBR1 and ASBR2)  each one with a BGP peer with R1 and R2.
> 
> 10.10.0.0/16- R1 -- BGP -- ASBR1---OSPF area 0--- ASBR2 -- BGP –R2- 10.10.0.0/16
> 
> Is there a way to manipulate in Junos the external LSA those ASBR router will generate towards OSPF area 0 in order to prefer one of these BGP peer for the same network ?
> 
> Tks




More information about the juniper-nsp mailing list