Route Tags
Cheat sheet · https://pcornel.dk/topic.php?topic=2614
Answer
A route tag is a number attached to a route when it is redistributed (set tag). Other routers can match it (match tag) to recognise where the route came from — the standard way to stop routes being redistributed back into their source.
Remember
Tag on the way in, deny that tag on the way out. OSPF external and EIGRP external routes carry the tag; across BGP it is not carried automatically. Pick one tag value per origin domain and document it.
First checks
show ip protocols— what each process redistributes, and with which route-map.show route-map <name>— sequences and how many routes or packets each matched.show ip route <prefix>— the route, its source, distance, metric and tag.show ip ospf database external <prefix>— OSPF external LSA: metric type, metric, tag.show ip eigrp topology <prefix>— EIGRP external data: origin protocol, metric, tag.
Commands
match tag <tag>- Match route-policy metadata by route tag.
set tag <tag>- Set route-policy metadata on routes processed by the route map.
show ip route 10.20.0.0show ip ospf database external 10.20.0.0show ip eigrp topology 10.20.0.0/24show ip route <prefix>
Verify in this order
route installed from the source → redistribute configured on the target process → route-map permits it → seed metric set → external route advertised → neighbours install it → tag prevents it from being fed back
Where it usually breaks
underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2614