02-16-2024, 06:13 PM
The redistribute command option to match external includes both E1 and E2 Subnets. The keyword 'external' is converted to 'External 1 and External 2' in the running config.
IOU2#sh ip route | inc E1 | E2
E1 - OSPF external type 1, E2 - OSPF external type 2
O E2 4.4.4.0 [110/20] via 192.168.12.1, 00:12:40, Ethernet1/0
O E1 6.6.6.0 [110/40] via 192.168.12.1, 00:13:01, Ethernet1/0
O E1 192.168.56.0/24 [110/40] via 192.168.12.1, 00:35:06, Ethernet1/0
IOU2#
IOU2#
IOU2#show run | section router eigrp
router eigrp 1
network 2.0.0.0
network 192.168.23.0
IOU2#
IOU2#
IOU2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
IOU2(config)#router eigrp 1
IOU2(config-router)#redistribute ospf 1 match external metric 10000 2000 255 1 1500 route-map OSPF-TO-EIGRP
IOU2(config-router)#end
IOU2#
IOU2#
IOU2#sh run | section router eigrp
router eigrp 1
network 2.0.0.0
network 192.168.23.0
redistribute ospf 1 match external 1 external 2 metric 10000 2000 255 1 1500 route-map OSPF-TO-EIGRP
IOU2#
######################################################################
IOU3#sh ip route | inc EX
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
D EX 4.4.4.0 [170/793600] via 192.168.23.2, 00:07:02, Ethernet0/0
D EX 6.6.6.0 [170/793600] via 192.168.23.2, 00:07:02, Ethernet0/0
IOU3#
IOU2#sh ip route | inc E1 | E2
E1 - OSPF external type 1, E2 - OSPF external type 2
O E2 4.4.4.0 [110/20] via 192.168.12.1, 00:12:40, Ethernet1/0
O E1 6.6.6.0 [110/40] via 192.168.12.1, 00:13:01, Ethernet1/0
O E1 192.168.56.0/24 [110/40] via 192.168.12.1, 00:35:06, Ethernet1/0
IOU2#
IOU2#
IOU2#show run | section router eigrp
router eigrp 1
network 2.0.0.0
network 192.168.23.0
IOU2#
IOU2#
IOU2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
IOU2(config)#router eigrp 1
IOU2(config-router)#redistribute ospf 1 match external metric 10000 2000 255 1 1500 route-map OSPF-TO-EIGRP
IOU2(config-router)#end
IOU2#
IOU2#
IOU2#sh run | section router eigrp
router eigrp 1
network 2.0.0.0
network 192.168.23.0
redistribute ospf 1 match external 1 external 2 metric 10000 2000 255 1 1500 route-map OSPF-TO-EIGRP
IOU2#
######################################################################
IOU3#sh ip route | inc EX
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
D EX 4.4.4.0 [170/793600] via 192.168.23.2, 00:07:02, Ethernet0/0
D EX 6.6.6.0 [170/793600] via 192.168.23.2, 00:07:02, Ethernet0/0
IOU3#