10-28-2016 09:56 AM - edited 03-08-2019 07:57 AM
I have a question related to modifying a route map. Here is my existing route map below. If I need to modify it and add another prefix list do I need to type the full line again otherwise it will override with only one? For instance:
ip prefix-list map_4 permit 192.168.1.10.0/24
route-map bgp_Advertise permit 10
match ip address prefix-list map_1 map_2 map_3 map_4
or do I just do it like this?
ip prefix-list map_4 permit 192.168.1.10.0/24
route-map bgp_Advertise permit 10
match ip address prefix-list map_4
Solved! Go to Solution.
10-28-2016 10:56 AM
Hi,
just tested on IOS Version 12.4(25d). You can just type the one you want to add and it will be prepended.
This is my test:
PE-2#show route-map
route-map redistribute_CE-2, permit, sequence 10
Match clauses:
ip address prefix-lists: allow_ce2
Set clauses:
Policy routing matches: 0 packets, 0 bytes
*****Adding the prefix list
PE-2(config)#route-map redistribute_CE-2
PE-2(config-route-map)#match ip address prefix-list test
PE-2(config-route-map)#do show route-map
route-map redistribute_CE-2, permit, sequence 10
Match clauses:
ip address prefix-lists: allow_ce2 test
Set clauses:
Policy routing matches: 0 packets, 0 bytes
PE-2#show run | sec route-map
route-map redistribute_CE-2 permit 10
match ip address prefix-list allow_ce2 test
Hope it helps
10-28-2016 10:56 AM
Hi,
just tested on IOS Version 12.4(25d). You can just type the one you want to add and it will be prepended.
This is my test:
PE-2#show route-map
route-map redistribute_CE-2, permit, sequence 10
Match clauses:
ip address prefix-lists: allow_ce2
Set clauses:
Policy routing matches: 0 packets, 0 bytes
*****Adding the prefix list
PE-2(config)#route-map redistribute_CE-2
PE-2(config-route-map)#match ip address prefix-list test
PE-2(config-route-map)#do show route-map
route-map redistribute_CE-2, permit, sequence 10
Match clauses:
ip address prefix-lists: allow_ce2 test
Set clauses:
Policy routing matches: 0 packets, 0 bytes
PE-2#show run | sec route-map
route-map redistribute_CE-2 permit 10
match ip address prefix-list allow_ce2 test
Hope it helps
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide