Loop Prevention
Cheat sheet · https://pcornel.dk/topic.php?topic=2616
Answer
Loop prevention in redistribution keeps a route from being sent back into its own domain. The tools are route tags, route-map filters on prefixes, and administrative distance adjustments.
Remember
Tags are the most reliable tool. Prefix filters work but must be kept in step with the network. Distance changes fix which copy wins but not the leak itself. Test by removing and re-adding a source route and watching both domains.
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
show ip route 10.30.0.0debug ip routingshow ip routetraceroute 10.30.0.1show ip ospf database external 10.30.0.0
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=2616