cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
748
Views
5
Helpful
4
Comments
velo84
Level 1
Level 1

I'm currently redistributing OSPF to BGP and setting a local pref on the routes. Currently this works fine and having no issues. 

 ip prefix-list ospf-routes seq 10 permit 172.16.100.0/24
 
 route-map ospf-bgp permit 10
  match ip address prefix-list ospf-routes
  set local-preference 100

What I would like to do is have some routes with a local pref of 100 and some with a local pref of 200. I tried to create a new ACL and then a new permit statement in the existing route map but it gives an error saying you can only have one match ip statement in a routemap.

 

E.g. I wanted to do this (it doesn't allow this config though)

 ip prefix-list ospf-routes-cust-1 seq 10 permit 172.16.100.0/24
 ip prefix-list ospf-routes-cust-2 seq 10 permit 172.16.200.0/24
 
 route-map ospf-bgp permit 10
  match ip address prefix-list ospf-routes-cust-1
  set local-preference 100
 route-map ospf-bgp permit 20
  match ip address prefix-list ospf-routes-cust-2
  set local-preference 250

What would be the best way to achieve this?

Thanks

4 Comments

 

no route-map ospf-bgp

 

do this first and repeat the config.

I think you can't modify seq 10 of this route-map,

so do this first and then repeat the config.

velo84
Level 1
Level 1

Oh that's odd, I removed it and added it back then it let me. Is that a bug or something? Thanks a lot

That Good,
i think it is not bug but this is only way to modify route-map.

can you please mention that this issue solved.
Thanks 

velo84
Level 1
Level 1

Thanks, unfortunately there is no option for that. Just 'mark as helpful'

 

 

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: