␡
- 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 7: Modifying the Metric of Redistributed Routes Using a Route Map
In the first configuration example for Figure 14-3, 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 the classful routes to 100 and the metric of the classless routes to 200.
Router B router ospf 1 redistribute eigrp 1 subnets route-map control-eigrp ! 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 10.1.1.4 0.0.0.3 route-map control-eigrp permit 10 match ip address 1 set metric 200 ! route-map control-eigrp permit 20 set metric 100
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 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/100] via 10.1.1.2, 00:01:53, 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:53, Serial0/1 O E2 5.0.0.0/8 [110/100] via 10.1.1.2, 00:01:53, 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:53, Serial0/1 172.16.0.0/24 is subnetted, 1 subnets C 172.16.1.0 is directly connected, Ethernet0/0 O E2 145.5.0.0/16 [110/100] via 10.1.1.2, 00:01:54, 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:55, 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:55, Serial0/1 rtrA#show ip ospf database external 5.0.0.0 OSPF Router with ID (1.1.1.1) (Process ID 1) Type-5 AS External Link States Routing Bit Set on this LSA LS age: 254 Options: (No TOS-capability, DC) LS Type: AS External Link Link State ID: 5.0.0.0 (External Network Number ) Advertising Router: 2.2.2.2 LS Seq Number: 80000002 Checksum: 0x8BB6 Length: 36 Network Mask: /8 Metric Type: 2 (Larger than any link state path) TOS: 0 Metric: 100 Forward Address: 0.0.0.0 External Route Tag: 0 rtrA#show ip ospf database external 206.6.6.0 OSPF Router with ID (1.1.1.1) (Process ID 1) Type-5 AS External Link States Routing Bit Set on this LSA LS age: 297 Options: (No TOS-capability, DC) LS Type: AS External Link Link State ID: 206.6.6.0 (External Network Number ) Advertising Router: 2.2.2.2 LS Seq Number: 80000003 Checksum: 0x51C4 Length: 36 Network Mask: /28 Metric Type: 2 (Larger than any link state path) TOS: 0 Metric: 200 Forward Address: 0.0.0.0 External Route Tag: 0