cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
332
Views
0
Helpful
3
Replies

BGP help with route map

John Blakley
VIP Alumni
VIP Alumni

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

Giuseppe Larosa
Hall of Fame
Hall of Fame

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

View solution in original post

3 Replies 3

Giuseppe Larosa
Hall of Fame
Hall of Fame

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

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 ***

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.

Getting Started

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:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco