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