In Cisco IOS, if I have a route-map entry as follows:
route-map redistribute deny 10 match tag 65000 100 !
Is there a 'show' command that will give me a list of all routes that will match that stanza?
EDIT: To those thinking about using 'show ip route' and 'inc', the summary form of show ip route doesn't include tag information:
Router>show ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is x.x.x.x to network 0.0.0.0 B 188.8.131.52/24 [20/2948] via 184.108.40.206, 1d19h B 220.127.116.11/24 [20/0] via 18.104.22.168, 1d19h B 22.214.171.124/24 [20/0] via 126.96.36.199, 1d19h ...
It is only displayed when you provide a prefix as an argument:
route-views.oregon-ix.net>show ip route 188.8.131.52 Routing entry for 184.108.40.206/24 Known via "bgp 6447", distance 20, metric 2948 Tag 3549, type external Last update from 220.127.116.11 1d19h ago Routing Descriptor Blocks: * 18.104.22.168, from 22.214.171.124, 1d19h ago Route metric is 2948, traffic share count is 1 AS Hops 2 **Route tag 3549**
So one 'show ip route' command doesn't let you get information about all routes tagged with a specific tag.