Lab - Configure Route Redistribution Between EIGRP and OSPF
Topology
Addressing Table
|
Device |
Interface |
IPv4 Address/Mask |
IPv6 Address/Prefix |
IPv6 Link Local |
|---|---|---|---|---|
|
OSPF-EIGRP-Redist-R1 |
G0/0 |
10.1.12.1/24 |
2001:db8:acad:12::1/64 |
fe80::12:1 |
|
G0/1 |
10.1.11.1/24 |
2001:db8:acad:11::1/64 |
fe80::11:1 |
|
|
Loopback0 |
10.1.1.1/24 |
2001:db8:acad:1::1/64 |
fe80::1:1 |
|
|
OSPF-EIGRP-Redist-R2 |
G0/0 |
10.1.12.2/24 |
2001:db8:acad:12::2/64 |
fe80::12:2 |
|
G0/1 |
10.1.23.2/24 |
2001:db8:acad:23::2/64 |
fe80::23:2 |
|
|
OSPF-EIGRP-Redist-R3 |
G0/0 |
10.1.23.3/24 |
2001:db8:acad:23::3/64 |
fe80::23:3 |
|
G0/1 |
10.1.32.3/24 |
2001:db8:acad:32::3/64 |
fe80::32:3 |
|
|
Loopback0 |
10.3.3.3/24 |
2001:db8:acad:3::3/64 |
fe80::3:3 |
|
|
OSPF-EIGRP-Redist-D1 |
G1/1 |
10.1.11.2/24 |
2001:db8:acad:11::2/64 |
fe80::11:2 |
|
Loopback0 |
209.165.201.1/25 |
2001:db8:209:165:201::1/80 |
fe80::209:1 |
|
|
OSPF-EIGRP-Redist-D2 |
G1/1 |
10.1.32.2/24 |
2001:db8:acad:32::2/64 |
fe80::32:2 |
|
Loopback0 |
198.51.100.1/25 |
2001:db8:198:51:100::1/80 |
fe80::198:2 |
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.
Required Resources - Sergio Jiménez's Version
For this lab I am using GNS3, where I have deployed:
- 3 Routers (Cisco IOSv)
- 2 Switches (Cisco IOSvL2)
Instructions
Part 1: Configure Basic Device Settings and Verify Connectivity and DMVPN
OSPF-EIGRP-Redist-R1
conf t
hostname OSPF-EIGRP-Redist-R1
no ip domain lookup
ipv6 unicast-routing
banner motd # OSPF-EIGRP-Redist-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 GigabitEthernet0/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 GigabitEthernet0/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 Loopback0
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
address-family ipv6 unicast
passive-interface Loopback0
exit-address-family
exit
end
wr mem
!
OSPF-EIGRP-Redist-R2
conf t
hostname OSPF-EIGRP-Redist-R2
no ip domain lookup
ipv6 unicast-routing
banner motd # OSPF-EIGRP-Redist-R2, Configure Route Redistribution Between EIGRP and OSPF #
line con 0
exec-timeout 0 0
logging synchronous
exit
!
router ospfv3 1
router-id 2.2.2.2
address-family ipv4 unicast
exit-address-family
address-family ipv6 unicast
exit-address-family
exit
!
interface GigabitEthernet0/0
ip address 10.1.12.2 255.255.255.0
ipv6 address FE80::12:2 link-local
ipv6 address 2001:DB8:ACAD:12::2/64
ospfv3 1 ipv6 area 0
ospfv3 1 ipv4 area 0
no shutdown
exit
!
interface GigabitEthernet0/1
ip address 10.1.23.2 255.255.255.0
ipv6 address FE80::23:2 link-local
ipv6 address 2001:DB8:ACAD:23::2/64
no shutdown
exit
!
router eigrp CISCO
address-family ipv4 unicast autonomous-system 64512
af-interface default
shutdown
exit-af-interface
af-interface GigabitEthernet0/1
no shutdown
exit-af-interface
topology base
exit-af-topology
network 10.1.23.0 0.0.0.255
eigrp router-id 2.2.2.2
exit-address-family
address-family ipv6 unicast autonomous-system 64512
af-interface default
shutdown
exit-af-interface
af-interface GigabitEthernet0/1
no shutdown
exit-af-interface
topology base
exit-af-topology
exit-address-family
exit
end
wr mem
!
OSPF-EIGRP-Redist-R3
conf t
hostname OSPF-EIGRP-Redist-R3
no ip domain lookup
ipv6 unicast-routing
banner motd # OSPF-EIGRP-Redist-R3, Configure Route Redistribution Between EIGRP and OSPF #
line con 0
exec-timeout 0 0
logging synchronous
exit
!
interface GigabitEthernet0/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 GigabitEthernet0/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 Loopback0
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
no shutdown
exit-af-interface
af-interface GigabitEthernet0/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
no shutdown
exit-af-interface
af-interface GigabitEthernet0/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
exit
end
wr mem
!
OSPF-EIGRP-Redist-D1
conf t
hostname OSPF-EIGRP-Redist-D1
no ip domain lookup
ip routing
ipv6 unicast-routing
banner motd # OSPF-EIGRP-Redist-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
exit
!
interface GigabitEthernet1/1
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 Loopback0
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
exit
!
ip route 0.0.0.0 0.0.0.0 Loopback0
ipv6 route ::/0 Loopback0
end
wr mem
!
OSPF-EIGRP-Redist-D2
conf t
hostname OSPF-EIGRP-Redist-D2
no ip domain lookup
ip routing
ipv6 unicast-routing
banner motd # OSPF-EIGRP-Redist-D2, Configure Route Redistribution Between EIGRP and OSPF #
line con 0
exec-timeout 0 0
logging synchronous
exit
!
interface GigabitEthernet1/1
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 Loopback0
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
exit
!
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/1
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/1
no shutdown
exit-af-interface
topology base
exit-af-topology
eigrp router-id 22.22.22.22
exit-address-family
exit
end
wr mem
!
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.
Step 1: In this part, you will verify that OSPF has established neighbor relationships and routing for IPv4 and IPv6.
Verify R1 has OSPFv3 neighbors: two neighbors from IPv4 address family and two from IPv6 address family.
The output shows four OSPFv3 neighbors: two neighbors from IPv4 address family and two from IPv6 address family.
Note: Neighbor State should be FULL/DR or FULL/BDR.
Step 2: Verify the IPv4 OSPFv3 routing table on R2.
- Verify the OSPFv3 IPv4 routing table on R2. Notice the default route, the intra-area, and inter-area OSPF routes are installed and received from 10.1.12.1, which is R1.
- From R2, ping the Loopback 0 address on D1. The ping should be successful.
Step 3: Verify IPv6 OSPFv3 routing table on R2.
- Verify the OSPFv3 IPv4 routing table on R2. Notice the default route, the intra-area, and inter-area OSPF routes are installed and received from fe80::12:1, which is R1.
- From R2, ping the IPv6 Loopback 0 address on D1. The ping should be successful.
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.
Part 3: Verify OSPFv3 AF 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.
Step 1: Verify EIGRP for IPv4 neighborships on R3.
Issue the command to verify EIGRP has two IPv4 neighbors, as shown.
Notice the two IPv4 neighbors, 10.1.23.2 and 10.1.32.2.
Step 2: Verify the EIGRP for IPv6 neighborships on R3.
Issue the command to verify EIGRP has two IPv6 neighbors, as shown.
Notice the two IPv6 neighbors, fe80::23:2 and fe80::32:2.
Step 3: Verify EIGRP for IPv4 routing table on R2.
Issue the command to display the EIGRP IPv4 routing table on R2, as shown.
Notice three internal EIGRP routes from 10.1.23.3, which is R3.
Step 4: Verify EIGRP for IPv6 routing table on R2.
Issue the command to display the IPv6 EIGRP routing table on R2, as shown.
The output above confirms R2 has learned EIGRP routes for IPv4 and IPv6.
Part 4: Configure Redistribution from OSPFv3 to EIGRP
Recall that every protocol provides a seed metric at the time of redistribution. By default, when source protocols, such as, OSPF, RIP, and IS-IS, are redistributed into EIGRP, they are given an administrative distance of 170 and a seed metric of infinity. This prevents the installation of the redistributed routes into the EIGRP topology table. The seed metric can be set using the redistribute or default-metric command. Additionally, when using a route map, the seed metric can be configured using the set metric option.
For IPv4, you will set the seed metric using the redistribute command and the default-metric command.
Step 1: Redistribute OSPFv3 into EIGRP for IPv4.
In this step were going to the destination EIGRP AS 64512 to perform redistribution. Since EIGRP is using named mode the redistribute command is entered in the address family topology configuration mode, as shown.
Step 2: On D2, verify redistribution of OSPFv3.
Issue the show ip route eigrp on D2 to see the external EIGRP routes from OSPFv3.
Notice the gateway of last resort is now set and D2 has learned four external EIGRP routes which 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.
Step 3: Redistribute OSPFv3 into EIGRP for IPv6.
Again, go to the destination protocol to perform redistribution. In this example you will set the seed metric using the default-metric command. Both commands are configured in the IPv6 address-family topology base, as shown.
Note: Do not leave AF topology configuration mode.
In the example above, the seed metric was set using the default-metric command.
Notice the include-connected option was not configured using the redistribute ospf 1 command. The include-connected command must be set for OSPFv3 IPv6 connected interface on R2, in our example, 2001:db8:acad:12::/64 to be redistributed into EIGRP. With IPv4, connected interfaces are automatically advertised into the routing protocol for connected interfaces the source protocol is advertising. For IPv6, the administrator decides whether the connected subnets are included into redistribution.
Also notice under the EIGRP IPv6 address family, it is not possible to specify OSPFv3 as the source protocol for redistribution. Instead the ospf keyword automatically assumes OSPFv3 since the command is entered under the IPv6 address family.
Step 4: On D2 Verify OSPFv3 redistribution for IPv6.
Issue the command to view the IPv6 routing table for EIGRP.
Notice the three highlighted external routes. The 2001:db8:acad:12::/64 prefix was not redistributed because of the missing include-connected keyword.
Step 5: Redistribute OSPFv3 connected routes into EIGRP for IPv6.
- From the EIGRP IPv6 address family topology configuration mode configure redistribution with the same command as the previous step, but this time add include-connected as shown.
- On D2, verify the IPv6 prefixes are being redistributed as before, as well as the connected prefix, which is included and highlighted in the routing table.
Part 5: Configure Redistribution from EIGRP for IPv4 into OSPFv3
In this part, you will perform EIGRP for IPv4 redistribution into OSPFv3.
Note: When redistributing into OSPFv2, you must include the subnets keyword, which is required for classless networks to be advertised. If omitted only classful networks using a classful mask will be redistributed.
Step 1: On R2, redistribute EIGRP into OSPFv3.
The redistribute command is always performed on the destination protocol. Start by accessing the OSPFv3 address family for IPv4. Then redistribute the source protocol, EIGRP 64512 into the destination protocol, as shown.
Note: Do not leave AF configuration mode.
Step 2: Verify redistribution on D1.
Issue the show ip route ospfv3 on D1 to see the external OSPF routes from EIGRP.
Notice the highlighted external E2 OSPF routes. By default, external LSAs appear in the routing table marked as E2 with an external cost of 20.
Step 3: Redistribute EIGRP into OSPFv3 using a Type 1.
From the address family configuration mode, modify the redistribute command configured in Step 1 to specify an external type 1.
Step 4: Verify redistribution again on D1.
- Issue the show ip route ospfv3 on D1 to see the external OSPF routes.
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. - From D2 ping the Loopback address on D1 using Loopback address of D2. The ping should be successful. This verifies successful two-way redistribution on R2 and end-to-end connectivity for IPv4.
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.
- 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.
- 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.
The route map E2O will match all redistributed routes, including connected interfaces advertised in EIGRP 64512.
Step 6: On D1 verify that routes from EIGRP for IPv6 are imported into OSPFv3 with the external metric type 1.
- Issue the show ipv6 route ospf on D1 to see the external EIGRP routes. Notice the highlighted external E1 OSPF routes.
- From D2, ping the Loopback address on D1 using Loopback address of D2. The ping should be successful. This verifies full successful two-way redistribution on R2 and end-to-end connectivity for IPv6.
Reflection Questions
- What is the difference between an external OSPF E2 and E1?
- What are three ways to set a seed metric during redistribution?
- What is the default action in a route map if you do not include the match command?
