16.1.3 Lab - Configure Route Redistribution Within The Same Interior Gateway Protocol - ILM
16.1.3 Lab - Configure Route Redistribution Within The Same Interior Gateway Protocol - ILM
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
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 26 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
D1
Loopback 0 198.51.100.1 255.255.255.128
D2 G1/0/11 10.1.32.2 255.255.255.0
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.
Instructor Note: Refer to the Instructor Lab Manual for the procedures to initialize and reload devices.
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)
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 26 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
Instructions
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
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 26 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
Router R2
hostname R2
no ip domain lookup
banner motd # R2, 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.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
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 26 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 26 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
logging synchronous
exit
interface range g1/0/1-24
shutdown
exit
interface g1/0/11
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
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 26 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
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
Close configuration window
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
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 26 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
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
.....
Success rate is 0 percent (0/5)
Close configuration window
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 8 of 26 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 26 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.
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 10 of 26 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
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
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
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 11 of 26 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
!!!!!
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.
The seed metrics do not need to be set because the metric values are maintained when redistributing
EIGRP into another EIGRP process.
2. What other source protocol(s), other than EIGRP does not require a seed metric defined for redistribution into
EIGRP?
Type your answers here.
The 10.1.12.0/24, 10.1.23.0/24 and 10.1.32.0/24 prefixes were filtered on R1 using a prefix-list applied to
a distribute-list.
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 26 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
Router R1
R1# show running-config
Building configuration...
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 13 of 26 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
!
interface Serial0/1/1
no ip address
!
router eigrp 64512
distribute-list prefix FILTER out GigabitEthernet0/0/1
network 10.1.11.0 0.0.0.255
redistribute eigrp 64513
eigrp router-id 1.1.1.1
!
router eigrp CISCO
!
address-family ipv4 unicast autonomous-system 64513
!
topology base
redistribute eigrp 64512
exit-af-topology
network 10.1.1.0 0.0.0.255
network 10.1.12.0 0.0.0.255
eigrp router-id 1.1.1.1
exit-address-family
!
ip forward-protocol nd
no ip http server
ip http secure-server
!
ip prefix-list FILTER seq 5 permit 0.0.0.0/0
ip prefix-list FILTER seq 10 permit 10.1.1.0/24
ip prefix-list FILTER seq 15 permit 10.3.3.0/24
ip prefix-list FILTER seq 20 deny 0.0.0.0/0 le 32
!
control-plane
!
banner motd ^C R1, Configure Route Redistribution Within the Same Interior Gateway
Protocol ^C
!
line con 0
exec-timeout 0 0
logging synchronous
transport input none
stopbits 1
line aux 0
stopbits 1
line vty 0 4
login
!
end
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 14 of 26 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
Router R2
R2# show run
Building configuration...
boot-start-marker
boot-end-marker
!
no aaa new-model
!
no ip domain lookup
!
login on-success log
!
subscriber templating
!
multilink bundle-name authenticated
!
spanning-tree extend system-id
!
redundancy
mode none
!
interface GigabitEthernet0/0/0
ip address 10.1.12.2 255.255.255.0
negotiation auto
!
interface GigabitEthernet0/0/1
ip address 10.1.23.2 255.255.255.0
negotiation auto
!
router eigrp CISCO
!
address-family ipv4 unicast autonomous-system 64513
!
topology base
exit-af-topology
network 10.1.12.0 0.0.0.255
network 10.1.23.0 0.0.0.255
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 15 of 26 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
Router R3
R3# show running-config
Building configuration...
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 16 of 26 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
!
multilink bundle-name authenticated
!
spanning-tree extend system-id
!
redundancy
mode none
!
interface Loopback0
ip address 10.3.3.1 255.255.255.0
!
interface GigabitEthernet0/0/0
ip address 10.1.23.3 255.255.255.0
negotiation auto
!
interface GigabitEthernet0/0/1
ip address 10.1.32.1 255.255.255.0
negotiation auto
!
interface Serial0/1/0
no ip address
!
interface Serial0/1/1
no ip address
!
router eigrp 64514
network 10.1.32.0 0.0.0.255
redistribute eigrp 64513
eigrp router-id 3.3.3.3
!
router eigrp CISCO
!
address-family ipv4 unicast autonomous-system 64513
!
topology base
redistribute eigrp 64514
exit-af-topology
network 10.1.23.0 0.0.0.255
network 10.3.3.0 0.0.0.255
eigrp router-id 3.3.3.3
exit-address-family
!
ip forward-protocol nd
no ip http server
ip http secure-server
!
control-plane
!
banner motd ^C R3, Configure Route Redistribution Within the Same Interior Gateway
Protocol ^C
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 17 of 26 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
!
line con 0
exec-timeout 0 0
logging synchronous
transport input none
stopbits 1
line aux 0
stopbits 1
line vty 0 4
login
!
end
Switch D1
D1# show running-config
Building configuration...
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 18 of 26 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 19 of 26 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
no ip address
speed 1000
negotiation auto
!
interface GigabitEthernet1/0/1
shutdown
!
interface GigabitEthernet1/0/2
shutdown
!
interface GigabitEthernet1/0/3
shutdown
!
interface GigabitEthernet1/0/4
shutdown
!
interface GigabitEthernet1/0/5
shutdown
!
interface GigabitEthernet1/0/6
shutdown
!
interface GigabitEthernet1/0/7
shutdown
!
interface GigabitEthernet1/0/8
shutdown
!
interface GigabitEthernet1/0/9
shutdown
!
interface GigabitEthernet1/0/10
shutdown
!
interface GigabitEthernet1/0/11
no switchport
ip address 10.1.11.2 255.255.255.0
!
interface GigabitEthernet1/0/12
shutdown
!
interface GigabitEthernet1/0/13
shutdown
!
interface GigabitEthernet1/0/14
shutdown
!
interface GigabitEthernet1/0/15
shutdown
!
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 20 of 26 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
interface GigabitEthernet1/0/16
shutdown
!
interface GigabitEthernet1/0/17
shutdown
!
interface GigabitEthernet1/0/18
shutdown
!
interface GigabitEthernet1/0/19
shutdown
!
interface GigabitEthernet1/0/20
shutdown
!
interface GigabitEthernet1/0/21
shutdown
!
interface GigabitEthernet1/0/22
shutdown
!
interface GigabitEthernet1/0/23
shutdown
!
interface GigabitEthernet1/0/24
shutdown
!
interface GigabitEthernet1/1/1
!
interface GigabitEthernet1/1/2
!
interface GigabitEthernet1/1/3
!
interface GigabitEthernet1/1/4
!
interface Vlan1
no ip address
!
router eigrp 64512
network 10.1.11.0 0.0.0.255
network 198.51.100.0
eigrp router-id 11.11.11.11
!
ip forward-protocol nd
ip http server
ip http secure-server
!
control-plane
service-policy input system-cpp-policy
!
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 21 of 26 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
banner motd ^C D1, Configure Route Redistribution Within the Same Interior Gateway
Protocol ^C
!
line con 0
logging synchronous
transport output none
stopbits 1
line aux 0
stopbits 1
line vty 0 4
login
line vty 5 15
login
!
end
Switch D2
D2# show running-config
Building configuration...
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 22 of 26 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 23 of 26 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
!
interface GigabitEthernet0/0
vrf forwarding Mgmt-vrf
no ip address
speed 1000
negotiation auto
!
interface GigabitEthernet1/0/1
shutdown
!
interface GigabitEthernet1/0/2
shutdown
!
interface GigabitEthernet1/0/3
shutdown
!
interface GigabitEthernet1/0/4
shutdown
!
interface GigabitEthernet1/0/5
shutdown
!
interface GigabitEthernet1/0/6
shutdown
!
interface GigabitEthernet1/0/7
shutdown
!
interface GigabitEthernet1/0/8
shutdown
!
interface GigabitEthernet1/0/9
shutdown
!
interface GigabitEthernet1/0/10
shutdown
!
interface GigabitEthernet1/0/11
no switchport
ip address 10.1.32.2 255.255.255.0
!
interface GigabitEthernet1/0/12
shutdown
!
interface GigabitEthernet1/0/13
shutdown
!
interface GigabitEthernet1/0/14
shutdown
!
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 24 of 26 www.netacad.com
Lab - Configure Route Redistribution Within the Same Interior Gateway Protocol
interface GigabitEthernet1/0/15
shutdown
!
interface GigabitEthernet1/0/16
shutdown
!
interface GigabitEthernet1/0/17
shutdown
!
interface GigabitEthernet1/0/18
shutdown
!
interface GigabitEthernet1/0/19
shutdown
!
interface GigabitEthernet1/0/20
shutdown
!
interface GigabitEthernet1/0/21
shutdown
!
interface GigabitEthernet1/0/22
shutdown
!
interface GigabitEthernet1/0/23
shutdown
!
interface GigabitEthernet1/0/24
shutdown
!
interface GigabitEthernet1/1/1
!
interface GigabitEthernet1/1/2
!
interface GigabitEthernet1/1/3
!
interface GigabitEthernet1/1/4
!
interface Vlan1
no ip address
!
router eigrp 64514
network 10.1.32.0 0.0.0.255
redistribute static
eigrp router-id 22.22.22.22
eigrp stub static
!
ip forward-protocol nd
ip http server
ip http secure-server
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 25 of 26 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 26 of 26 www.netacad.com