Troubleshoot › Symptom cases › Route Redistribution Loops / Suboptimal Routing
Routing · Redistribution / Route SelectionEngineers search this as: 'redistribution ospf bgp suboptimal routing loop' · 'redistribution loop two boundary routers' · 'route takes the long way after redistribution'
Evidence: Cisco documentation only — not yet lab-verified
Two routing domains — classically OSPF on one side and EIGRP or RIP on the other — are joined at TWO boundary routers that copy routes into each other (mutual redistribution). Traffic to a prefix that lives in one domain takes the long way round through the other domain, or circles between the two boundary routers until its TTL expires. Nothing is 'down': both routing protocols show healthy neighbours, yet the path is wrong — and which boundary router goes wrong can swap after a reload or a process restart. That 'works, but by the wrong road, and flips after a reboot' shape is this fault's fingerprint. There is no syslog line for it — it is a design/configuration fault, not a device error.
R2# show ip route 192.168.1.0
Routing entry for 192.168.1.0/24
Known via "eigrp 1", distance 90, metric 2172416, type external
Last update from 10.0.0.5 on GigabitEthernet0/1, 00:03:12 ago
(192.168.1.0 lives natively in the RIP domain, where R2 also learns it at RIP's distance 120. The EIGRP copy at distance 90 wins purely on administrative distance — before any metric is compared — so R2 forwards the long way. In the loop variant, show ip route <prefix> on the two boundary routers points each router at the other for the same prefix, and a traceroute revisits the same hops until TTL expiry.)
Redistribution copies a route from one protocol into another and strips its original metric and origin context; the copy re-enters the network as an 'external' route. Route selection between protocols is decided by administrative distance BEFORE any metric is compared (Cisco doc 8651-21) — so a copied route can beat the genuine native route purely because the protocol carrying the copy has a lower AD.
At a second redistribution point the copy can then be fed back into its own home protocol as if it were new. Cisco doc 8606 states the governing rule in one sentence: never announce information originally received from routing process X back into routing process X. A single redistribution point cannot form a redistribution loop (Cisco doc 4170) — the fault needs two points and an unprotected return path.
Keep the two failure shapes separate. SUBOPTIMAL ROUTING: connectivity works, but by the wrong road — a boundary router prefers the redistributed copy over the native path (Cisco doc 8606's example: two routers learn 192.168.1.0 natively via RIP, redistribute into EIGRP, then each prefers the other's EIGRP copy because EIGRP AD 90 beats RIP AD 120). It is timing-dependent: whichever boundary router converges first decides which one goes suboptimal, and a reload can swap the victim.
ROUTING LOOP / FEEDBACK: the fed-back copy wins outright at both ends, two routers point at each other for the same prefix, and packets circle until TTL expiry. Cisco doc 4170 shows the self-sustaining variant on route LOSS: when the native path disappears, each boundary router installs the other's external copy as its 'backup', re-originates it into the home domain, and the peer's withdrawal flips it back — a constant inject/withdraw race that survives the original failure. A loop is suboptimal routing taken to its limit; suboptimal routing is not necessarily a loop.
Three mechanics decide everything here. First, AD is compared FIRST and is LOCAL to each router — it is never carried in any update — so two routers can legitimately disagree about the same prefix, and 'fixing' AD on one boundary router alone can move the loop rather than remove it. Second, metrics are only compared WITHIN one protocol, after AD has picked the winning source.
Third, redistribution is always OUTBOUND from the routing table: a route that lost the AD contest is not in the table and therefore is not redistributed — which is why the first-converged boundary router 'wins' and the other goes suboptimal.
EIGRP is the partial exception that proves the rule: its internal/external AD split (90 internal vs 170 external) means an EIGRP↔OSPF boundary is partly self-protecting — an OSPF external at AD 110 still beats an EIGRP external at 170 on the way back, while EIGRP internal at 90 beats OSPF — whereas protocols with a SINGLE AD for internal and external (RIP 120, OSPF 110) have no such protection at a RIP↔OSPF boundary. That boundary is the dangerous one. Both protocols can be perfectly healthy while the boundary between them is broken — do not blame OSPF or EIGRP adjacencies for a boundary-policy fault.
Cisco IOS / IOS XE routers. Administrative distance (AD) is a Cisco-local value, never carried in any routing update: connected 0, static 1, EIGRP summary 5, eBGP 20, EIGRP internal 90, OSPF 110 (the same value for intra-area, inter-area AND external routes — OSPF's intra > inter > external preference applies only inside one OSPF process), IS-IS 115, RIP 120, EIGRP external 170, iBGP 200, unknown 255 (never installed). Seed metrics: into OSPF the default is 20 for all sources except BGP (1), external type E2 by default, and the `subnets` keyword is required or only unsubnetted major networks cross; into EIGRP and RIP an unspecified metric is INFINITY — the route is not advertised at all — so a metric or `default-metric` is mandatory; RIP's valid metric ceiling is 15 (16 = unreachable). iBGP routes are NOT redistributed into an IGP by default — only eBGP routes are candidates — unless `bgp redistribute-internal` is set, which Cisco flags as loop-prone. Other vendors use different preference values and names — never present these numbers as universal.
| Root cause | How you recognize it |
|---|---|
| Two-point mutual redistribution with no filtering or tagging in either direction | The precondition for almost every feedback loop — both of Cisco's failure examples (docs 8606 and 4170) are built this way. A single redistribution point cannot form a redistribution loop. |
| Administrative-distance inversion at the boundary | The receiving protocol's AD beats the home protocol's AD for the fed-back copy: RIP routes (120) returning via OSPF (110) or via EIGRP (90) are the canonical losses (Cisco doc 8606). The copy wins before any metric is compared. |
| Tagging/filtering applied at only one redistribution point (or in only one direction) | The unprotected point re-injects what the protected point correctly blocked. Includes a tag scheme where the two boundary routers were configured with mismatched tag values, so each router's deny rule never matches the other's copies. |
| Route loss triggering the self-sustaining race | The native path fails, both boundary routers fall back to each other's external copies and re-originate them into the home domain, and the prefix flaps inject/withdraw forever — even though every individual configuration 'looks' static (Cisco doc 4170). |
| Seed-metric faults | No metric / no `default-metric` into EIGRP or RIP: routes arrive at infinity and never install — MISSING routes, the mirror-image complaint. Or a seed metric set so low (for example RIP metric 1 at multiple points) that the copy out-competes multi-hop native routes on metric after surviving AD. |
| Over-broad redistribution scope | `redistribute connected` or an unfiltered `redistribute` pulling in prefixes that were never meant to cross — management, transit, the boundary links themselves — which then feed back as externals. Even interface networks cross domains indirectly via the routing table (Cisco doc 8606). |
| Deliberate AD manipulation left behind | `distance` tweaks from an old migration. Cisco doc 8651-21 warns changing AD is 'very dangerous… can lead to routing loops'. A per-prefix `distance` on one router only is a loop ingredient, not a fix — unless it is the designed, documented, both-points scheme (Cisco doc 4170's prefix-based AD is the disciplined form). |
Did this fix it for you? One tap — anonymous, nothing to type, and nothing you send is ever published.
Which cause was yours?
Thanks — your tap helps the next engineer. A run of "still broken" reports sends this page back to the top of our re-check list.
Swipe sideways to see the full diagram →
A route that lives in the RIP domain (left, native at administrative distance 120) is copied by the boundary routers into EIGRP (right), where the copy carries EIGRP's distance 90. Because distance is compared before any metric, the copy can beat the genuine native route — and fed back along the dashed path underneath, it re-enters its home domain as if it were a brand-new route. Tagging each copy on its first crossing, and blocking that tag on re-entry, is what stops the circle.
Redistribution is a translation, and something is always lost in translation. When a boundary router copies a route from one protocol into another, the copy keeps the prefix and loses almost everything else: the original metric, the path it travelled, and the fact that it was ever native somewhere. It re-enters the network as an external route that looks, to every router that receives it, like a route that genuinely belongs to the receiving protocol. Cisco's redistribution guide (doc 8606) states the governing rule in one sentence: never announce information originally received from routing process X back into routing process X. Every loop in this case is that sentence being broken at a second boundary router that had no way to recognise the copy as its own domain's route coming home.
Route selection between protocols is decided in an order engineers routinely get backwards. First, administrative distance picks WHICH protocol's version of a prefix a router believes — and only then, inside that one protocol, are metrics compared. AD is also purely local: it is a number each Cisco router keeps for itself, never carried inside any routing update, so two routers can look at the same prefix and legitimately choose opposite directions. That is why 'fixing' the distance on one boundary router can move a loop instead of removing it, and why a RIP route at AD 120 loses to its own EIGRP copy at AD 90 every single time, no matter how short the native path is or how honest its metric looks.
A single redistribution point cannot form a redistribution loop — Cisco doc 4170 is explicit about it, and it is the most useful scoping fact in this fault. A loop needs the copy to come home, and coming home needs a second door. So when you inherit a boundary, count the doors before you read a single route: two boundary routers copying in both directions, with no tags and no filters, is the fault's usual shape, and a filter present on one router but missing on the other is not half a fix — it is the unprotected door the copy will use. The second point is usually added later, for redundancy, by someone who never knew the first point needed protecting.
Suboptimal routing is the quiet version of this fault, and its fingerprint is easy to dismiss: everything works. Pings pass, users are connected, both protocols show healthy neighbours — traffic is simply taking the long way round through the other domain, because a boundary router preferred the redistributed copy over the native path. It is also timing-dependent: whichever boundary router converges first after a change 'wins', and the other goes suboptimal, so a reload or a process restart can swap the victim overnight and make yesterday's evidence useless. Treat 'works, but by the wrong road, and it flipped after a reboot' as a symptom in its own right — and prove it per prefix, with 'show ip route <prefix>' on both sides of the boundary, never per protocol.
The nastier version only appears when something fails. Cisco doc 4170 documents the race: a native path disappears, each boundary router falls back to the other router's external copy as its 'backup', re-originates that copy into the home domain, and the peer's withdrawal then flips it back — an endless inject/withdraw cycle, visible as type-5 LSA churn on the OSPF side, that survives long after the original failure is repaired. The practical consequence is uncomfortable: a steady-state routing table that looks correct proves almost nothing about this fault. The honest test is the failure case — withdraw one test prefix's native path inside a window and watch whether the network converges once, or flaps. Never run that test in production hours.
Tag on first crossing, always — even when the boundary has only one redistribution point today. A tag costs one route-map line: mark every copy with where it came from (Cisco doc 8606's worked example tags OSPF-to-EIGRP copies 77 and EIGRP-to-OSPF copies 88), and deny each tag on re-entry into its home protocol, with identical route-maps on every boundary router in both directions. The tag you skip today is the protection the second boundary router — added next year, for redundancy, by a different engineer — will silently not inherit. Where the prefix set is small and stable, prefix filtering is the simpler alternative; where the design allows it, the safest answer of all is to remove the second point, or redistribute one way only with a default route back.
| What traffic does | The fingerprint | |
|---|---|---|
| Suboptimal routing | Gets there — but by the long way round, through the other domain | show ip route shows the prefix as an external copy (O E2 / D EX) learned via the other domain; which boundary router goes wrong can swap after a reload |
| Routing loop / feedback | Circles between the two boundary routers until TTL expires | Both boundary routers point at each other for the same prefix; on route loss the prefix flaps inject/withdraw, with type-5 LSA churn on the OSPF side |
| Missing routes — the mirror image | Routes that should cross the boundary never arrive at all | No metric and no default-metric into EIGRP or RIP means infinity: the route is never advertised, so nothing installs it |
Work this ladder before you open a case. Redistribution loops are almost never a routing-protocol defect — both protocols are usually healthy and the boundary policy between them is broken: an unprotected second point, a tag that never matches, or a distance tweak left behind by an old migration. Prove which, and if yours survives all five checks, you will hand TAC a case they can answer in one reply.
Two routers that should exchange routes sit forever in the state EXSTART (or bounce between EXSTART and DOWN).
A dual-homed server, storage node, or downstream switch is plugged into both Nexus switches of a vPC pair — and it has lost one leg, or both.
A whole VLAN — sometimes a whole switch or site — melts down at once.