␡
- Configuration Example 1: Redistributing Classful Routes into OSPF with the Default Type and Metric
- Configuration Example 2: Redistributing Classful Routes into OSPF with the Default Type and Specific Metric
- Configuration Example 3: Redistributing Classful Routes into OSPF as Type 1 Routes Using a Specific Metric
- Configuration Example 4: Redistributing Subnet Routes into OSPF as Type 1 Routes Using a Specific Metric
- Configuration Example 5: Redistributing Subnet Routes into OSPF as Type 1 Routes Using a Specific Metric and Route Tag
- Configuration Example 6: Controlling the Routes to Be Redistributed Based on IP Address
- Configuration Example 7: Modifying the Metric of Redistributed Routes Using a Route Map
- Configuration Example 8: Modifying the Metric Type of Redistributed Routes Using a Route Map
- Configuration Example 9: Modifying the Tag Value of Redistributed Routes Using a Route Map
- Configuration Example 10: Controlling Route Redistribution Based on Tag Values
- Troubleshooting
This chapter is from the book
Configuration Example 8: Modifying the Metric Type of Redistributed Routes Using a Route Map
In Figure 14-3, configuration example 1 for the redistribute route-map command, the EIGRP routes were redistributed into OSPF with a default metric type of 2. For this example, modify the configuration on Router B to change the metric type of the classful routes to type 1.
Router B router ospf 1 redistribute eigrp 1 subnets route-map control-eigrp network 10.1.1.0 0.0.0.3 area 0 ! access-list 1 permit 6.0.0.0 0.15.255.255 access-list 1 permit 146.6.0.0 0.0.15.255 access-list 1 permit 206.6.6.0 0.0.0.15 access-list 1 permit route-map control-eigrp permit 10 match ip address 1 set metric 200 ! route-map control-eigrp permit 20 set metric 100 set metric-type type-1
Verification
Verify that the classful EIGRP routes have been redistributed into OSPF as metric type 1 routes.
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 E1 205.5.5.0/24 [110/1662] via 10.1.1.2, 00:01:38, Serial0/1 206.6.6.0/28 is subnetted, 1 subnets O E2 206.6.6.0 [110/200] via 10.1.1.2, 00:01:38, Serial0/1 O E1 5.0.0.0/8 [110/1662] via 10.1.1.2, 00:01:38, Serial0/1 6.0.0.0/12 is subnetted, 1 subnets O E2 6.0.0.0 [110/200] via 10.1.1.2, 00:01:38, Serial0/1 172.16.0.0/24 is subnetted, 1 subnets C 172.16.1.0 is directly connected, Ethernet0/0 O E1 145.5.0.0/16 [110/1662] via 10.1.1.2, 00:01:39, Serial0/1 10.0.0.0/30 is subnetted, 2 subnets C 10.1.1.0 is directly connected, Serial0/1 O E2 10.1.1.4 [110/200] via 10.1.1.2, 00:01:41, Serial0/1 146.6.0.0/20 is subnetted, 1 subnets O E2 146.6.0.0 [110/200] via 10.1.1.2, 00:01:41, Serial0/1