Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Loop Prevention

Direct 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.

When to use this

Use it when redistributed routes flap, take long detours, or appear with the wrong source.

First 30 seconds

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?

Operational verification

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
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE · IOS/IOS XE · Cisco IOS XE
Scope / prerequisiteUse it when redistributed routes flap, take long detours, or appear with the wrong source.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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
Evidence references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

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.

Key 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.
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 R2Competing routesWinner by ADResult
Prefix originated in EIGRPEIGRP internal (90) vs OSPF E2 (110)EIGRPCorrect path
Prefix originated in OSPFOSPF (110) vs EIGRP external (170)OSPFCorrect path
Prefix originated in RIP, redistributed into OSPF at R1RIP (120) vs OSPF E2 (110)OSPFR2 sends RIP traffic through the OSPF domain — suboptimal or looping
External routes from a third sourceEIGRP external (170) vs OSPF E2 (110)Depends on directionPossible 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

EvidenceCommand
Route flaps every few secondsshow ip route 10.30.0.0 — age keeps resetting
Next hop alternates between domainsdebug ip routing (lab) or repeated show ip route
TTL loop in data planetraceroute 10.30.0.1 shows the same two routers repeating
External LSA originated by the "wrong" ASBRshow 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

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%
Terminology layer

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.

Aliases that resolve here
redistribution looproute feedback loop
Confirmation

Confirm action

Continue?