BGP help with route map

Answered Question
Jun 17th, 2010
User Badges:
  • Purple, 4500 points or more

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

Correct Answer by Giuseppe Larosa about 6 years 11 months ago

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Giuseppe Larosa Thu, 06/17/2010 - 23:35
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

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

John Blakley Fri, 06/18/2010 - 06:46
User Badges:
  • Purple, 4500 points or more

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

francisco_1 Fri, 06/18/2010 - 07:02
User Badges:
  • Gold, 750 points or more

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.

Actions

This Discussion