Packet Path Troubleshoot

Troubleshoot › Symptom cases › Route Redistribution Loops / Suboptimal Routing

Routing · Redistribution / Route Selection

Route Redistribution Loops / Suboptimal Routing

Engineers 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

In plain English: Two parts of a network often speak different routing languages — one side learns its roads with one protocol, the other side with another. Where the two sides meet, a boundary router translates: it copies a road from one language into the other. The copy loses the original road's history — how far it really was, and where it came from. If there are two meeting points and both translate in both directions with no labels and no filters, a copy can travel round and come home pretending to be a brand-new, better road. Routers then send traffic the long way round — or in a circle, until the packet gives up. Both protocols can be perfectly healthy while the translation between them is broken.

The symptom

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

Check first — in this order

  1. show ip route <prefix> — on routers on BOTH sides of the boundary, for the affected prefix (not per protocol)Read the [AD/metric] bracket, the 'known via' source, and the tag (the detailed form shows 'distance' and 'Tag'). A prefix whose home is Domain A showing as an external route (O E2 / D EX) learned via Domain B is the smoking gun: the copy has displaced the genuine native route.
  2. show running-config | section router — on EVERY redistribution routerMap the boundary before touching it: list each `redistribute` statement, its direction, and whether any route-map / distribute-list / tag is attached. An unfiltered mutual `redistribute` at two points is this fault's usual shape, and a filter present on ONE boundary router but missing on the other is the classic half-fix.
  3. Compare the same prefix in the home protocol's own database against the routing table: show ip ospf database external / show ip eigrp topology / show ip rip databaseRedistribution only ever copies what is IN the routing table. A prefix present in its home protocol's database but NOT installed in the RIB proves administrative distance displaced it — the native route lost the AD contest before metrics were ever compared.
  4. Check the tags on the external copies (show ip route <prefix> detail)A correctly tagged design shows the origin tag on the copy (Cisco doc 8606's worked example tags OSPF→EIGRP copies 77 and EIGRP→OSPF copies 88). An external copy carrying NO tag, or carrying the home domain's own tag while arriving from the other domain, names the unprotected redistribution point.
  5. Only in a window: withdraw / shut the native path to ONE test prefix and watch convergenceA healthy design converges ONCE to the backup path. Flapping — the prefix being injected and withdrawn over and over, with type-5 LSA churn on the OSPF side — proves Cisco doc 4170's feedback race, not a simple preference problem. Never run this test in production hours.
  6. Only then read the seed metrics on every redistribute statementNo metric (or no `default-metric`) into EIGRP or RIP means infinity — the route never installs, which presents as MISSING routes, the mirror-image complaint. A too-low seed metric (for example RIP metric 1 at multiple points) makes a copy look artificially close. Metric faults explain missing or too-attractive copies — never the AD displacement itself.

What the evidence means

The idea in one line

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.

Never feed a route back home

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.

Suboptimal routing: works, but by the wrong road

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: the copy wins at both ends

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.

AD is decided first — and it is local

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.

Redistribution copies only what is in the table

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 partly self-protecting — RIP and OSPF are not

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.

Platforms and defaults

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 causes, ranked

Root causeHow you recognize it
Two-point mutual redistribution with no filtering or tagging in either directionThe 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 boundaryThe 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 raceThe 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 faultsNo 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).
Before you touch production: Every fix in this case changes route selection for live prefixes. Apply it at BOTH boundary routers inside ONE window, one direction at a time, snapshotting `show ip route`, the protocol databases and the full `redistribute` configuration first. Expect transient reconvergence — and briefly WORSE suboptimal paths — as tags/filters land on the first router before the second. A distance-255 or tag-deny change deliberately makes some prefixes unreachable via the backup domain: confirm which prefixes lose their backup before applying it. Do NOT 'test' by shutting the native path in production hours — the failure-case test belongs in the window.

The fix

  1. Snapshot first: `show ip route`, each protocol's database/topology, and the full router configuration sections from BOTH boundary routers. Every later step is judged against this baseline.
  2. Preferred fix — TAG-AND-BLOCK at every redistribution point, in both directions (Cisco doc 8606, Example 2's pattern): tag copies on first crossing (that example tags OSPF→EIGRP copies 77 and EIGRP→OSPF copies 88) and deny each tag on re-entry into its home protocol. The route-maps must be IDENTICAL on both boundary routers — a scheme present on one router only is cause #3, not a fix.
  3. Simpler alternative when the prefix set is small and stable: distribute-list / prefix filtering at both points (Cisco doc 8606, Example 1) — accept the maintenance cost as prefixes change (Cisco doc 4170's explicit caveat). Cisco doc 4170's five OSPF-process methods generalise as the menu: distance 255 (never install the fed-back copy — kills backup between domains), tag filtering, `match internal` (redistribute only native routes — blocks ALL externals, including legitimate third-party ones), prefix-based filtering (allows backup), and prefix-based filtering + prefix-based AD (the only one of the five that backs up correctly WITH external prefixes present). Choose deliberately; do not stack methods at random.
  4. Fix the seed metrics the checks exposed: give every `redistribute` into EIGRP or RIP an explicit metric or a `default-metric`, and never set a RIP seed metric of 1 at multiple points — Cisco doc 8606 recommends a low seed for reachability but warns it raises loop risk at multiple points.
  5. Narrow the scope: remove `redistribute connected` and any unfiltered `redistribute` that pulls in prefixes never meant to cross (management, transit, the boundary links themselves), or scope them with the same route-map used in step 2.
  6. Remove leftover ad-hoc `distance` tweaks from old migrations, unless one is the designed, documented, both-points scheme — in which case document it in the redistribution policy (see Prevention) so the next engineer does not 'clean it up'.
  7. Safest design fix, where the business need allows it: remove the second redistribution point, or make redistribution one-way with a default route back. Do not treat two-way multipoint redistribution as inevitable — say so plainly in the change record if it is kept.

Verify it worked

  1. show ip route <prefix> — for every prefix that crosses the boundary, on both boundary routersEach prefix shows its expected source protocol and, where the design tags copies, the expected tag. No home-domain prefix is installed as an external copy learned via the other domain.
  2. show ip ospf database external / show ip eigrp topology / show ip rip database — compared against the RIBWhat is in each protocol's database and what is installed in the table now agree with the documented redistribution policy — no 'in the database but not in the table' surprises left unexplained.
  3. In the same window: withdraw / shut the native path to ONE test prefix, then restore itThe prefix converges ONCE to the backup path and ONCE back — no inject/withdraw flapping, no type-5 LSA churn. Flapping here means the feedback path is still open, whatever the steady-state table looks like.
  4. Traceroute / traffic check across the boundary, both directionsTraffic takes the designed path — not the long way through the other domain — and users on both sides reach their normal services with the redundant boundary back in service.

Did this fix it for you? One tap — anonymous, nothing to type, and nothing you send is ever published.

Going deeper — production notes

The copy comes home pretending to be a better route Redistribution strips a route's metric and origin. Administrative distance decides what wins. HOME DOMAIN — RIP 192.168.1.0 lives here native route: AD 120 TWO BOUNDARY ROUTERS both copy routes both ways no tags, no filters OTHER DOMAIN — EIGRP the copy arrives here external route: AD 90 the copy is fed back home as if it were a brand-new route Suboptimal routing — the copy wins on AD AD decides before any metric is compared: EIGRP 90 beats RIP 120, so traffic takes the long way. Routing loop — the fed-back copy wins at both ends Two routers point at each other for the same prefix; packets circle until TTL expiry. The fix — tag on first crossing, block on re-entry Tag copies 77 / 88 at both boundary routers, in both directions, and deny each tag coming home.

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.

A copy loses its history

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.

AD decides before metric

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.

One point cannot loop

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.

Works, but by the wrong road

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 race that starts on failure

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 first, always

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.

Suboptimal routing, or a loop? The evidence split

What traffic doesThe fingerprint
Suboptimal routingGets there — but by the long way round, through the other domainshow 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 / feedbackCircles between the two boundary routers until TTL expiresBoth 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 imageRoutes that should cross the boundary never arrive at allNo metric and no default-metric into EIGRP or RIP means infinity: the route is never advertised, so nothing installs it
Reproduce this failure: Packet Path's hands-on labs run this class of fault in a simulated network, so you can break it, run the checks above, and fix it there before touching production. Open the labs.

Prevention

Still stuck? Before you open a TAC case

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.

The last checks — the ones that close most "unsolvable" cases

  1. Diff the files, not the screens: save 'show ip route <prefix>' for the affected prefixes, each protocol's database or topology output, and 'show running-config | section router' from BOTH boundary routers, and diff them mechanically. The one route-map, tag value or distance line that differs between the two routers is in there — scrolling two CLI sessions side by side is exactly how it hides.
  2. Count the doors again: inventory EVERY redistribution point in the network, not just the two you know about — the backup router added for redundancy, the branch router that also redistributes 'temporarily'. Cisco doc 4170's rule is that a single point cannot form a redistribution loop; if yours loops, there is a return path you have not listed, and an unprotected third point re-injects what the two protected points correctly block.
  3. Prove the tags actually bite, end to end, on one test prefix: the tag must be SET on first crossing (Cisco doc 8606's pattern tags OSPF-to-EIGRP copies 77 and EIGRP-to-OSPF copies 88), it must be VISIBLE in 'show ip route <prefix>' detail on the far side, and the deny on re-entry must MATCH that exact value. A scheme where the two boundary routers use different tag values, or the route-map is attached in only one direction, looks configured and never fires.
  4. Run the failure-case test properly — in a window, never in production hours: withdraw the native path to ONE test prefix and watch whether it converges ONCE to the backup path or flaps inject-and-withdraw with type-5 LSA churn on the OSPF side. Cisco doc 4170's feedback race only starts on route loss, so a clean steady-state table proves nothing; flapping here means a feedback path is still open whatever the filters look like on paper.
  5. Hunt the leftovers before you blame the design: search both boundary configs — and the config archives — for undocumented 'distance' commands from old migrations and for 'bgp redistribute-internal', which Cisco flags as loop-prone. Then search your exact IOS / IOS XE version plus 'redistribution' in Cisco's bug search and release notes. Cisco doc 8651-21 warns that changing administrative distance is very dangerous and can itself cause routing loops — a leftover tweak, or a known defect, ends the hunt on the spot.

It really is a TAC case when

If you do open one, hand them this bundle

Sources

Related symptoms

Symptom case

OSPF Adjacency Stuck in EXSTART

Two routers that should exchange routes sit forever in the state EXSTART (or bounce between EXSTART and DOWN).

Symptom case

BGP Neighbor Stuck in Active

A BGP session never comes up.

Symptom case

Port Keeps Going Err-Disabled

A switch port shuts itself off.

Symptom case

vPC Consistency Check Failed

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.

Symptom case

Bridging Loop / Broadcast Storm

A whole VLAN — sometimes a whole switch or site — melts down at once.