06-17-2010 09:50 AM - edited 03-06-2019 11:37 AM
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
Solved! Go to Solution.
06-17-2010 11:35 PM
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
06-17-2010 11:35 PM
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
06-18-2010 06:46 AM
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
06-18-2010 07:02 AM
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.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: