Home > Articles > Cisco Network Technology > IP Communications/VoIP > Cisco OSPF Route Redistribution

Cisco OSPF Route Redistribution

Configuration Example 2: Redistributing Classful Routes into OSPF with the Default Type and Specific Metric

In the first configuration example for Figure 14-1, the EIGRP routes were redistributed into OSPF with a default metric of 20. For this example, modify the configuration on Router B to change the metric of all the redistributed EIGRP routes to 66.

Router B
router ospf 1
 redistribute eigrp 1 metric 66

Verification

Verify that the new metric has been applied to the redistributed EIGRP routes. On Router A you can look at the IP routing table and on Router B you can inspect the OSPF database.

rtrA#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
    i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
    * - candidate default, U - per-user static route, o - ODR
    P - periodic downloaded static route
Gateway of last resort is not set
   1.0.0.0/32 is subnetted, 1 subnets
C    1.1.1.1 is directly connected, Loopback0
O E2 205.5.5.0/24 [110/66] via 10.1.1.2, 00:00:16, Serial0/1
O E2 5.0.0.0/8 [110/66] via 10.1.1.2, 00:00:16, Serial0/1
O E2 145.5.0.0/16 [110/66] via 10.1.1.2, 00:00:16, Serial0/1
   10.0.0.0/30 is subnetted, 1 subnets
C    10.1.1.0 is directly connected, Serial0/1
3. Configuration Example 3: Redistributing Classful Routes into OSPF as Type 1 Routes Using a Specific Metric | Next Section Previous Section