Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Route Redistribution Reference

Direct answer

Route redistribution copies routes from one routing source (connected, static, OSPF, EIGRP, BGP) into another protocol. Set a seed metric, filter with route maps and tag routes to avoid loops when redistributing in more than one place.

When to use this

Use it when one exact route, peer or policy behaves differently from design and you need to identify the first BGP/routing-policy boundary that disagrees.

First 30 seconds

1. Redistribution moves routes between protocols.

2. Set seed metrics (EIGRP needs one).

3. Use route-maps and tags to filter.

4. Mutual redistribution at multiple points risks loops — tag and deny.

5. Check AD conflicts.

Operational verification

source protocol → route-map/tag → target protocol → RIB

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Metric, administrative distance and longest-prefix match

OSPF cost and EIGRP composite metric cannot be compared numerically across protocols. For the same prefix and mask, default IOS XE administrative distances include EIGRP internal 90, OSPF 110 and EIGRP external 170. Configured distance overrides can change those preferences.

Administrative distance is a local RIB choice and is not transported as a universal path attribute. During forwarding, a more-specific installed prefix wins over a less-specific one regardless of their distances.

A route tag is policy metadata, not automatic loop detection. set tag has no blocking effect unless an export policy matches and rejects it. A route-map's packet-policy counters are not reliable evidence of redistribution matches.

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
Key commandshow ip ospf database external 10.20.20.0
Scope / prerequisiteUse it when one exact route, peer or policy behaves differently from design and you need to identify the first BGP/rout…
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.

8 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 Start with the source route and policy attachment Verify boundary

On the redistribution router, inspect show ip route 10.20.20.0 255.255.255.0. For the example below it must be learned through EIGRP 100. A connected or static winner for that exact prefix requires the corresponding source redistribution policy; its presence in the EIGRP topology is not enough.

Use show ip protocols, show running-config | section router ospf and show running-config | section router eigrp to confirm process numbers, redistribution direction and attached route-map names. OSPF process 10 is locally significant; EIGRP 100 identifies the autonomous system used on the EIGRP side.

Check both routers in the same global IPv4 context. A route in another VRF does not satisfy this example.

Step 2 Verify the receiving databases before the remote RIB Verify boundary

On B and A:

show ip ospf database external 10.20.20.0
show ip route 10.20.20.0 255.255.255.0

Expect a Type-5 LSA for the /24, advertised by B, metric type 1, metric 20 and route tag 100. On A the RIB metric includes its internal cost. If the forwarding address is nonzero, verify reachability to that address; otherwise check the path to the ASBR.

On B and C:

show ip eigrp topology 10.10.10.0/24
show ip route 10.10.10.0 255.255.255.0

Read the external-data fields for source protocol and administrator tag 200. On C expect an external EIGRP candidate and, absent a preferred competing route, D EX in the RIB. Record next hop and interface. A route remaining only in the protocol database has not passed the RIB check.

Step 3 Verify forwarding and the return path Verify boundary

On A, inspect show ip cef 10.20.20.1 detail; on C inspect show ip cef 10.10.10.1 detail. Confirm expected egress and next-hop resolution, including show ip arp for Ethernet neighbors. Unresolved adjacency or drop/Null0 forwarding needs explanation even when the RIB looks correct.

Use live test hosts 10.10.10.1 and 10.20.20.1 in the lab, then test ping and the intended application between them. For router-originated tests, use extended ping with a source address that actually exists on that router; an uplink-sourced ping exercises a different return route. Use traceroute in both directions to locate a repeated hop or unexpected exit.

If routing and CEF agree but traffic fails, inspect interface errors, ACL counters, host gateway/firewall and return routing. Repeat the same test after a targeted correction; a successful management ping to B does not test cross-domain host forwarding.

Step 4 Missing advertisements: eligibility, filtering or metric Narrow the fault

If the source prefix is absent from the border RIB, repair source reachability first. If the installed source is static or connected, an EIGRP redistribution statement does not make it EIGRP-owned.

If the source is correct but the target database lacks the prefix, inspect the attached route-map, exact prefix length and deny sequences. A prefix-list entry without ge or le matches only that prefix length. A prefix-list deny makes that match fail; it does not itself terminate the entire route-map. A matching route-map deny does reject redistribution, and unmatched routes reach the route-map's implicit deny.

For OSPF-to-EIGRP, check that a usable seed metric is configured. For EIGRP-to-OSPF, check subnets, source AS number and whether the receiving area accepts external LSAs.

Step 5 A remote prefix is missing: follow one route across the border Narrow the fault

1. At border B, does show ip route 10.20.20.0 255.255.255.0 select EIGRP 100? If not, stop at the source RIB.

2. Does EIGRP-TO-OSPF permit that /24 after the tag deny? Check show route-map EIGRP-TO-OSPF and show ip prefix-list EIGRP-EXPORT.

3. Does show ip ospf database external 10.20.20.0 show B's external LSA? If not, inspect redistribution attachment and metric. Record B's router ID using show ip ospf.

4. Does the OSPF receiver have that LSA? If B has it but the receiver does not, investigate area type, adjacency and flooding rather than widening the prefix-list.

5. If the LSA exists remotely, inspect show ip route for the exact prefix and its ASBR/forwarding-address reachability. Another route source can win.

6. If the intended route wins, inspect CEF, next-hop resolution and the original traffic in both directions.

Step 6 Two borders: feedback, route replacement and flapping Narrow the fault

If a prefix's route code, next hop or tag changes repeatedly, compare the exact prefix on every redistribution router. A native route can lose to a reintroduced copy; when the native source withdraws, that copy can keep a false reachability claim alive.

Capture original source, selected RIB source, external tag and advertising router before changing policy. Confirm that all borders deny tag 100 on OSPF-to-EIGRP export and tag 200 on EIGRP-to-OSPF export. Check for an earlier permit that bypasses the deny and for another redistribution or summarization point that overwrites or loses the tag.

Changing administrative distance can move the symptom without fixing feedback. Restore prefix ownership and export policy first; then test convergence and alternate paths in the lab. Do not clear every adjacency to hide an unexplained route transition.

Step 7 Acceptance checks and rollback for the example Narrow the fault

Accept the lab only after A learns the EIGRP-owned /24 as O E1 with tag 100, C learns the OSPF-owned /24 as D EX with tag 200, and both directions resolve to the intended border in the RIB and CEF.

Check an adjacent, non-allowlisted prefix: it must not appear as a new external advertisement from B. In an isolated lab, withdraw one source /24 and confirm the corresponding external advertisement and remote route disappear after convergence. Do not count a default or aggregate as evidence the withdrawn /24 remains present. Restore the source and repeat the original host traffic test.

Before a real change, save the existing router statements and policy objects. Roll back by restoring those exact statements and attachments. On a clean lab only, removing the two added redistribution statements stops these exports; retain any policy object still referenced elsewhere. No lab execution or production verification is claimed by this reference.

Step 8 Area restrictions and source references Narrow the fault

A normal OSPF area can carry Type-5 external LSAs. Stub areas do not receive them. An NSSA uses Type-7 LSAs for locally redistributed routes and may translate them at an ABR; show ip ospf database nssa-external is the relevant local database view. A default route in a stub area may provide reachability without exposing the external /24. The Type-5 checks above intentionally assume area 0, not an NSSA or stub design.

Sources for protocol behavior and implementation details:

These sources support the reference model. The authored topology and illustrative output require separate device testing; stored Evidence, review dates and verification dates are unchanged.

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

Do not equate a configured policy, Established BGP session, visible attribute or installed route with end-to-end success. Prove each boundary in order.

Key checks
  • show ip protocols — redistribution and route-maps
  • show ip route <prefix> — source and AD
  • show ip ospf database external — redistributed routes
ReferenceWhat it is1 section · depth on demand

Redistribution: a new advertisement, not a shared topology

Redistribution takes eligible reachability from one route source and originates an advertisement in another routing process. An OSPF topology is not converted into an EIGRP topology: the boundary router supplies a destination, a target-protocol metric and policy metadata. The receiving routers calculate their own paths to that boundary.

Trace a prefix through source RIB selection → export policy → target protocol database → remote RIB → CEF → packet and return path. A database entry alone does not establish that traffic uses it.

Scope here: IPv4 unicast, global routing table, Cisco IOS XE with classic numbered EIGRP and OSPFv2. Named EIGRP uses address-family/topology configuration contexts; do not paste this numbered-process example into that hierarchy.

ReferenceWhy it matters1 section · depth on demand

Use selective redistribution at a routing-domain boundary

