Use it when redistributed routes flap, take long detours, or appear with the wrong source.
Loop Prevention
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.
1. show ip route <prefix> repeatedly — does the source or next hop change?
2. Trace the prefix through each redistribution point and note the tag.
3. Add tag-based denies where it re-enters its origin.
4. Check distances: does a re-entered external beat the original?
5. Test by removing the source route: does it disappear everywhere?
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
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 First 30 seconds Verify boundary
Immediate answer: Trace route origin and tags across every redistribution boundary before adding another filter or changing administrative distance.
Verification chain: route origin → first redistribution/tag → receiving protocol → second boundary policy → re-entry prevention → stable RIB
Stop condition: A route tag existing in one protocol does not show every redistribution boundary matches and enforces it.
Step 2 Common mistakes Narrow the fault
- Mutual redistribution at two points without tags.
- Not adjusting AD for external routes.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
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.
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.
ReferenceWhat it is1 section · depth on demand
How it works
When routes are redistributed in both directions between two protocols at more than one point, a route can leave one protocol and come back as an external route — causing loops or sub-optimal paths. Prevent it by tagging routes when redistributing and denying tagged routes on the way back, or by filtering with prefix lists and adjusting AD.
ReferenceImportant terms & boundaries2 sections · depth on demand
Key points
- Prefer explicit prefix ownership and allow-list policy
- Tag routes at ingress to a protocol and reject the tag on the return redistribution path
- Summarization can reduce state but is not a substitute for feedback policy
- Administrative distance alone is not a complete loop-prevention design.
In depth
Why two redistribution points cause trouble
With one redistribution point a route cannot return to its origin. With two, a route from domain A can enter domain B at R1 and be redistributed back into A at R2. Whether that hurts depends on administrative distance:
| Scenario at R2 | Competing routes | Winner by AD | Result |
|---|---|---|---|
| Prefix originated in EIGRP | EIGRP internal (90) vs OSPF E2 (110) | EIGRP | Correct path |
| Prefix originated in OSPF | OSPF (110) vs EIGRP external (170) | OSPF | Correct path |
| Prefix originated in RIP, redistributed into OSPF at R1 | RIP (120) vs OSPF E2 (110) | OSPF | R2 sends RIP traffic through the OSPF domain — suboptimal or looping |
| External routes from a third source | EIGRP external (170) vs OSPF E2 (110) | Depends on direction | Possible feedback loop |
Defence in depth
1. Tags — tag at entry, deny the opposite domain's tag at exit (see Route Tags).
2. Prefix ownership — allow-list the prefixes each domain is allowed to export with prefix lists.
3. Distance — make the router prefer the route from the origin domain, for example distance 125 0.0.0.0 255.255.255.255 RIP-PREFIXES under router ospf, or distance ospf external 175.
Detecting a feedback loop
| Evidence | Command |
|---|---|
| Route flaps every few seconds | show ip route 10.30.0.0 — age keeps resetting |
| Next hop alternates between domains | debug ip routing (lab) or repeated show ip route |
| TTL loop in data plane | traceroute 10.30.0.1 shows the same two routers repeating |
| External LSA originated by the "wrong" ASBR | show ip ospf database external 10.30.0.0 — Advertising Router field |
Fix the policy on both redistribution points at the same time; adding a filter on one router only moves the loop.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Routing → Route Redistribution → Loop Prevention. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.