12-13-2016 10:45 AM - edited 03-05-2019 07:40 AM
Hi all,
I wanted to find out if there's a way to find out which route-maps are being used/get hit and which ones are inactive/no hits. We've numerous route-maps on 3 switches and we'd like to perform a route-map clean up so we can get rid of the ones that aren't used.
Thanks in advance.
Respectfully,
~zK
12-13-2016 10:53 AM
Hello,
the 'show route-map' exec command shows all route maps configured, and the matches.
Here is an example:
Router# show route-map
route-map ROUTE-MAP-NAME, permit, sequence 10
Match clauses:
ip address (access-lists): 1
metric 10
Continue: sequence 40
Set clauses:
as-path prepend 10
Policy routing matches: 0 packets, 0 bytes
route-map ROUTE-MAP-NAME, permit, sequence 20
Match clauses:
ip address (access-lists): 2
metric 20
Set clauses:
as-path prepend 10 10
Policy routing matches: 0 packets, 0 bytes
route-map ROUTE-MAP-NAME, permit, sequence 30
Match clauses:
Continue: to next entry 40
Set clauses:
as-path prepend 10 10 10
Policy routing matches: 0 packets, 0 bytes
route-map ROUTE-MAP-NAME, deny, sequence 40
Match clauses:
community (community-list filter): 20:2
Set clauses:
local-preference 100
Policy routing matches: 0 packets, 0 bytes
route-map LOCAL-POLICY-MAP, permit, sequence 10
Match clauses:
Set clauses:
community 655370
Policy routing matches: 0 packets, 0 bytes
12-14-2016 02:34 PM
I executed the same command but it didn't show whether a route-map was hit or not.
Also, if a route-map statement doesn't include a match or set clause, is it even used? Here's an example: route-map BGP_TO_SK_EIGRP permit 10
sh route-map
route-map ARB_EIGRP_TO_BGP, permit, sequence 10
Match clauses:
ip address prefix-lists: AllowARB
Set clauses:
route-map BGP_TO_CalSK_EIGRP, permit, sequence 10
Match clauses:
ip address prefix-lists: Agency_SKShared
Set clauses:
route-map BGP_TO_CalCycle_EIGRP, permit, sequence 10
Match clauses:
ip address prefix-lists: CalCycle_SKShared
Set clauses:
route-map BGP_TO_SK_EIGRP, permit, sequence 10
Match clauses:
Set clauses:
route-map BGP_TO_RCB_EIGRP, permit, sequence 10
Match clauses:
ip address prefix-lists: RCB_SKShared
Set clauses:
route-map CALSK_multicast, permit, sequence 10
Match clauses:
Set clauses:
ip next-hop 10.26.30.3
route-map PR_EIGRP_TO_BGP, permit, sequence 10
Match clauses:
ip address prefix-lists: AllowPR
Set clauses:
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