{"id":200,"date":"2023-11-29T23:16:08","date_gmt":"2023-11-29T22:16:08","guid":{"rendered":"https:\/\/mokrane-assam.com\/?p=200"},"modified":"2026-11-29T23:21:42","modified_gmt":"2026-11-29T22:21:42","slug":"redistribution-ospf-and-eigrp-seed-metrics-externals-and-loops","status":"publish","type":"post","link":"https:\/\/mokrane-assam.com\/index.php\/2023\/11\/29\/redistribution-ospf-and-eigrp-seed-metrics-externals-and-loops\/","title":{"rendered":"Redistribution OSPF and EIGRP: Seed Metrics, Externals, and Loops"},"content":{"rendered":"<p class=\"wp-block-paragraph\">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 \u2014 EIGRP will silently discard every redistributed route unless you hand it a metric \u2014 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.<\/p><h2 class=\"wp-block-heading\">1. Why redistribute OSPF and EIGRP<\/h2><p class=\"wp-block-paragraph\">Two interior gateway protocols rarely coexist by design \u2014 they coexist because of history: an acquisition, a phased migration off EIGRP, a region that standardized differently. A <strong>boundary router<\/strong> 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.<\/p><figure class=\"mkz-diagram\" style=\"margin:24px auto;max-width:920px\"><svg style=\"width:100%;height:auto;display:block;margin:0 auto\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 920 200\" font-family=\"'Segoe UI',Roboto,Helvetica,Arial,sans-serif\" role=\"img\" aria-label=\"Why redistribute OSPF and EIGRP\"><defs><linearGradient id=\"hg\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#17263f\"\/><stop offset=\"1\" stop-color=\"#0f172a\"\/><\/linearGradient><marker id=\"ar\" viewBox=\"0 0 10 10\" refX=\"8\" refY=\"5\" markerWidth=\"7\" markerHeight=\"7\" orient=\"auto-start-reverse\"><path d=\"M0 0L10 5L0 10z\" fill=\"#0A66C2\"\/><\/marker><\/defs><rect x=\"0\" y=\"0\" width=\"920\" height=\"200\" rx=\"14\" fill=\"#f8fafc\" stroke=\"#e2e8f0\"\/><rect x=\"0\" y=\"0\" width=\"920\" height=\"60\" rx=\"14\" fill=\"url(#hg)\"\/><rect x=\"0\" y=\"40\" width=\"920\" height=\"20\" fill=\"#0f172a\"\/><text x=\"28\" y=\"37\" fill=\"#ffffff\" font-size=\"19\" font-weight=\"700\">Why redistribute OSPF and EIGRP<\/text><text x=\"892\" y=\"37\" text-anchor=\"end\" fill=\"#38bdf8\" font-size=\"13\" font-weight=\"600\" letter-spacing=\"1\">NET BY ME<\/text><rect x=\"60\" y=\"95\" width=\"230\" height=\"70\" rx=\"10\" fill=\"#e0f2fe\" stroke=\"#0A66C2\"\/><text x=\"175\" y=\"125\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"13\" font-weight=\"700\">OSPF domain<\/text><text x=\"175\" y=\"146\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"10.5\">region A<\/text><rect x=\"360\" y=\"95\" width=\"200\" height=\"70\" rx=\"10\" fill=\"#0f172a\"\/><text x=\"460\" y=\"125\" text-anchor=\"middle\" fill=\"#fff\" font-size=\"12\" font-weight=\"700\">boundary router<\/text><text x=\"460\" y=\"146\" text-anchor=\"middle\" fill=\"#94a3b8\" font-size=\"10\">runs both processes<\/text><rect x=\"630\" y=\"95\" width=\"230\" height=\"70\" rx=\"10\" fill=\"#dcfce7\" stroke=\"#166534\"\/><text x=\"745\" y=\"125\" text-anchor=\"middle\" fill=\"#166534\" font-size=\"13\" font-weight=\"700\">EIGRP domain<\/text><text x=\"745\" y=\"146\" text-anchor=\"middle\" fill=\"#334155\" font-size=\"10.5\">region B<\/text><line x1=\"290\" y1=\"130\" x2=\"360\" y2=\"130\" stroke=\"#0A66C2\" stroke-width=\"2\" marker-end=\"url(#ar)\"\/><line x1=\"560\" y1=\"130\" x2=\"630\" y2=\"130\" stroke=\"#166534\" stroke-width=\"2\" marker-end=\"url(#ar)\"\/><\/svg><\/figure><h2 class=\"wp-block-heading\">2. The EIGRP seed-metric trap<\/h2><p class=\"wp-block-paragraph\">This is the single fact that bites everyone. <strong>EIGRP assigns no default metric to redistributed routes<\/strong> \u2014 so without a seed metric, every route you redistribute into EIGRP is <em>silently discarded<\/em>, no error, no log. You must supply the composite metric components: <strong>bandwidth, delay, reliability, load, MTU<\/strong>, via the <code>metric<\/code> option on the redistribute statement or a <code>default-metric<\/code> under the EIGRP process. OSPF is more forgiving \u2014 it defaults redistributed routes to cost 20 \u2014 but into EIGRP, forgetting the metric means the routes simply never appear.<\/p><figure class=\"mkz-diagram\" style=\"margin:24px auto;max-width:920px\"><svg style=\"width:100%;height:auto;display:block;margin:0 auto\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 920 210\" font-family=\"'Segoe UI',Roboto,Helvetica,Arial,sans-serif\" role=\"img\" aria-label=\"The EIGRP seed-metric trap\"><defs><linearGradient id=\"hg\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#17263f\"\/><stop offset=\"1\" stop-color=\"#0f172a\"\/><\/linearGradient><marker id=\"ar\" viewBox=\"0 0 10 10\" refX=\"8\" refY=\"5\" markerWidth=\"7\" markerHeight=\"7\" orient=\"auto-start-reverse\"><path d=\"M0 0L10 5L0 10z\" fill=\"#0A66C2\"\/><\/marker><\/defs><rect x=\"0\" y=\"0\" width=\"920\" height=\"210\" rx=\"14\" fill=\"#f8fafc\" stroke=\"#e2e8f0\"\/><rect x=\"0\" y=\"0\" width=\"920\" height=\"60\" rx=\"14\" fill=\"url(#hg)\"\/><rect x=\"0\" y=\"40\" width=\"920\" height=\"20\" fill=\"#0f172a\"\/><text x=\"28\" y=\"37\" fill=\"#ffffff\" font-size=\"19\" font-weight=\"700\">The EIGRP seed-metric trap<\/text><text x=\"892\" y=\"37\" text-anchor=\"end\" fill=\"#38bdf8\" font-size=\"13\" font-weight=\"600\" letter-spacing=\"1\">NET BY ME<\/text><rect x=\"60\" y=\"88\" width=\"360\" height=\"100\" rx=\"10\" fill=\"#fef2f2\" stroke=\"#C8102E\"\/><text x=\"240\" y=\"116\" text-anchor=\"middle\" fill=\"#9f1239\" font-size=\"13\" font-weight=\"700\">into EIGRP<\/text><text x=\"240\" y=\"140\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"11\">no seed metric -> route dropped<\/text><text x=\"240\" y=\"160\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"11\">silently, no error<\/text><rect x=\"500\" y=\"88\" width=\"360\" height=\"100\" rx=\"10\" fill=\"#dcfce7\" stroke=\"#166534\"\/><text x=\"680\" y=\"116\" text-anchor=\"middle\" fill=\"#166534\" font-size=\"13\" font-weight=\"700\">into OSPF<\/text><text x=\"680\" y=\"140\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"11\">default cost 20 (external)<\/text><text x=\"680\" y=\"160\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"11\">appears even if unset<\/text><\/svg><\/figure><h2 class=\"wp-block-heading\">3. The EIGRP composite metric you must supply<\/h2><p class=\"wp-block-paragraph\">EIGRP&#8217;s metric is not a single number but a <strong>composite<\/strong> of five K-values; by default only <strong>bandwidth<\/strong> and <strong>delay<\/strong> 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&#8217;s path selection into the external prefix will be wrong even though the route is present.<\/p><figure class=\"mkz-diagram\" style=\"margin:24px auto;max-width:920px\"><svg style=\"width:100%;height:auto;display:block;margin:0 auto\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 920 200\" font-family=\"'Segoe UI',Roboto,Helvetica,Arial,sans-serif\" role=\"img\" aria-label=\"The EIGRP composite metric\"><defs><linearGradient id=\"hg\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#17263f\"\/><stop offset=\"1\" stop-color=\"#0f172a\"\/><\/linearGradient><marker id=\"ar\" viewBox=\"0 0 10 10\" refX=\"8\" refY=\"5\" markerWidth=\"7\" markerHeight=\"7\" orient=\"auto-start-reverse\"><path d=\"M0 0L10 5L0 10z\" fill=\"#0A66C2\"\/><\/marker><\/defs><rect x=\"0\" y=\"0\" width=\"920\" height=\"200\" rx=\"14\" fill=\"#f8fafc\" stroke=\"#e2e8f0\"\/><rect x=\"0\" y=\"0\" width=\"920\" height=\"60\" rx=\"14\" fill=\"url(#hg)\"\/><rect x=\"0\" y=\"40\" width=\"920\" height=\"20\" fill=\"#0f172a\"\/><text x=\"28\" y=\"37\" fill=\"#ffffff\" font-size=\"19\" font-weight=\"700\">The EIGRP composite metric<\/text><text x=\"892\" y=\"37\" text-anchor=\"end\" fill=\"#38bdf8\" font-size=\"13\" font-weight=\"600\" letter-spacing=\"1\">NET BY ME<\/text><rect x=\"50\" y=\"100\" width=\"150\" height=\"56\" rx=\"9\" fill=\"#dcfce7\" stroke=\"#166534\"\/><text x=\"125\" y=\"124\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"11.5\" font-weight=\"700\">bandwidth<\/text><text x=\"125\" y=\"143\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"9.5\">K1 \u2014 used<\/text><rect x=\"222\" y=\"100\" width=\"150\" height=\"56\" rx=\"9\" fill=\"#dcfce7\" stroke=\"#166534\"\/><text x=\"297\" y=\"124\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"11.5\" font-weight=\"700\">delay<\/text><text x=\"297\" y=\"143\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"9.5\">K3 \u2014 used<\/text><rect x=\"394\" y=\"100\" width=\"150\" height=\"56\" rx=\"9\" fill=\"#f1f5f9\" stroke=\"#94a3b8\"\/><text x=\"469\" y=\"124\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"11.5\" font-weight=\"700\">reliability<\/text><text x=\"469\" y=\"143\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"9.5\">K4 \u2014 off<\/text><rect x=\"566\" y=\"100\" width=\"150\" height=\"56\" rx=\"9\" fill=\"#f1f5f9\" stroke=\"#94a3b8\"\/><text x=\"641\" y=\"124\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"11.5\" font-weight=\"700\">load<\/text><text x=\"641\" y=\"143\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"9.5\">K2 \u2014 off<\/text><rect x=\"738\" y=\"100\" width=\"150\" height=\"56\" rx=\"9\" fill=\"#f1f5f9\" stroke=\"#94a3b8\"\/><text x=\"813\" y=\"124\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"11.5\" font-weight=\"700\">MTU<\/text><text x=\"813\" y=\"143\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"9.5\">carried<\/text><text x=\"460\" y=\"180\" text-anchor=\"middle\" fill=\"#64748b\" font-size=\"11\">By default only bandwidth and delay change the metric<\/text><\/svg><\/figure><h2 class=\"wp-block-heading\">4. Into OSPF, routes become external Type 5 LSAs<\/h2><p class=\"wp-block-paragraph\">Redistributed into OSPF, EIGRP routes arrive as <strong>Type 5 External LSAs<\/strong> \u2014 flooded across the OSPF domain (outside stub areas), seen everywhere as <strong>O E2<\/strong> by default at the seed cost (20 unless you set it). As with any OSPF external, the <strong>E2<\/strong> type keeps that external cost constant domain-wide while <strong>E1<\/strong> 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.<\/p><figure class=\"mkz-diagram\" style=\"margin:24px auto;max-width:920px\"><svg style=\"width:100%;height:auto;display:block;margin:0 auto\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 920 210\" font-family=\"'Segoe UI',Roboto,Helvetica,Arial,sans-serif\" role=\"img\" aria-label=\"Into OSPF, routes become external Type 5 LSAs\"><defs><linearGradient id=\"hg\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#17263f\"\/><stop offset=\"1\" stop-color=\"#0f172a\"\/><\/linearGradient><marker id=\"ar\" viewBox=\"0 0 10 10\" refX=\"8\" refY=\"5\" markerWidth=\"7\" markerHeight=\"7\" orient=\"auto-start-reverse\"><path d=\"M0 0L10 5L0 10z\" fill=\"#0A66C2\"\/><\/marker><\/defs><rect x=\"0\" y=\"0\" width=\"920\" height=\"210\" rx=\"14\" fill=\"#f8fafc\" stroke=\"#e2e8f0\"\/><rect x=\"0\" y=\"0\" width=\"920\" height=\"60\" rx=\"14\" fill=\"url(#hg)\"\/><rect x=\"0\" y=\"40\" width=\"920\" height=\"20\" fill=\"#0f172a\"\/><text x=\"28\" y=\"37\" fill=\"#ffffff\" font-size=\"19\" font-weight=\"700\">Into OSPF, routes become external Type 5 LSAs<\/text><text x=\"892\" y=\"37\" text-anchor=\"end\" fill=\"#38bdf8\" font-size=\"13\" font-weight=\"600\" letter-spacing=\"1\">NET BY ME<\/text><rect x=\"360\" y=\"86\" width=\"200\" height=\"50\" rx=\"10\" fill=\"#0f172a\"\/><text x=\"460\" y=\"106\" text-anchor=\"middle\" fill=\"#fff\" font-size=\"12\" font-weight=\"700\">boundary<\/text><text x=\"460\" y=\"124\" text-anchor=\"middle\" fill=\"#94a3b8\" font-size=\"10\">injects Type 5 LSA<\/text><rect x=\"120\" y=\"170\" width=\"180\" height=\"46\" rx=\"10\" fill=\"#fff\" stroke=\"#0A66C2\"\/><text x=\"210\" y=\"198\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"11.5\">router sees O E2<\/text><rect x=\"370\" y=\"170\" width=\"180\" height=\"46\" rx=\"10\" fill=\"#fff\" stroke=\"#0A66C2\"\/><text x=\"460\" y=\"198\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"11.5\">router sees O E2<\/text><rect x=\"620\" y=\"170\" width=\"180\" height=\"46\" rx=\"10\" fill=\"#fff\" stroke=\"#0A66C2\"\/><text x=\"710\" y=\"198\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"11.5\">router sees O E2<\/text><line x1=\"420\" y1=\"136\" x2=\"220\" y2=\"170\" stroke=\"#166534\" stroke-width=\"2\"\/><line x1=\"460\" y1=\"136\" x2=\"460\" y2=\"170\" stroke=\"#166534\" stroke-width=\"2\"\/><line x1=\"500\" y1=\"136\" x2=\"700\" y2=\"170\" stroke=\"#166534\" stroke-width=\"2\"\/><text x=\"460\" y=\"156\" text-anchor=\"middle\" fill=\"#64748b\" font-size=\"10.5\">flooded domain-wide (outside stub areas)<\/text><\/svg><\/figure><h2 class=\"wp-block-heading\">5. Into EIGRP, routes become D EX externals<\/h2><p class=\"wp-block-paragraph\">Redistributed into EIGRP, routes appear as <strong>external EIGRP<\/strong> routes \u2014 tagged <strong>D EX<\/strong> in the routing table \u2014 and carry an administrative distance of <strong>170<\/strong>, deliberately higher than EIGRP-internal&#8217;s <strong>90<\/strong>. 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&#8217;s built-in bias toward routes learned inside its own domain.<\/p><figure class=\"mkz-diagram\" style=\"margin:24px auto;max-width:920px\"><svg style=\"width:100%;height:auto;display:block;margin:0 auto\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 920 190\" font-family=\"'Segoe UI',Roboto,Helvetica,Arial,sans-serif\" role=\"img\" aria-label=\"Into EIGRP, routes become D EX externals\"><defs><linearGradient id=\"hg\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#17263f\"\/><stop offset=\"1\" stop-color=\"#0f172a\"\/><\/linearGradient><marker id=\"ar\" viewBox=\"0 0 10 10\" refX=\"8\" refY=\"5\" markerWidth=\"7\" markerHeight=\"7\" orient=\"auto-start-reverse\"><path d=\"M0 0L10 5L0 10z\" fill=\"#0A66C2\"\/><\/marker><\/defs><rect x=\"0\" y=\"0\" width=\"920\" height=\"190\" rx=\"14\" fill=\"#f8fafc\" stroke=\"#e2e8f0\"\/><rect x=\"0\" y=\"0\" width=\"920\" height=\"60\" rx=\"14\" fill=\"url(#hg)\"\/><rect x=\"0\" y=\"40\" width=\"920\" height=\"20\" fill=\"#0f172a\"\/><text x=\"28\" y=\"37\" fill=\"#ffffff\" font-size=\"19\" font-weight=\"700\">Into EIGRP, routes become D EX externals<\/text><text x=\"892\" y=\"37\" text-anchor=\"end\" fill=\"#38bdf8\" font-size=\"13\" font-weight=\"600\" letter-spacing=\"1\">NET BY ME<\/text><rect x=\"120\" y=\"100\" width=\"260\" height=\"60\" rx=\"10\" fill=\"#dcfce7\" stroke=\"#166534\"\/><text x=\"250\" y=\"126\" text-anchor=\"middle\" fill=\"#166534\" font-size=\"12\" font-weight=\"700\">EIGRP internal (D)<\/text><text x=\"250\" y=\"146\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"11\">AD 90 \u2014 wins<\/text><rect x=\"540\" y=\"100\" width=\"260\" height=\"60\" rx=\"10\" fill=\"#fef2f2\" stroke=\"#C8102E\"\/><text x=\"670\" y=\"126\" text-anchor=\"middle\" fill=\"#9f1239\" font-size=\"12\" font-weight=\"700\">EIGRP external (D EX)<\/text><text x=\"670\" y=\"146\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"11\">AD 170 \u2014 redistributed<\/text><text x=\"460\" y=\"180\" text-anchor=\"middle\" fill=\"#64748b\" font-size=\"11\">Internal (90) always beats external (170) for the same prefix<\/text><\/svg><\/figure><h2 class=\"wp-block-heading\">6. The administrative-distance ordering that matters<\/h2><p class=\"wp-block-paragraph\">Three values decide every tie: <strong>EIGRP-internal 90<\/strong>, <strong>OSPF 110<\/strong>, <strong>EIGRP-external 170<\/strong>. Read it carefully: EIGRP-internal (90) beats OSPF (110), but EIGRP-external (170) <em>loses<\/em> 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.<\/p><figure class=\"mkz-diagram\" style=\"margin:24px auto;max-width:920px\"><svg style=\"width:100%;height:auto;display:block;margin:0 auto\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 920 190\" font-family=\"'Segoe UI',Roboto,Helvetica,Arial,sans-serif\" role=\"img\" aria-label=\"The administrative-distance ordering\"><defs><linearGradient id=\"hg\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#17263f\"\/><stop offset=\"1\" stop-color=\"#0f172a\"\/><\/linearGradient><marker id=\"ar\" viewBox=\"0 0 10 10\" refX=\"8\" refY=\"5\" markerWidth=\"7\" markerHeight=\"7\" orient=\"auto-start-reverse\"><path d=\"M0 0L10 5L0 10z\" fill=\"#0A66C2\"\/><\/marker><\/defs><rect x=\"0\" y=\"0\" width=\"920\" height=\"190\" rx=\"14\" fill=\"#f8fafc\" stroke=\"#e2e8f0\"\/><rect x=\"0\" y=\"0\" width=\"920\" height=\"60\" rx=\"14\" fill=\"url(#hg)\"\/><rect x=\"0\" y=\"40\" width=\"920\" height=\"20\" fill=\"#0f172a\"\/><text x=\"28\" y=\"37\" fill=\"#ffffff\" font-size=\"19\" font-weight=\"700\">The administrative-distance ordering<\/text><text x=\"892\" y=\"37\" text-anchor=\"end\" fill=\"#38bdf8\" font-size=\"13\" font-weight=\"600\" letter-spacing=\"1\">NET BY ME<\/text><rect x=\"50\" y=\"100\" width=\"250\" height=\"56\" rx=\"10\" fill=\"#dcfce7\" stroke=\"#166534\"\/><text x=\"175\" y=\"124\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"11.5\" font-weight=\"700\">EIGRP internal<\/text><text x=\"175\" y=\"144\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"11\">AD 90<\/text><rect x=\"340\" y=\"100\" width=\"250\" height=\"56\" rx=\"10\" fill=\"#e0f2fe\" stroke=\"#0A66C2\"\/><text x=\"465\" y=\"124\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"11.5\" font-weight=\"700\">OSPF<\/text><text x=\"465\" y=\"144\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"11\">AD 110<\/text><rect x=\"630\" y=\"100\" width=\"250\" height=\"56\" rx=\"10\" fill=\"#fef2f2\" stroke=\"#C8102E\"\/><text x=\"755\" y=\"124\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"11.5\" font-weight=\"700\">EIGRP external<\/text><text x=\"755\" y=\"144\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"11\">AD 170<\/text><text x=\"460\" y=\"178\" text-anchor=\"middle\" fill=\"#64748b\" font-size=\"11\">Internal EIGRP beats OSPF; external EIGRP loses to it<\/text><\/svg><\/figure><h2 class=\"wp-block-heading\">7. Mutual redistribution and suboptimal paths<\/h2><p class=\"wp-block-paragraph\">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 \u2014 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.<\/p><figure class=\"mkz-diagram\" style=\"margin:24px auto;max-width:920px\"><svg style=\"width:100%;height:auto;display:block;margin:0 auto\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 920 220\" font-family=\"'Segoe UI',Roboto,Helvetica,Arial,sans-serif\" role=\"img\" aria-label=\"Mutual redistribution and suboptimal paths\"><defs><linearGradient id=\"hg\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#17263f\"\/><stop offset=\"1\" stop-color=\"#0f172a\"\/><\/linearGradient><marker id=\"ar\" viewBox=\"0 0 10 10\" refX=\"8\" refY=\"5\" markerWidth=\"7\" markerHeight=\"7\" orient=\"auto-start-reverse\"><path d=\"M0 0L10 5L0 10z\" fill=\"#0A66C2\"\/><\/marker><\/defs><rect x=\"0\" y=\"0\" width=\"920\" height=\"220\" rx=\"14\" fill=\"#f8fafc\" stroke=\"#e2e8f0\"\/><rect x=\"0\" y=\"0\" width=\"920\" height=\"60\" rx=\"14\" fill=\"url(#hg)\"\/><rect x=\"0\" y=\"40\" width=\"920\" height=\"20\" fill=\"#0f172a\"\/><text x=\"28\" y=\"37\" fill=\"#ffffff\" font-size=\"19\" font-weight=\"700\">Mutual redistribution and suboptimal paths<\/text><text x=\"892\" y=\"37\" text-anchor=\"end\" fill=\"#38bdf8\" font-size=\"13\" font-weight=\"600\" letter-spacing=\"1\">NET BY ME<\/text><rect x=\"80\" y=\"95\" width=\"180\" height=\"56\" rx=\"10\" fill=\"#e0f2fe\" stroke=\"#0A66C2\"\/><text x=\"170\" y=\"127\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"12\" font-weight=\"600\">boundary 1<\/text><rect x=\"660\" y=\"95\" width=\"180\" height=\"56\" rx=\"10\" fill=\"#dcfce7\" stroke=\"#166534\"\/><text x=\"750\" y=\"127\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"12\" font-weight=\"600\">boundary 2<\/text><line x1=\"260\" y1=\"110\" x2=\"660\" y2=\"110\" stroke=\"#166534\" stroke-width=\"2\" marker-end=\"url(#ar)\"\/><text x=\"460\" y=\"102\" text-anchor=\"middle\" fill=\"#166534\" font-size=\"10.5\">leaked OSPF -> EIGRP<\/text><line x1=\"660\" y1=\"140\" x2=\"260\" y2=\"140\" stroke=\"#C8102E\" stroke-width=\"2\" marker-end=\"url(#ar)\"\/><text x=\"460\" y=\"158\" text-anchor=\"middle\" fill=\"#C8102E\" font-size=\"10.5\">re-learned with a winning AD<\/text><text x=\"460\" y=\"192\" text-anchor=\"middle\" fill=\"#9f1239\" font-size=\"11\" font-weight=\"600\">Second router prefers the external copy -> suboptimal \/ loop<\/text><\/svg><\/figure><h2 class=\"wp-block-heading\">8. Route tags close the loop<\/h2><p class=\"wp-block-paragraph\">The reliable defense is <strong>route tagging<\/strong>. Tag every route as it is redistributed out of its home protocol; at each boundary that redistributes <em>back<\/em>, <strong>deny any route carrying that tag<\/strong>. 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 \u2014 leak only the intended prefixes \u2014 and one-way redistribution wherever the design allows, and OSPF-EIGRP coexistence stays predictable.<\/p><figure class=\"mkz-diagram\" style=\"margin:24px auto;max-width:920px\"><svg style=\"width:100%;height:auto;display:block;margin:0 auto\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 920 200\" font-family=\"'Segoe UI',Roboto,Helvetica,Arial,sans-serif\" role=\"img\" aria-label=\"Route tags close the loop\"><defs><linearGradient id=\"hg\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#17263f\"\/><stop offset=\"1\" stop-color=\"#0f172a\"\/><\/linearGradient><marker id=\"ar\" viewBox=\"0 0 10 10\" refX=\"8\" refY=\"5\" markerWidth=\"7\" markerHeight=\"7\" orient=\"auto-start-reverse\"><path d=\"M0 0L10 5L0 10z\" fill=\"#0A66C2\"\/><\/marker><\/defs><rect x=\"0\" y=\"0\" width=\"920\" height=\"200\" rx=\"14\" fill=\"#f8fafc\" stroke=\"#e2e8f0\"\/><rect x=\"0\" y=\"0\" width=\"920\" height=\"60\" rx=\"14\" fill=\"url(#hg)\"\/><rect x=\"0\" y=\"40\" width=\"920\" height=\"20\" fill=\"#0f172a\"\/><text x=\"28\" y=\"37\" fill=\"#ffffff\" font-size=\"19\" font-weight=\"700\">Route tags close the loop<\/text><text x=\"892\" y=\"37\" text-anchor=\"end\" fill=\"#38bdf8\" font-size=\"13\" font-weight=\"600\" letter-spacing=\"1\">NET BY ME<\/text><rect x=\"60\" y=\"95\" width=\"230\" height=\"70\" rx=\"10\" fill=\"#e0f2fe\" stroke=\"#0A66C2\"\/><text x=\"175\" y=\"124\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"12\" font-weight=\"700\">OSPF -> EIGRP<\/text><text x=\"175\" y=\"146\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"10.5\">tag = 110<\/text><rect x=\"360\" y=\"95\" width=\"200\" height=\"70\" rx=\"10\" fill=\"#0f172a\"\/><text x=\"460\" y=\"124\" text-anchor=\"middle\" fill=\"#fff\" font-size=\"12\" font-weight=\"700\">EIGRP -> OSPF<\/text><text x=\"460\" y=\"146\" text-anchor=\"middle\" fill=\"#fca5a5\" font-size=\"10\">deny tag 110<\/text><rect x=\"630\" y=\"95\" width=\"230\" height=\"70\" rx=\"10\" fill=\"#dcfce7\" stroke=\"#166534\"\/><text x=\"745\" y=\"124\" text-anchor=\"middle\" fill=\"#166534\" font-size=\"12\" font-weight=\"700\">loop broken<\/text><text x=\"745\" y=\"146\" text-anchor=\"middle\" fill=\"#334155\" font-size=\"10.5\">route cannot return<\/text><line x1=\"290\" y1=\"130\" x2=\"360\" y2=\"130\" stroke=\"#0A66C2\" stroke-width=\"2\" marker-end=\"url(#ar)\"\/><line x1=\"560\" y1=\"130\" x2=\"630\" y2=\"130\" stroke=\"#166534\" stroke-width=\"2\" marker-end=\"url(#ar)\"\/><\/svg><\/figure><h2 class=\"wp-block-heading\">Takeaways<\/h2><p class=\"wp-block-paragraph\">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 &lt; OSPF 110 &lt; 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 \u2014 and the boundary behaves.<\/p>","protected":false},"excerpt":{"rendered":"<p>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 \u2014 EIGRP will silently discard every redistributed route unless you hand it a metric \u2014 and the administrative-distance ordering (EIGRP-internal 90, OSPF 110, EIGRP-external 170)<\/p><\/div>\n<div class=\"blog-btn\"><a href=\"https:\/\/mokrane-assam.com\/index.php\/2023\/11\/29\/redistribution-ospf-and-eigrp-seed-metrics-externals-and-loops\/\" class=\"home-blog-btn\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-200","post","type-post","status-publish","format-standard","hentry","category-basic"],"_links":{"self":[{"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/posts\/200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/comments?post=200"}],"version-history":[{"count":1,"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/posts\/200\/revisions"}],"predecessor-version":[{"id":203,"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/posts\/200\/revisions\/203"}],"wp:attachment":[{"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/media?parent=200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/categories?post=200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/tags?post=200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}