Redistribution into EIGRP by using Route Maps is done similarly as with OSPF. In an earlier entry there is a lab for configuring redistribution into EIGRP without using Route Maps, here we’ll use the same topology in GNS3.
Our purpose is to redistribute routes learned from OSPF to EIGRP. Try to follow this guideline when doing redistribution with route maps:
- Define one or more ACLs (Access Lists) in which specify routes that should be checked by the route-map;
- Define an route-map with permit (redistribution will take place) or deny (redistribution will not take place) statements where ACLs are matched and attributes for routes are set;
- Set the
Ip address for fast ethernet and loopback interfaces were configured in advance, OSPF and EIGRP also. At this point R3 doesn’t know about any networks from OSPF domain.
R3#show ip route ... output omitted ... Gateway of last resort is not set 10.0.0.0/24 is subnetted, 1 subnets C 10.0.0.0 is directly connected, FastEthernet0/0 R3#
R1 will be configured to redistribute OSPF learned routes into EIGRP by using a route map.
Access Lists definitionACL 10 used to specify which traffic will be redistributed
ip access-list standard 10 10 permit 192.168.0.0 0.0.1.255ACL 20 used to specify which traffic will not be redistributed
ip access-list standard 20 10 permit 10.0.1.0 0.0.0.255In ACL 10, I included in one entry networks for both loopback interfaces of R2 (by using wildcard bits 0.0.1.255). In access list 20 is specified network for link between R1 and R2, I don’t want to redistribute this route in EIGRP.
Route Map definition
route-map OSPF-to-EIGRP permit 10 match ip address 10 set metric 10000 10 200 5 1500 route-map OSPF-to-EIGRP deny 20 match ip address 20
Sequence 10 is a permit, so, routes of matched access list (10) will be redistributed and metrics is also set as follow:
- Bandwidth – 10000 Kb/s;
- Delay – 10 (In ten of microseconds);
- Reliability – 200;
- Loading – 20;
- MTU – 1500.
Sequence 20 is a deny, and IP routes matched will not be redistributed.
Redistribution command (on R1)
router eigrp 1 redistribute ospf 1 route-map OSPF-to-EIGRP
Now we can check, should be fine:
R3#show ip route ... output omitted ... Gateway of last resort is not set 10.0.0.0/24 is subnetted, 1 subnets C 10.0.0.0 is directly connected, FastEthernet0/0 192.168.0.0/32 is subnetted, 1 subnets D EX 192.168.0.1 [170/284160] via 10.0.0.1, 00:03:45, FastEthernet0/0 192.168.1.0/32 is subnetted, 1 subnets D EX 192.168.1.1 [170/284160] via 10.0.0.1, 00:03:45, FastEthernet0/0 R3#Pretty well!