08-14-2018 05:41 AM - edited 08-14-2018 05:42 AM
Hello all!
Any Jedi Master CLI tricks to quickly check where a route-map or a prefix-list is applied? It can be very confusing when you have a lot of BGP sessions and want to know where is a certain map applied.
Let's say I want to know if there are are route-maps affecting 193.XXX.XXX.0/24 prefix. Yes there are. But I don't see where.
Herkul#sh conf | i 193.XXX.XXX.0
ip prefix-list BLA seq 5 permit 193.XXX.XXX.0/24
ip prefix-list BLA-Hosting seq 5 permit 193.XXX.XXX.0/24
This is saying there are prefix lists BLA and BLA-Hosting. But where?
Solved! Go to Solution.
08-14-2018 07:35 AM
Probably the best way is to copy the whole config in notepad, and just search for what you need :).
If there is no elegant way.
08-14-2018 05:54 AM - edited 08-14-2018 06:05 AM
If you just wanted to see all mentions of that prefix list -
"sh run | include BLA"
if it was specifically for BGP -
"sh run | include neighbor.*BLA
Jon
08-14-2018 06:40 AM - edited 08-14-2018 06:48 AM
Hello John,
Thanks for the reply.
I know that.
If I do sh run | i BLA it will tell me there is ip prefix-list and the sequenece number. So how can I see which route-map this prefix list belongs?
In the example:
Herkul#sh conf | i 193.XXX.XXX.0
ip prefix-list BLA seq 5 permit 193.XXX.XXX.0/24
ip prefix-list BLA-Hosting seq 5 permit 193.XXX.XXX.0/24
I want to see which route-map ip prefix-list BLA is applied to.
I want to see which route-map ip prefix-list BLA -Hosting is applied to.
Hope this makes sense.
08-14-2018 06:43 AM
Hi
I guess that you already know but once you find the ACL matching your prefix :
- sh route-map (or more precise : sh route-map | i route-map|<acl_name>) : will print route map
- sh run | i <route-map_name> : will find the application point (interface, bgp peer...)
I don't think that there is another way.
Regards,
08-14-2018 07:06 AM
Yes, the thing is I dont know the route-map. :)
This is a core router with dozens od BGP sessions and hundreds of route-maps. I'm troubleshooting a customer. I know their BGP session and route-map applied to THAT session. But I want to see if on any of the upstream peerings I have any filters regarding this prefix.
Really strange system with prefix lists/route-maps. I would expect more flexibility in troubleshooting. It can be difficult with huge configurations. Easy in GNS3 though :).
08-14-2018 07:35 AM
Probably the best way is to copy the whole config in notepad, and just search for what you need :).
If there is no elegant way.
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: