Redistribution OSPF and EIGRP: Seed Metrics, Externals, and Loops

Redistribution OSPF and EIGRP: Seed Metrics, Externals, and Loops

Redistributing between OSPF and EIGRP is the classic two-IGP problem: a migration, a merger, or a boundary router that simply speaks both. The mechanics are unforgiving in one specific way — EIGRP will silently discard every redistributed route unless you hand it a metric — and the administrative-distance ordering (EIGRP-internal 90, OSPF 110, EIGRP-external 170) sets up loop and suboptimal-routing traps that only route tags fully close. This walks the whole path, basics to expert.

1. Why redistribute OSPF and EIGRP

Two interior gateway protocols rarely coexist by design — they coexist because of history: an acquisition, a phased migration off EIGRP, a region that standardized differently. A boundary router runs both processes and passes selected routes across. The goal is never to merge the two domains blindly, but to leak exactly the prefixes each side needs, with a metric that makes sense and a filter that prevents the rest.

Why redistribute OSPF and EIGRPNET BY MEOSPF domainregion Aboundary routerruns both processesEIGRP domainregion B

2. The EIGRP seed-metric trap

This is the single fact that bites everyone. EIGRP assigns no default metric to redistributed routes — so without a seed metric, every route you redistribute into EIGRP is silently discarded, no error, no log. You must supply the composite metric components: bandwidth, delay, reliability, load, MTU, via the metric option on the redistribute statement or a default-metric under the EIGRP process. OSPF is more forgiving — it defaults redistributed routes to cost 20 — but into EIGRP, forgetting the metric means the routes simply never appear.

The EIGRP seed-metric trapNET BY MEinto EIGRPno seed metric -> route droppedsilently, no errorinto OSPFdefault cost 20 (external)appears even if unset

3. The EIGRP composite metric you must supply

EIGRP’s metric is not a single number but a composite of five K-values; by default only bandwidth and delay count (K1 and K3). When you set the seed metric you provide all five fields, but the two that actually move the result are bandwidth (in Kbps) and delay (in tens of microseconds). Set them to represent the real characteristics of the external path, or EIGRP’s path selection into the external prefix will be wrong even though the route is present.

The EIGRP composite metricNET BY MEbandwidthK1 — useddelayK3 — usedreliabilityK4 — offloadK2 — offMTUcarriedBy default only bandwidth and delay change the metric

4. Into OSPF, routes become external Type 5 LSAs

Redistributed into OSPF, EIGRP routes arrive as Type 5 External LSAs — flooded across the OSPF domain (outside stub areas), seen everywhere as O E2 by default at the seed cost (20 unless you set it). As with any OSPF external, the E2 type keeps that external cost constant domain-wide while E1 adds the internal cost to reach the boundary. Choose E1 when multiple boundary routers inject the same prefixes and you want each router to prefer its nearest exit.

Into OSPF, routes become external Type 5 LSAsNET BY MEboundaryinjects Type 5 LSArouter sees O E2router sees O E2router sees O E2flooded domain-wide (outside stub areas)

5. Into EIGRP, routes become D EX externals

Redistributed into EIGRP, routes appear as external EIGRP routes — tagged D EX in the routing table — and carry an administrative distance of 170, deliberately higher than EIGRP-internal’s 90. That gap is a feature: a native EIGRP-internal route for the same prefix will always win over a redistributed external one, which is EIGRP’s built-in bias toward routes learned inside its own domain.

Into EIGRP, routes become D EX externalsNET BY MEEIGRP internal (D)AD 90 — winsEIGRP external (D EX)AD 170 — redistributedInternal (90) always beats external (170) for the same prefix

6. The administrative-distance ordering that matters

Three values decide every tie: EIGRP-internal 90, OSPF 110, EIGRP-external 170. Read it carefully: EIGRP-internal (90) beats OSPF (110), but EIGRP-external (170) loses to OSPF (110). So a prefix native to EIGRP will be preferred over its OSPF copy, while a prefix redistributed into EIGRP can be overridden by an OSPF path. This asymmetry is exactly what produces suboptimal routing and, in mutual redistribution, feedback loops.

The administrative-distance orderingNET BY MEEIGRP internalAD 90OSPFAD 110EIGRP externalAD 170Internal EIGRP beats OSPF; external EIGRP loses to it

7. Mutual redistribution and suboptimal paths

Redistribute both ways at two boundary routers and the AD asymmetry can send traffic the long way, or loop. A prefix native to one domain, leaked into the other and leaked back, may be re-learned with an AD that beats the original on a second router — so that router forwards toward the external copy instead of the true source. Unlike a clean single-exit design, two-way redistribution here needs active defense; it does not stay correct on its own.

Mutual redistribution and suboptimal pathsNET BY MEboundary 1boundary 2leaked OSPF -> EIGRPre-learned with a winning ADSecond router prefers the external copy -> suboptimal / loop

8. Route tags close the loop

The reliable defense is route tagging. Tag every route as it is redistributed out of its home protocol; at each boundary that redistributes back, deny any route carrying that tag. A route can never re-enter the domain it came from, so the loop cannot close regardless of the AD values. Combine tags with prefix filtering — leak only the intended prefixes — and one-way redistribution wherever the design allows, and OSPF-EIGRP coexistence stays predictable.

Route tags close the loopNET BY MEOSPF -> EIGRPtag = 110EIGRP -> OSPFdeny tag 110loop brokenroute cannot return

Takeaways

OSPF-EIGRP redistribution hinges on one mandatory step and one ordering. The step: always set a seed metric into EIGRP, or the routes vanish silently. The ordering: EIGRP-internal 90 < OSPF 110 < EIGRP-external 170, which makes some paths asymmetric and two-way redistribution loop-prone. Set the metric, tag on the way out, deny the tag on the way back, filter to the intended prefixes, and prefer one-way redistribution — and the boundary behaves.

Mokrane ASSAM

Comments are closed.