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.

BGP help with route map

All,

I'm setting up a routing policy to change the local pref on a router for incoming routes. What I have is something like this:

172.16.100.2 peers with .3 and .4

On .2, I want to set local pref for .3 to be 150 and .4 to be .151

I have a route-map that successfully sets .3 to be 150, but I can't get .4 to be set to .151 because the route-map stops. I *think* the continue option is all I need, but the IOS version that I'm using in GNS doesn't have the continue option. Does it sound like I'm on the right track at least, or is there another way of doing this?

Thanks,

John

HTH, John *** Please rate all useful posts ***
1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Super Silver

Re: BGP help with route map

Hello John,

you can use two distinct route-maps applied at neighbor level

neigh 172.16.100.3 route-map sel_pref_peer1 in

neigh 172.16.100.4 route-map sel_pref_peer2 in

route-map sel_pref_peer1 permit 10

! your match conditions here, if you want to rise only for selected routes

set local-preference 150

! if you want to accept other routes without increasing local-pref

route-map sel_pref_peer1 permit 20

route-map sel_pref_peer2 permit 10

! your match conditions here, if you want to rise only for selected routes

set local-preference 151

! if you want to accept other routes without increasing local-pref

route-map sel_pref_peer2 permit 20

so you should not need a continue option as the route-maps are applied per neighbor

Hope to help

Giuseppe

3 REPLIES
Hall of Fame Super Silver

Re: BGP help with route map

Hello John,

you can use two distinct route-maps applied at neighbor level

neigh 172.16.100.3 route-map sel_pref_peer1 in

neigh 172.16.100.4 route-map sel_pref_peer2 in

route-map sel_pref_peer1 permit 10

! your match conditions here, if you want to rise only for selected routes

set local-preference 150

! if you want to accept other routes without increasing local-pref

route-map sel_pref_peer1 permit 20

route-map sel_pref_peer2 permit 10

! your match conditions here, if you want to rise only for selected routes

set local-preference 151

! if you want to accept other routes without increasing local-pref

route-map sel_pref_peer2 permit 20

so you should not need a continue option as the route-maps are applied per neighbor

Hope to help

Giuseppe

Re: BGP help with route map

Sorry Guiseppe....I didn't explain myself well and also noticed that I posted in the wrong forum

I wanted to use only one route map for both peers. I think I'd need the continue option for that, but I could do separate route maps.

Thanks!

John

HTH, John *** Please rate all useful posts ***

Re: BGP help with route map

In your case setting the local preference using the same route-map for 2 different peers i dont think will work!!. You gonna have to use seperate route-maps.

Francisco.

171
Views
0
Helpful
3
Replies