Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

BGP:Using local pref instead of BGP conditional route advertisement

Imagine I want to make 3750_SWITCH pick RouterC as a path in case traffic from RouterB fails.

3550 switch:

router bgp 65123

neighbor [router b] remote-as [as #]

neighbor [router c] remote-as [as #]

neighbor [router b] route-map local-pref

route-map local-pref

set local-preference 200

Is there any drawback if I use 'local preference' attribute in order to control path the 3750_SWITCH should take ? I have been taking a look at 'Conditionally Advertising BGP Routes' as well. However, it seems to me that the 'local preference' method below should work and it is simple to implement.

If you think there is a relevant technical reason not to use the local preference method below and instead I should use BGP conditional route advertisement, please let me know.

Internet-RouterB---->3750_SWITCH<-----RouterC--Internet

I want to make 3750_SWITCH pick RouterC in case traffic from RouterB fails.

3550 switch:

router bgp 65123

neighbor [router b] remote-as [as #]

neighbor [router c] remote-as [as #]

neighbor [router b] route-map local-pref

route-map local-pref

set local-preference 200

3 REPLIES
Hall of Fame Super Silver

Re: BGP:Using local pref instead of BGP conditional route advert

Marlon

For what you are doing I believe that local preference is the better thing to do.

HTH

Rick

Re: BGP:Using local pref instead of BGP conditional route advert

If both Router B and C advertises the same routes, you can also try to use weight. Setting a higher weight pointing to Router B.

HTH,

John

Hall of Fame Super Bronze

Re: BGP:Using local pref instead of BGP conditional route advert

For your requirement, I recommend using both (local preference at the 3550 switch and conditional advertising at both routers).

Without conditional route, the routers will always advertise the default route even if their links are down, I'm assuming you don't want that.

The local preference on this case it's only assisting on the route selection of both default routes when both routers have the link up (they will both announce 0.0.0.0 back to you).

160
Views
0
Helpful
3
Replies
CreatePlease login to create content