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
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 126.96.36.199/32 is subnetted, 1 subnets C 188.8.131.52 is directly connected, Loopback0 O E2 184.108.40.206/24 [110/66] via 10.1.1.2, 00:00:16, Serial0/1 O E2 220.127.116.11/8 [110/66] via 10.1.1.2, 00:00:16, Serial0/1 O E2 18.104.22.168/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