A migration may require an OSPF campus to reach an EIGRP site without changing every router at once. Before enabling route exchange, write down which side owns each prefix and where return traffic goes.

Prefer a single controlled border where that meets availability needs. With two borders, both can reintroduce routes learned through the other domain. Use the same prefix ownership and tag convention at every exchange point, and test source withdrawal and border failure in an isolated lab before relying on redundant redistribution.

ReferenceHow it works1 section · depth on demand

What each device does with the example routes

Topology: OSPF router A → border B → EIGRP router C. A advertises 10.10.10.0/24 internally in OSPF 10, area 0. C advertises 10.20.20.0/24 internally in EIGRP 100. B learns both through already working adjacencies; neither test /24 is directly connected to B.

B exports only 10.20.20.0/24 into OSPF with external metric 20, Type 1 and tag 100. A should learn an O E1 route. B exports only 10.10.10.0/24 into EIGRP with tag 200 and an explicit seed metric. C should learn D EX.

These are two independent exports. Enabling one direction does not create the reverse route. End hosts need suitable gateways, and transit/security policy must also allow their traffic.

ReferenceImportant terms & boundaries4 sections · depth on demand

Prefix ownership and tag contract

This lab reserves tag 100 for EIGRP-origin prefixes exported into OSPF, and tag 200 for OSPF-origin prefixes exported into EIGRP. Tags are 32-bit administrative values whose meaning must be agreed across the domain.

EIGRP-TO-OSPF first rejects tag 200, then permits only EIGRP-EXPORT and sets tag 100. OSPF-TO-EIGRP first rejects tag 100, then permits only OSPF-EXPORT and sets tag 200. Both route-maps implicitly deny everything else. The disjoint /24 allowlists already limit exchange in this small topology; tag checks provide an additional origin boundary as the design grows.

Apply that convention to every redistribution point. Route tags are not cryptographic provenance, and summaries or policy changes can discard them. Validate the advertised tag at the receiving device.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

In depth

Route redistribution makes a router act as a translator between routing domains: it takes routes that one source has installed in the RIB and originates them in another protocol with a new metric and route type. Only routes the source actually installed are eligible, and connected subnets of interfaces running the source protocol are included implicitly on IOS.

Design ruleReason
Redistribute only what is needed (route maps)Avoid leaking internal or default routes
Set a seed metric explicitlySome protocols treat missing metric as unreachable
Tag routes at each redistribution pointPrevent feedback loops
Watch administrative distanceExternal routes may win or lose unexpectedly

Two-way redistribution at more than one router is the classic source of routing loops and suboptimal paths.

Default routes, connected prefixes and BGP exceptions

Treat 0.0.0.0/0 as an explicit design choice. For OSPF default origination use default-information originate under the OSPF process: normally a default must already exist in the local RIB. always removes that prerequisite and can advertise a black hole if the upstream fails. General redistribution is not a substitute for understanding OSPF default origination.

An interface participating in a routing process remains connected in the local RIB; review Cisco's protocol-specific connected-route redistribution behavior and filter explicitly. The example avoids this ambiguity by using prefixes learned from remote routers.

BGP adds a separate restriction: IOS XE normally excludes iBGP-learned routes from redistribution into an IGP unless bgp redistribute-internal is enabled. Broad BGP-to-IGP export can overwhelm the IGP. Prefer bounded prefixes or a deliberately originated default.

Seed metrics and OSPF external route types

In the example, metric 100000 100 255 1 1500 gives EIGRP bandwidth in kbit/s, delay in tens of microseconds, reliability, load and MTU. Thus delay 100 represents 1000 microseconds. With default K values, bandwidth and delay determine the composite metric; the MTU field is not an MTU compatibility test. The final remote metric also depends on the path and metric mode; do not expect it to equal 100000 or 100.

OSPF metric 20 metric-type 1 deliberately selects E1. E1 includes internal cost to the ASBR or applicable forwarding address plus the external metric. E2 primarily compares external metric and uses internal cost when relevant to equal external costs; it does not ignore topology reachability. Compare eligible routes within their OSPF route-type rules, rather than assuming the smallest displayed number always wins.

The explicit values make this example independent of implicit redistribution defaults.

ReferenceConfiguration & state1 section · depth on demand

IOS XE lab: filtered OSPF 10 ↔ EIGRP 100 export

Prerequisites: A–B OSPF area 0 and B–C EIGRP 100 adjacencies already work; B has OSPF-learned 10.10.10.0/24 and EIGRP-learned 10.20.20.0/24. Use a lab with no existing objects of these names. This is the additional border configuration, not a complete interface or neighbor setup.

ip prefix-list EIGRP-EXPORT seq 10 permit 10.20.20.0/24
ip prefix-list OSPF-EXPORT seq 10 permit 10.10.10.0/24
!
route-map EIGRP-TO-OSPF deny 10
 match tag 200
route-map EIGRP-TO-OSPF permit 20
 match ip address prefix-list EIGRP-EXPORT
 set tag 100
!
route-map OSPF-TO-EIGRP deny 10
 match tag 100
route-map OSPF-TO-EIGRP permit 20
 match ip address prefix-list OSPF-EXPORT
 set tag 200
!
router ospf 10
 redistribute eigrp 100 metric 20 metric-type 1 subnets route-map EIGRP-TO-OSPF
!
router eigrp 100
 redistribute ospf 10 match internal external 1 external 2 metric 100000 100 255 1 1500 route-map OSPF-TO-EIGRP

Enter from global configuration mode; indentation shows submodes. subnets includes subnetted routes in OSPF export. The explicit OSPF match categories allow internal/E1/E2 candidates to reach the route-map; the tag deny then rejects a returned tag-100 route. Do not add an unconditional final permit: it would export prefixes outside the allowlists.

Syntax/metric mode must be checked against the actual IOS XE release. Adapt existing policy deliberately rather than replacing production redistribution statements.

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 Network & Protocols → Route Redistribution Reference. 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%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
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
redistributionredistribute ospfredistribute bgproute tags
Embedded reference data

Quick lookup tables

Route Redistribution Reference operational reference

Topic-specific bounded interpretation: known-good state, suspicious signatures and the next technical proof boundary.

BoundaryKnown-good for Route Redistribution ReferenceSuspicious signatureNext proof
Input/sessionCorrect peer, source, AF and route contextSession/source/input state disagreesExact peer/source/prefix detail
Policy/protocolcontrolled exchange of routes between routing domains with explicit source eligibility, seed/default metric behavior, route policy, administrative-distance feedback boundaries, loop prevention and end-to-end verification matches intended designthe source route is not eligible for redistribution, required metric information is missing, a route-map filters or retags the wrong prefix, mutual redistribution reintroduces a route and causes feedback, administrative distance selects an unexpected local source, or downstream routers learn the route but the reverse path or FIB remains incorrectCompare policy/attributes/propagation
Route/forwardingExpected result reaches RIB/FIBControl-plane state exists but installed path disagreesRIB/FIB/CEF + next-hop proof
ClosureOriginal workload passes for explained reasonSymptom moved, was bypassed or state was forcedRegression/failover test
Embedded quick reference

Operational notes

Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.

Redistribution Fast Check

Source → policy → target protocol.

1. Prove source route exists in RIB.

2. Inspect redistribution statement.

3. Inspect route-map / prefix-list.

4. Check target protocol database.

5. Check metric/route type.

6. Check route tags / feedback path.

Prefer explicit policy + tags over broad mutual redistribution.

Depth when you need it

Deep reference

Healthy vs suspicious evidence

Reading external-route output

Illustrative excerpts only; values below are not captured device Evidence.

On A, assume cost 10 to B, external metric 20 and forwarding address 0.0.0.0:

O E1  10.20.20.0/24 [110/30] via 192.0.2.2, 00:00:12, GigabitEthernet0/0

O E1 identifies an OSPF Type-1 external route. [110/30] means administrative distance 110 and total metric 30, not 30 hops. The age is route-update age, not a neighbor dead timer. The next hop is A's adjacent forwarding router, which need not always be the original ASBR.

Relevant LSA fields:

Link State ID: 10.20.20.0 (External Network Number)
Network Mask: /24
Metric Type: 1
Metric: 20
Forward Address: 0.0.0.0
External Route Tag: 100

Read the advertising-router field as well to distinguish multiple ASBR advertisements. An EIGRP-side D EX route normally has distance 170; its second bracket value is an EIGRP metric, not OSPF cost. A tag of 0 or 200 on the OSPF copy contradicts this lab's export intent; inspect the actual matching policy and advertising router.

Confirmation

Confirm action

Continue?