16.1.3 Lab - Configure Route Redistribution Within The Same Interior Gateway Protocol
16.1.3 Lab - Configure Route Redistribution Within The Same Interior Gateway Protocol
Topology
Addressing Table
Device Interface IP Address Subnet Mask
R1
G0/0/1 10.1.11.1 255.255.255.0
R1
Loopback 0 10.1.1.1 255.255.255.0
R2 G0/0/0 10.1.12.2 255.255.255.0
R2
G0/0/1 10.1.23.2 255.255.255.0
R3 G0/0/0 10.1.23.3 255.255.255.0
R3
G0/0/1 10.1.32.1 255.255.255.0
R3
Loopback 0 10.3.3.3 255.255.255.0
D1 G1/0/11 10.1.11.2 255.255.255.0
D1
Loopback 0 198.51.100.1 255.255.255.128
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 12 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
D2
Loopback 0 209.165.201.1 255.255.255.128
Objectives
Part 1: Build the Network and Configure Basic Device Settings
Part 2: Configure and Verify Two-Way Redistribution on R1
Part 3: Configure and Verify Two-Way Redistribution on R3
Part 4: Filter and Verify Redistribution using a Distribute List and Prefix List
Background / Scenario
Redistribution always includes two routing protocols: a source protocol and a destination protocol. The source
protocol provides the network prefixes that are to be redistributed. The destination protocol receives the
source protocol network prefixes. The redistribution configuration exists under the destination protocol.
Examples of source protocols are static, connected, RIP, EIGRP, OSPF, IS-IS, and BGP.
Routes can be redistributed between different routing protocols or between different processes of the same
routing protocol.
In this lab, you will configure mutual or two-way redistribution between multiple EIGRP processes. R1 is
running classic mode EIGRP for AS 64512 and EIGRP named mode for AS 64513. R3 is running EIGRP
named mode for AS 64513 and classic mode EIGRP for AS 64514.
Note: This lab is an exercise in configuring and verifying two-way route redistribution on routers R1 and R3.
Route redistribution in this lab does not reflect networking best practices.
Note: The routers used with CCNP hands-on labs are Cisco 4221s with Cisco IOS XE Release 16.9.4
(universalk9 image). The switches used in the labs are Cisco Catalyst 3650s 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 12 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
Router R1
hostname R1
no ip domain lookup
banner motd # R1, Configure Route Redistribution Within the Same Interior
Gateway Protocol #
line con 0
exec-timeout 0 0
logging synchronous
exit
interface g0/0/0
ip address 10.1.12.1 255.255.255.0
no shutdown
exit
interface g0/0/1
ip address 10.1.11.1 255.255.255.0
no shutdown
exit
interface loopback 0
ip address 10.1.1.1 255.255.255.0
no shutdown
exit
router eigrp 64512
eigrp router-id 1.1.1.1
network 10.1.11.0 0.0.0.255
exit
router eigrp CISCO
address-family ipv4 unicast autonomous-system 64513
eigrp router-id 1.1.1.1
network 10.1.1.0 0.0.0.255
network 10.1.12.0 0.0.0.255
exit
end
Router R2
hostname R2
no ip domain lookup
banner motd # R2, Configure Route Redistribution Within the Same Interior
Gateway Protocol #
line con 0
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 12 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
exec-timeout 0 0
logging synchronous
exit
interface g0/0/0
ip address 10.1.12.2 255.255.255.0
no shutdown
exit
interface g0/0/1
ip address 10.1.23.2 255.255.255.0
no shutdown
exit
router eigrp CISCO
address-family ipv4 unicast autonomous-system 64513
eigrp router-id 2.2.2.2
network 10.1.12.0 0.0.0.255
network 10.1.23.0 0.0.0.255
end
Router R3
hostname R3
no ip domain lookup
banner motd # R3, Configure Route Redistribution Within the Same Interior
Gateway Protocol #
line con 0
exec-timeout 0 0
logging synchronous
exit
interface g0/0/0
ip address 10.1.23.1 255.255.255.0
no shutdown
exit
interface g0/0/1
ip address 10.1.32.1 255.255.255.0
no shutdown
exit
interface loopback 0
ip address 10.3.3.1 255.255.255.0
no shutdown
exit
router eigrp 64514
eigrp router-id 3.3.3.3
network 10.1.32.0 0.0.0.255
exit
router eigrp CISCO
address-family ipv4 unicast autonomous-system 64513
eigrp router-id 3.3.3.3
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 12 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 12 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
no switchport
ip address 10.1.32.2 255.255.255.0
no shutdown
exit
interface loopback 0
ip address 209.165.201.1 255.255.255.128
no shutdown
exit
router eigrp 64514
eigrp router-id 22.22.22.22
network 10.1.32.0 0.0.0.255
redistribute static
eigrp stub static
exit
ip route 0.0.0.0 0.0.0.0 Loopback0
end
b. Set the clock on all devices to UTC time.
c. Save the running configuration to startup-config on all devices.
Close configuration window
b. Next, verify that R1 has learned internal routes form each EIGRP neighbor. Issue the show ip route
eigrp command for AS 64512, as shown. Notice the gateway of last resort is not set and the internal
EIGRP route is from D1 Loopback 0.
R1# show ip route eigrp 64512 | begin Gateway
Gateway of last resort is not set
198.51.100.0/25 is subnetted, 1 subnets
D 198.51.100.0
[90/130816] via 10.1.11.2, 04:24:45, GigabitEthernet0/0/1
Close configuration window
c. Issue the show ip route eigrp command for EIGRP named mode, as shown. Notice the gateway of last
Open configuration window
resort is not set and the internal EIGRP routes are from R1 and R3.
R2# show ip route eigrp 64513 | begin Gateway
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
D 10.1.1.0/24 [90/10880] via 10.1.12.1, 00:10:57, GigabitEthernet0/0/0
D 10.3.3.0/24 [90/10880] via 10.1.23.1, 00:00:21, GigabitEthernet0/0/1
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 12 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
d. Verify that R3 has two EIGRP neighbor relationships. First, issue the show ip eigrp neighbors detail
command. Notice that neighbor 10.1.32.2 is an EIGRP stub neighbor advertising static routes. Notice that
R3 is using EIGRP named mode for neighbor 10.1.23.2.
Open configuration window
e. Issue the show ip route eigrp command for EIGRP named mode, as shown. Notice that the two internal
EIGRP routes are from AS 64513.
R3# show ip route eigrp 64513 | begin Gateway
Gateway of last resort is 10.1.32.2 to network 0.0.0.0
f. Issue the show ip route eigrp command for AS 64514, as shown. Notice that R3 has learned a default
from the EIGRP stub neighbor.
R3# show ip route eigrp 64514 | begin Gateway
Gateway of last resort is 10.1.32.2 to network 0.0.0.0
g. From R3, ping the Loopback 0 interface on D2. The ping should be successful.
R3# 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
h. From R3, ping the Loopback 0 interface on D2 and source the ping from Loopback 0, as shown. The ping
should not be successful.
R3# ping 209.165.201.1 source 10.3.3.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 209.165.201.1, timeout is 2 seconds:
Packet sent with a source address of 10.3.3.1
.....
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 12 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 8 of 12 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 9 of 12 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
b. Next, from D1 ping the 209.165.201.1 address on D2 using the Loopback 0 address on D1. The ping
should be successful. This verifies full end-to-end connectivity and successful two-way redistribution on
R1 and R3.
D1# ping 209.165.201.1 source 198.51.100.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 209.165.201.1, timeout is 2 seconds:
Packet sent with a source address of 198.51.100.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 2/2/4 ms
Close configuration window
Part 4: Filter and Verify Redistribution using a Distribute List and Prefix List
In this part of the lab, we will filter specific EIGRP prefixes being redistributed into AS 64512 on R1 and
advertised to D1. Note that the redistribute command cannot directly reference a prefix list, but a route map
can refer to a prefix list using the match command. In our example, we will bind the prefix list using a
distribute list.
Step 1: Create a prefix list named FILTER and specify the action for each statement.
Only allow the default route, as well as the Loopback 0 address on R1 and R3, to be sent to D1 using the
prefix list name FILTER, as shown on R1. Notice the permit statement allows prefixes to be advertised. The
last statement, sequence 20 filters all other prefixes. If not explicitly set, the deny statement is implied. This is
similar to using an ACL.
Open configuration window
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 10 of 12 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
Step 2: Apply the IP Prefix List using the Distribute List command in EIGRP 64512.
Next, apply the prefix-list FILTER to the distribute-list which filters routing advertisements to D1. The out
keyword in the distribute-list command specifies that subnets matching prefix list FILTER will be filtered as
the routing updates exit the GigabitEthernet0/0/1 interface toward D1. Using the keyword in would filter routes
entering the routing table.
R1(config)# router eigrp 64512
R1(config-router)# distribute-list prefix FILTER out GigabitEthernet0/0/1
R1(config-router)# end
b. Issue the show ip route eigrp command on D1 to see the external EIGRP routes. Notice the smaller
routing table on D1.
Open configuration window
c. From D1 ping the 209.165.201.1 address on D2 using the Loopback 0 address on D1. The ping should be
successful. This verifies full end-to-end connectivity and successful redistribution on R1 and R3, as well
as route filtering on R1.
D1# ping 209.165.201.1 source 198.51.100.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 209.165.201.1, timeout is 2 seconds:
Packet sent with a source address of 198.51.100.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 2/2/3 ms
close configuration window
Reflection Questions
1. Why is a seed metric not required when redistributing EIGRP into another EIGRP process?
Type your answers here.
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 11 of 12 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
2. What other source protocol(s), other than EIGRP does not require a seed metric defined for redistribution into
EIGRP?
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 12 of 12 www.netacad.com