1.4 Troubleshoot redistribution between routing protocols and other route sources
ENARSI 300-410 v1.1 · 1.0 Layer 3 Technologies
Redistribution copies routes from one source (connected, static, another protocol) into a routing protocol. Each protocol needs a seed metric for routes it did not compute, and each has its own defaults and traps: OSPF needs subnets in classic IOS, EIGRP and RIP need a metric, and BGP only takes what is in the RIB.
What you must know
- Redistribute connected, static, OSPF, EIGRP and BGP into each other with the right seed metric.
- Know the defaults: OSPF E2 metric 20 (1 for BGP), EIGRP and RIP infinite unless set.
- Explain O E1 vs O E2 and EIGRP external routes.
- Verify with
show ip route,show ip ospf database externalandshow ip eigrp topology.
Seed metrics by target protocol
| Into | Command | Default seed metric | Shows as |
|---|---|---|---|
| OSPF | redistribute eigrp 100 subnets | 20 (1 for BGP routes), type E2 | O E2 / O E1 |
| EIGRP | redistribute ospf 1 metric 1000000 10 255 1 1500 | Infinite: nothing is sent (except connected/static) | D EX |
| RIP | redistribute ospf 1 metric 3 | Infinite (16) | R |
| BGP | redistribute ospf 1 match internal external | IGP metric becomes MED; origin incomplete (?) | B |
EIGRP's five values are bandwidth (kbit/s), delay (tens of µs), reliability, load and MTU. default-metric under the process sets the same for every redistributed source. Connected and static routes need no seed metric when redistributed into EIGRP; they take the interface's metric.
A two-domain example
router eigrp 100
redistribute ospf 1 metric 1000000 10 255 1 1500
!
router ospf 1
redistribute eigrp 100 subnets metric-type 1PC1 reaches SRV3 (1) only when both directions are in place; with one direction the packet arrives and the reply has no route back.
R3# show ip route ospf
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
O E1 10.1.1.0/24 [110/21] via 10.0.23.2, 00:01:12, GigabitEthernet0/0
O E1 10.0.12.0/30 [110/21] via 10.0.23.2, 00:01:12, GigabitEthernet0/0
R1# show ip route eigrp
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
D EX 172.16.3.0/24 [170/3072] via 10.0.12.2, 00:01:40, GigabitEthernet0/0What gets redistributed
- Only routes in the RIB from that source, plus the connected networks the source protocol runs on. R2 redistributing OSPF into EIGRP also sends R2's own OSPF-enabled subnets.
- OSPF E2 keeps the seed metric across the domain; E1 adds the internal cost. At equal metrics, E1 is preferred over E2.
- Redistributing BGP into an IGP leaves out iBGP routes unless
bgp redistribute-internalis set; that is deliberate. - Redistributing into BGP takes only routes in the RIB, and OSPF external routes need
match external.
Commands
show ip route <protocol> | Imported routes with their codes (O E1/E2, D EX). |
show ip protocols | What each process redistributes and its default metric. |
show ip ospf database external | Type 5 LSAs, their metric type and forward address. |
show ip eigrp topology <prefix> | External data: origin protocol, router, metric and tag. |
Exam traps
- EIGRP needs a seed metric for routes from another protocol; without it nothing is sent.
- Classic IOS OSPF redistributes only classful networks without
subnets. - O E2 metrics do not grow across the area; E1 do.
- Redistribution is not transitive: R2 redistributing EIGRP into OSPF does not send RIP routes that EIGRP itself got from R1.
Check yourself
- Default seed metric for EIGRP routes into OSPF?
- 20, type E2 (1 for BGP routes).
- Why is an O E1 route preferred over an O E2 route with the same metric?
- OSPF prefers E1 over E2 by type, before comparing metrics.
- You redistribute OSPF into EIGRP and nothing appears. First check?
- The seed metric:
metric …ordefault-metricunder EIGRP. - Which BGP routes are redistributed into OSPF by default?
- eBGP-learned routes only; iBGP routes need
bgp redistribute-internal.
Labs
Try it live: Redistribution between EIGRP and OSPF: seed metrics, subnets and a route map
More topics in 1.0 Layer 3 Technologies
- 1.1 Troubleshoot administrative distance across every routing source
- 1.5 Troubleshoot manual and automatic route summarization
- 1.6 Configure and verify policy-based routing
- 1.7 Configure and verify VRF-Lite
- 1.8 Describe how Bidirectional Forwarding Detection works
- 1.9 Troubleshoot EIGRP in classic and named mode, globally and in a VRF
- 1.10 Troubleshoot OSPFv2 and OSPFv3
- 1.11 Troubleshoot internal and external BGP, globally and in a VRF