Configure Route Redistribution Between EIGRP and OSPF
Configure Route Redistribution Between EIGRP and OSPF
Topology
Addressing Table
Device Interface IPv4 Address/Mask IPv6 Address/Prefix IPv6 Link Local
R1
G0/0/1 10.1.11.1/24 2001:db8:acad:11::1/64 fe80::11:1
R1
Loopback 0 10.1.1.1/24 2001:db8:acad:1::1/64 fe80::1:1
R2 G0/0/0 10.1.12.2/24 2001:db8:acad:12::2/64 fe80::12:2
R2
G0/0/1 10.1.23.2/24 2001:db8:acad:23::2/64 fe80::23:2
R3 G0/0/0 10.1.23.3/24 2001:db8:acad:23::3/64 fe80::23:3
R3
G0/0/1 10.1.32.1/24 2001:db8:acad:32::3/64 fe80::32:3
R3
Loopback 0 10.3.3.3/24 2001:db8:acad:3::3/64 fe80::3:3
D1 G1/0/11 10.1.11.2/24 2001:db8:acad:11::2/64 fe80::11:2
ã 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 16 www.netacad.com
Lab - Configure Route Redistribution Between EIGRP and OSPF
D1
Loopback 0 209.165.201.1/25 2001:db8:209:165:201::1/80 fe80::209:1
D2 G1/0/11 10.1.32.2/24 2001:db8:acad:32::2/64 fe80::32:2
D2
Loopback 0 198.51.100.1/25 2001:db8:198:51:100::1/80 fe80::198:1
Objectives
Part 1: Build the Network and Configure Basic Device Settings
Part 2: Verify OSPFv3 AF Neighborships and Routing for IPv4 and IPv6
Part 3: Verify EIGRP Neighborships and Routing for IPv4 and IPv6
Part 4: Configure Redistribution from OSPFv3 to EIGRP
Part 5: Configure Redistribution from EIGRP to OSPFv3
Background / Scenario
In this lab, you will configure redistribution from OSPF into EIGRP for IPv4 and IPv6, and redistribution of
EIGRP into OSPF for IPv4 and IPv6. You will also change the metric type for EIGRP routes redistributed into
OSPF.
D1, R1 and R2 are configured with OSPFv3 for IPv4 and IPv6 address families, while R2, R3 and D2 are
configured with EIGRP using named mode for IPv4 and IPv6 address families.
Note: This lab is an exercise in configuring and verifying two-way route redistribution on R2. Route
redistribution in this lab does not reflect networking best practices.
Note: The routers used with CCNP hands-on labs are Cisco 4221 with Cisco IOS XE Release 16.9.4
(universalk9 image). The switches used in the labs are Cisco Catalyst 3650 with Cisco IOS XE Release
16.9.4 (universalk9 image). Other routers, switches, and Cisco IOS versions can be used. Depending on the
model and Cisco IOS version, the commands available and the output produced might vary from what is
shown in the labs.
Note: Make sure that all the devices have been erased and have no startup configurations. If you are unsure,
contact your instructor.
Required Resources
· 3 Routers (Cisco 4221 with Cisco IOS XE Release 16.9.4 universal image or comparable)
· 2 Switches (Cisco 3650 with Cisco IOS XE release 16.9.4 universal image or comparable)
· 1 PC (Choice of operating system with terminal emulation program installed)
· Console cables to configure the Cisco IOS devices via the console ports
· Ethernet cables as shown in the topology
Instructions
ã 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 16 www.netacad.com
Lab - Configure Route Redistribution Between EIGRP and OSPF
Router R1
hostname R1
no ip domain lookup
ipv6 unicast-routing
banner motd # R1, Configure Route Redistribution Between EIGRP and OSPF #
line con 0
exec-timeout 0 0
logging synchronous
exit
router ospfv3 1
router-id 1.1.1.1
exit
interface g0/0/0
ip address 10.1.12.1 255.255.255.0
ipv6 address FE80::12:1 link-local
ipv6 address 2001:DB8:ACAD:12::1/64
ospfv3 1 ipv6 area 0
ospfv3 1 ipv4 area 0
no shutdown
exit
interface g0/0/1
ip address 10.1.11.1 255.255.255.0
ipv6 address fe80::11:1 link-local
ipv6 address 2001:db8:acad:11::1/64
ospfv3 1 ipv6 area 11
ospfv3 1 ipv4 area 11
no shutdown
exit
interface loopback 0
ip address 10.1.1.1 255.255.255.0
ipv6 address FE80::1:1 link-local
ipv6 address 2001:DB8:ACAD:1::1/64
ospfv3 network point-to-point
ospfv3 1 ipv4 area 0
ospfv3 1 ipv6 area 0
no shutdown
exit
router ospfv3 1
address-family ipv4 unicast
passive-interface Loopback0
exit-address-family
ã 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 16 www.netacad.com
Lab - Configure Route Redistribution Between EIGRP and OSPF
ã 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 16 www.netacad.com
Lab - Configure Route Redistribution Between EIGRP and OSPF
exit-address-family
address-family ipv6 unicast autonomous-system 64512
af-interface default
shutdown
exit-af-interface
af-interface GigabitEthernet0/0/1
no shutdown
exit-af-interface
topology base
exit-af-topology
exit-address-family
end
Router R3
hostname R3
no ip domain lookup
ipv6 unicast-routing
banner motd # R3, Configure Route Redistribution Between EIGRP and OSPF #
line con 0
exec-timeout 0 0
logging synchronous
exit
interface g0/0/0
ip address 10.1.23.3 255.255.255.0
ipv6 address fe80::23:3 link-local
ipv6 address 2001:db8:acad:23::3/64
no shutdown
exit
interface g0/0/1
ip address 10.1.32.3 255.255.255.0
ipv6 address fe80::32:3 link-local
ipv6 address 2001:db8:acad:32::3/64
no shutdown
exit
interface loopback 0
ip address 10.3.3.3 255.255.255.0
ipv6 address fe80::3:3 link-local
ipv6 address 2001:db8:acad:3::3/64
no shutdown
exit
router eigrp CISCO
address-family ipv4 unicast autonomous-system 64512
af-interface default
shutdown
exit-af-interface
af-interface GigabitEthernet0/0/0
ã 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 16 www.netacad.com
Lab - Configure Route Redistribution Between EIGRP and OSPF
no shutdown
exit-af-interface
af-interface GigabitEthernet0/0/1
no shutdown
exit-af-interface
af-interface Loopback0
no shutdown
exit-af-interface
topology base
exit-af-topology
network 10.1.23.0 0.0.0.255
network 10.1.32.0 0.0.0.255
network 10.3.3.0 0.0.0.255
eigrp router-id 3.3.3.3
exit-address-family
address-family ipv6 unicast autonomous-system 64512
af-interface default
shutdown
exit-af-interface
af-interface GigabitEthernet0/0/0
no shutdown
exit-af-interface
af-interface GigabitEthernet0/0/1
no shutdown
exit-af-interface
af-interface Loopback0
no shutdown
exit-af-interface
topology base
exit-af-topology
eigrp router-id 3.3.3.3
exit-address-family
end
Switch D1
hostname D1
no ip domain lookup
ip routing
ipv6 unicast-routing
banner motd # D1, Configure Route Redistribution Between EIGRP and OSPF #
line con 0
exec-timeout 0 0
logging synchronous
exit
router ospfv3 1
router-id 11.11.11.11
ã 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 16 www.netacad.com
Lab - Configure Route Redistribution Between EIGRP and OSPF
exit
interface range g1/0/1-24
shutdown
exit
interface g1/0/11
no switchport
ip address 10.1.11.2 255.255.255.0
ipv6 address fe80::11:2 link-local
ipv6 address 2001:db8:acad:11::2/64
ospfv3 1 ipv6 area 11
ospfv3 1 ipv4 area 11
no shutdown
exit
interface loopback 0
ip address 209.165.201.1 255.255.255.128
ipv6 address fe80::209:1 link-local
ipv6 address 2001:db8:209:165:201::1/80
no shutdown
exit
router ospfv3 1
address-family ipv4 unicast
passive-interface Loopback0
default-information originate
exit-address-family
address-family ipv6 unicast
passive-interface Loopback0
default-information originate
exit-address-family
ip route 0.0.0.0 0.0.0.0 Loopback0
ipv6 route ::/0 Loopback0
exit
Switch D2
hostname D2
no ip domain lookup
ip routing
ipv6 unicast-routing
banner motd # D2, Configure Route Redistribution Between EIGRP and OSPF #
line con 0
exec-timeout 0 0
logging synchronous
exit
interface range g1/0/1-24
shutdown
exit
interface g1/0/11
ã 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 16 www.netacad.com
Lab - Configure Route Redistribution Between EIGRP and OSPF
no switchport
ip address 10.1.32.2 255.255.255.0
ipv6 address fe80::32:2 link-local
ipv6 address 2001:db8:acad:32::2/64
no shutdown
exit
interface loopback 0
ip address 198.51.100.1 255.255.255.128
ipv6 address fe80::198:2 link-local
ipv6 address 2001:db8:198:51:100::1/80
no shutdown
router eigrp CISCO
address-family ipv4 unicast autonomous-system 64512
af-interface default
shutdown
exit-af-interface
af-interface Loopback0
no shutdown
passive-interface
exit-af-interface
af-interface GigabitEthernet1/0/11
no shutdown
exit-af-interface
topology base
exit-af-topology
network 10.1.32.0 0.0.0.255
network 198.51.100.0 0.0.0.127
eigrp router-id 22.22.22.22
exit-address-family
address-family ipv6 unicast autonomous-system 64512
af-interface default
shutdown
exit-af-interface
af-interface Loopback0
no shutdown
passive-interface
exit-af-interface
af-interface GigabitEthernet1/0/11
no shutdown
exit-af-interface
topology base
exit-af-topology
eigrp router-id 22.22.22.22
exit-address-family
exit
ã 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 8 of 16 www.netacad.com
Lab - Configure Route Redistribution Between EIGRP and OSPF
Part 2: Verify OSPFv3 AF Neighborships and Routing for IPv4 and IPv6
In this part, you will verify that OSPF has established neighbor relationships and routing for IPv4 and IPv6.
b. The output shows four OSPFv3 neighbors: two neighbors from IPv4 address family and two from IPv6
address family.
Close configuration window
b. From R2, ping the Loopback 0 address on D1. The ping should be successful.
R2# ping 209.165.201.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 209.165.201.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/2 ms
ã 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 9 of 16 www.netacad.com
Lab - Configure Route Redistribution Between EIGRP and OSPF
b. From R2, ping the IPv6 Loopback 0 address on D1. The ping should be successful.
R2# ping 2001:db8:209:165:201::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:DB8:209:165:201::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/3 ms
c. The output for the ping in the previous step and this step confirms that R2 has learned OSPFv3 routes for
IPv4 and IPv6, including a default route for IPv4 and IPv6. The output also confirms R2 can ping the
Loopback 0 address from both IPv4 and IPv6.
Close configuration window
Part 3: Verify EIGRP Neighborships and Routing for IPv4 and IPv6
In this part, you will verify that EIGRP has established neighbor relationships and routing for IPv4 and IPv6.
ã 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 10 of 16 www.netacad.com
Lab - Configure Route Redistribution Between EIGRP and OSPF
The output above confirms R2 has learned EIGRP routes for IPv4 and IPv6.
ã 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 11 of 16 www.netacad.com
Lab - Configure Route Redistribution Between EIGRP and OSPF
Notice the gateway of last resort has been set and D2 has learned four external EIGRP routes which
close configuration window
originated from OSPFv3. The OSPFv3 routes are imported into EIGRP as external, D EX routes with an
administrative distance of 170, which are higher than the internal EIGRP routes of 90.
Notice the three highlighted external routes. The 2001:db8:acad:12::/64 prefix was not redistributed because
close configuration window
ã 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 12 of 16 www.netacad.com
Lab - Configure Route Redistribution Between EIGRP and OSPF
ã 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 13 of 16 www.netacad.com
Lab - Configure Route Redistribution Between EIGRP and OSPF
Notice the highlighted external E2 OSPF routes. By default, external LSAs appear in the routing table marked
close configuration window
Notice the highlighted external E1 OSPF routes. These E1 routes have a cost of 22 which includes the
default cost of 20 plus the internal cost of 2.
b. From D2 ping the Loopback address on D1 using Loopback address of D2. The ping should be
Close configuration window
successful. This verifies successful two-way redistribution on R2 and end-to-end connectivity for IPv4.
Open configuration window
Step 5: Configure redistribution of EIGRP for IPv6 routes into OSPFv3 using a route map.
Next, you will redistribute EIGRP for IPv6 routes into OSPFv3 using a route map to set the external LSA to a
metric type 1, or E1.
a. First, you create a route map name E2O with a permit statement using a sequence number of 10.
Because you are not going to use the match command, the default action is to match all. Then you set
the metric type to an E1, or m, as shown.
Open configuration window
ã 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 14 of 16 www.netacad.com
Lab - Configure Route Redistribution Between EIGRP and OSPF
b. Next, you access the OSPFv3 IPv6 address family. Then you issue the redistribute command and
specify the route map name. Ensure to add the include-connected after the route map name, as shown.
R2(config)# router ospfv3 1
R2(config-router)# address-family ipv6
R2(config-router-af)# redistribute eigrp 64512 route-map E2O include-connected
R2(config-router-af)# exit
The route map E2O will match all redistributed routes, including connected interfaces advertised in
EIGRP 64512.
Close configuration window
Step 6: On D1 verify that routes from EIGRP for IPv6 are imported into OSPFv3 with the external
metric type 1.
a. Issue the show ipv6 route ospf on D1 to see the external EIGRP routes. Notice the highlighted external
E1 OSPF routes.
Open configuration window
b. From D2, ping the Loopback address on D1 using Loopback address of D2. The ping should be
close configuration window
successful. This verifies full successful two-way redistribution on R2 and end-to-end connectivity for IPv6.
Open configuration window
Reflection Questions
1. What is the difference between an external OSPF E2 and E1?
Type your answers here.
ã 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 15 of 16 www.netacad.com
Lab - Configure Route Redistribution Between EIGRP and OSPF
3. What is the default action in a route map if you do not include the match command?
Type your answers here.
Note: To find out how the router is configured, look at the interfaces to identify the type of router and how many
interfaces the router has. There is no way to effectively list all the combinations of configurations for each router
class. This table includes identifiers for the possible combinations of Ethernet and Serial interfaces in the device.
The table does not include any other type of interface, even though a specific router may contain one. An
example of this might be an ISDN BRI interface. The string in parenthesis is the legal abbreviation that can be
used in Cisco IOS commands to represent the interface.
End of document
ã 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 16 of 16 www.netacad.com