6.1.2 Lab - Investigate Static Routes - ITExamAnswers
6.1.2 Lab - Investigate Static Routes - ITExamAnswers
Instructor Note: Red font color or gray highlights indicate text that appears in the instructor copy only.
Addressing Table
Device Interface IPv4 Address IPv6 Address IPv6 Link-Local
R1
S0/1/0 10.1.3.1/25 2001:db8:acad:1013::1/64 fe80::1:2
R1
S0/1/1 10.1.3.129/25 2001:db8:acad:1014::1/64 fe80::1:3
R1
Loopback0 192.168.1.1/27 2001:db8:acad:1000::1/64 fe80::1:4
R2 G0/0/0 10.1.2.2/24 2001:db8:acad:1012::2/64 fe80::2:1
R2
G0/0/1 10.2.3.2/24 2001:db8:acad:1023::2/64 fe80::2:2
R2
Loopback0 192.168.2.1/27 2001:db8:acad:2000::1/64 fe80::2:3
R3 G0/0/0 10.2.3.3/24 2001:db8:acad:1023::3/64 fe80::3:1
R3
S0/1/0 10.1.3.3/25 2001:db8:acad:1013::3/64 fe80::3:2
R3
S0/1/1 10.1.3.130/25 2001:db8:acad:1014::3/64 fe80::3:3
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 22 www.netacad.com
Lab - Investigate Static Routes
R3
Loopback0 192.168.3.1/27 2001:db8:acad:3000::1/64 fe80::3:4
Objectives
Part 1: Build the Network and Configure Basic Device Settings and Interface Addressing
Part 2: Configure and Investigate IPv4 Static Routes
Part 3: Configure and Investigate IPv6 Static Routes
Part 4: Complete Static Routing Challenge
Background / Scenario
There are several different types of static routes available for you to use. You should fully understand the
implications of each type of static route on the routing table and the overall routing scheme in the network. In
this lab, you will configure several different types of static routes for both IPv4 and IPv6 and examine the
impact of the static route on the routing table and traffic flow in the network.
Note: This lab is an exercise in developing, deploying, and verifying various types of static routes, and 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). Other routers 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 the routers 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)
1 PC (Windows with terminal emulation program, such as Tera Term)
Console cables to configure the Cisco IOS devices via the console ports
Ethernet and serial cables as shown in the topology
Instructions
Part 1: Build the Network and Configure Basic Device Settings and Interface
Addressing
In Part 1, you will set up the network topology and configure basic settings and interface addressing on
routers.
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 22 www.netacad.com
Lab - Investigate Static Routes
hostname R1
no ip domain lookup
ipv6 unicast-routing
banner motd # R1, Investigate Static Routes #
line con 0
exec-timeout 0 0
logging synchronous
exit
line vty 0 4
privilege level 15
password cisco123
exec-timeout 0 0
logging synchronous
login
exit
interface g0/0/0
ip address 10.1.2.1 255.255.255.0
ipv6 address fe80::1:1 link-local
ipv6 address 2001:db8:acad:1012::1/64
no shutdown
exit
interface s0/1/0
ip address 10.1.3.1 255.255.255.128
ipv6 address fe80::1:2 link-local
ipv6 address 2001:db8:acad:1013::1/64
no shutdown
exit
interface s0/1/1
ip address 10.1.3.129 255.255.255.128
ipv6 address fe80::1:3 link-local
ipv6 address 2001:db8:acad:1014::1/64
no shutdown
exit
interface loopback 0
ip address 192.168.1.1 255.255.255.224
ipv6 address fe80::1:4 link-local
ipv6 address 2001:db8:acad:1000::1/64
no shutdown
exit
end
Router R2
hostname R2
no ip domain lookup
ipv6 unicast-routing
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 22 www.netacad.com
Lab - Investigate Static Routes
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 22 www.netacad.com
Lab - Investigate Static Routes
login
exit
interface g0/0/0
ip address 10.2.3.3 255.255.255.0
ipv6 address fe80::3:1 link-local
ipv6 address 2001:db8:acad:1023::3/64
no shutdown
exit
interface s0/1/0
ip address 10.1.3.3 255.255.255.128
ipv6 address fe80::3:2 link-local
ipv6 address 2001:db8:acad:1013::3/64
no shutdown
exit
interface s0/1/1
ip address 10.1.3.130 255.255.255.128
ipv6 address fe80::3:3 link-local
ipv6 address 2001:db8:acad:1014::3/64
no shutdown
exit
interface loopback 0
ip address 192.168.3.1 255.255.255.224
ipv6 address fe80::3:4 link-local
ipv6 address 2001:db8:acad:3000::1/64
no shutdown
exit
end
b. Set the clock on each router to UTC time.
c. Save the running configuration to startup-config.
Close configuration window
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 22 www.netacad.com
Lab - Investigate Static Routes
b. Issue the command show ip route static | begin Gateway and examine the output. As long as interface
GigabitEthernet0/0/0 is up and operational, this entry will be present in the routing table. Note that the
output does not give you indication of the Administrative Distance or Metric for this route.
R1# show ip route static | begin Gateway
Gateway of last resort is not set
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 22 www.netacad.com
Lab - Investigate Static Routes
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 22 www.netacad.com
Lab - Investigate Static Routes
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 8 of 22 www.netacad.com
Lab - Investigate Static Routes
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 9 of 22 www.netacad.com
Lab - Investigate Static Routes
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 10 of 22 www.netacad.com
Lab - Investigate Static Routes
for. This allows you to basically drop traffic destined for specific prefixes. The null route can also insert
summary routes into your routing table so that dynamic routing protocols can advertise them, while your
router routes are based on more specific prefixes within that summary.
For this lab, you will install a null static route just so that you can see it in the routing table and what
information the router can show you about it.
a. On R1, configure a null static route for the 209.165.200.0/24 network.
R1# config t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)# ip route 209.165.200.0 255.255.255.0 null 0
R1(config)# end
b. Examine the routing table using the show ip route static | begin Gateway command. Notice that the
entry is not really different than any other directly connected static entry, except the next hop is null0.
R1# show ip route static | begin Gateway
Gateway of last resort is not set
R3# config t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)# ipv6 route 2001:db8:acad:1012::/64 2001:db8:acad:1023::2
R3(config)# end
b. Issue the show ipv6 route static command and examine the static route in the routing table.
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 11 of 22 www.netacad.com
Lab - Investigate Static Routes
S 2001:DB8:ACAD:1012::/64 [1/0]
via 2001:DB8:ACAD:1023::2
c. Examine the route details with the command show ipv6 route 2001:db8:acad:1012::/64.
R3# show ipv6 route 2001:db8:acad:1012::/64
Routing entry for 2001:DB8:ACAD:1012::/64
Known via "static", distance 1, metric 0
Route count is 1/1, share count 0
Routing paths:
2001:DB8:ACAD:1023::2
Last updated 00:02:28 ago
d. Examine CEF details with the command show ipv6 cef 2001:db8:acad:1012::/64 detail.
R3# show ipv6 cef 2001:db8:acad:1012::/64 detail
2001:DB8:ACAD:1012::/64, epoch 0
recursive via 2001:DB8:ACAD:1023::2
attached to GigabitEthernet0/0/0
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 12 of 22 www.netacad.com
Lab - Investigate Static Routes
d. Examine the route with show ipv6 route 2001:db8:acad:1012::/64 command. The next hop address of
fe80::2:2 is confirmed in that output.
R3# show ipv6 route 2001:db8:acad:1012::64
Routing entry for 2001:DB8:ACAD:1012::/64
Known via "static", distance 1, metric 0
Route count is 1/1, share count 0
Routing paths:
FE80::2:2, GigabitEthernet0/0/0
Last updated 00:03:45 ago
c. Show the IPv6 routing table and confirm that the first route, exiting s0/1/0, is installed in the routing table.
R3# show ipv6 route static
IPv6 Routing Table - default - 12 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
<output omitted>
S 2001:DB8:ACAD:1000::/64 [1/0]
via 2001:DB8:ACAD:1013::1, Serial0/1/0
S 2001:DB8:ACAD:1012::/64 [1/0]
via FE80::2:2, GigabitEthernet0/0/0
d. Shutdown interface s0/1/0 and then verify that the second route, via s0/1/1, is installed in the routing
table.
R3# config t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)# interface s0/1/0
R3(config-if)# shutdown
R3(config-if)# end
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 13 of 22 www.netacad.com
Lab - Investigate Static Routes
e. Issue the no shutdown command on R3 s0/1/0 and confirm that the first route is restored in the routing
table.
R3# config t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)# interface s0/1/0
R3(config-if)# no shutdown
R3(config-if)# end
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 14 of 22 www.netacad.com
Lab - Investigate Static Routes
For this part of the lab, your challenge is to configure R1, R2, and R3 with static routes that provide full
reachability in the network. You will be successful when you can ping any interface in the network using the
ping command while specifying a source interface of Loopback0.
From R1, ping Loopback 0 on R2 with the command ping 192.168.2.1 source loopback0
blank
blank
From R1, the command traceroute 192.168.3.1 source loopback0 should succeed and show the
next hop address as 10.1.3.3
blank
On R1, shutdown interface s0/1/0. The command traceroute 192.168.3.1 source loopback0 should
succeed and show the next hop address as 10.1.3.130.
(When complete, issue no shutdown on R1 s0/1/0.)
blank
From R2, ping Loopback 0 on R1 with the command ping 192.168.1.1 source loopback0
blank
From R2, ping Loopback 0 on R3 with the command ping 192.168.3.1 source loopback0
blank
From R3, the command traceroute 192.168.1.1 source loopback0 should succeed and show the
next hop address as 10.1.3.1
blank
On R3, shutdown interface s0/1/0. The command traceroute 192.168.1.1 source loopback0 should
succeed and show the next hop address as 10.1.3.129
blank
On R3, ping Loopback0 on R2 with the command ping 192.168.2.1 source loopback0
blank
On R1, ping Loopback0 on R2 with the command ping 2001:db8:acad:2000::1 source loopback0
blank
On R1, the command traceroute 2001:db8:acad:3000::1 source loopback0 should succeed and
show the next hop address as 2001:db8:acad:1013::1
blank
On R1, shutdown interface s0/1/0 and issue the command traceroute 2001:db8:acad:3000::1
source loopback0. The traceroute should succeed and show the next hop address as
2001:db8:acad:1014::1 (When complete, issue the no shutdown command on s0/1/0.)
blank
On R2, ping Loopback 0 on R1 with the command ping 2001:db8:acad:1000::1 source loopback0
blank
On R2, ping Loopback 0 on R3 with the command ping 2001:db8:acad:3000::1 source loopback0
blank
On R3, the command traceroute 2001:db8:acad:1000::1 source loopback0 should succeed and
show the next hop address as 2001:db8:acad:1013::1
blank
On R3, shutdown s0/1/0 and issue the command traceroute 2001:db8:acad:1000::1 source
loopback0. The traceroute should succeed and show the next hop as 2001:db8:acad:1014::1 (When
complete, issue the no shutdown command on s0/1/0)
blank
On R3, ping Loopback 0 on R2 with the command ping 2001:db8:acad:2000::1 source loopback0
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 15 of 22 www.netacad.com
Lab - Investigate Static Routes
Router R1:
R2:
R3:
ip route 192.168.1.0 255.255.255.0 s0/1/0 10.1.3.1
ip route 192.168.1.0 255.255.255.0 s0/1/1 10.1.3.129
ip route 192.168.2.0 255.255.255.0 g0/0/0 10.2.3.2
ipv6 route 2001:db8:acad:1000::/64 s0/1/0 2001:db8:acad:1013::1
ipv6 route 2001:db8:acad:1000::/64 s0/1/1 2001:db8:acad:1014::1ipv6 route
2001:db8:acad:2000::/64 g0/0/0 2001:db8:acad:1023::2
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 22 www.netacad.com
Lab - Investigate Static Routes
Router R1
R1# show run
Building configuration...
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 17 of 22 www.netacad.com
Lab - Investigate Static Routes
interface GigabitEthernet0/0/1
no ip address
negotiation auto
!
interface Serial0/1/0
ip address 10.1.3.1 255.255.255.128
ipv6 address FE80::1:2 link-local
ipv6 address 2001:DB8:ACAD:1013::1/64
!
interface Serial0/1/1
ip address 10.1.3.129 255.255.255.128
ipv6 address FE80::1:3 link-local
ipv6 address 2001:DB8:ACAD:1014::1/64
!
ip forward-protocol nd
no ip http server
ip http secure-server
ip route 10.2.3.0 255.255.255.0 GigabitEthernet0/0/0 10.1.2.2
ip route 192.168.2.0 255.255.255.224 GigabitEthernet0/0/0
ip route 192.168.3.0 255.255.255.224 Serial0/1/0 10.1.3.3
ip route 192.168.3.0 255.255.255.224 Serial0/1/1 10.1.3.130 7
ip route 209.165.200.0 255.255.255.0 Null0
!
ipv6 route 2001:DB8:ACAD:2000::/64 GigabitEthernet0/0/0 2001:DB8:ACAD:1012::2
ipv6 route 2001:DB8:ACAD:3000::/64 Serial0/1/1 2001:DB8:ACAD:1014::3
ipv6 route 2001:DB8:ACAD:3000::/64 Serial0/1/0 2001:DB8:ACAD:1013::3
!
control-plane
!
banner motd ^C R1, Investigate Static Routes ^C
!
line con 0
exec-timeout 0 0
logging synchronous
transport input none
stopbits 1
line aux 0
stopbits 1
line vty 0 4
exec-timeout 0 0
privilege level 15
password cisco123
logging synchronous
login
!
end
Router R2
R2# show run
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 18 of 22 www.netacad.com
Lab - Investigate Static Routes
Building configuration...
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 19 of 22 www.netacad.com
Lab - Investigate Static Routes
no ip http server
ip http secure-server
ip route 192.168.1.0 255.255.255.0 GigabitEthernet0/0/0 10.1.2.1
ip route 192.168.3.0 255.255.255.0 GigabitEthernet0/0/1 10.2.3.3
!
ipv6 route 2001:DB8:ACAD:1000::/64 GigabitEthernet0/0/0 2001:DB8:ACAD:1012::1
ipv6 route 2001:DB8:ACAD:3000::/64 GigabitEthernet0/0/1 2001:DB8:ACAD:1023::3
!
control-plane
!
banner motd ^C R2, Investigate Static Routes ^C
!
line con 0
exec-timeout 0 0
logging synchronous
transport input none
stopbits 1
line aux 0
stopbits 1
line vty 0 4
exec-timeout 0 0
privilege level 15
password cisco123
logging synchronous
login
!
end
Router R3
R3# show run
Building configuration...
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 20 of 22 www.netacad.com
Lab - Investigate Static Routes
!
login on-success log
!
subscriber templating
!
ipv6 unicast-routing
multilink bundle-name authenticated
!
spanning-tree extend system-id
!
redundancy
mode none
!
interface Loopback0
ip address 192.168.3.1 255.255.255.224
ipv6 address FE80::3:4 link-local
ipv6 address 2001:DB8:ACAD:3000::1/64
!
interface GigabitEthernet0/0/0
ip address 10.2.3.3 255.255.255.0
negotiation auto
ipv6 address FE80::3:1 link-local
ipv6 address 2001:DB8:ACAD:1023::3/64
!
interface GigabitEthernet0/0/1
no ip address
negotiation auto
!
interface Serial0/1/0
ip address 10.1.3.3 255.255.255.128
ipv6 address FE80::3:2 link-local
ipv6 address 2001:DB8:ACAD:1013::3/64
!
interface Serial0/1/1
ip address 10.1.3.130 255.255.255.128
ipv6 address FE80::3:3 link-local
ipv6 address 2001:DB8:ACAD:1014::3/64
!
ip forward-protocol nd
no ip http server
ip http secure-server
ip route 192.168.1.0 255.255.255.0 Serial0/1/0 10.1.3.1
ip route 192.168.1.0 255.255.255.0 Serial0/1/1 10.1.3.129
ip route 192.168.2.0 255.255.255.0 GigabitEthernet0/0/0 10.2.3.2
!
ipv6 route 2001:DB8:ACAD:1000::/64 Serial0/1/1 2001:DB8:ACAD:1014::1
ipv6 route 2001:DB8:ACAD:1000::/64 Serial0/1/0 2001:DB8:ACAD:1013::1
ipv6 route 2001:DB8:ACAD:1012::/64 GigabitEthernet0/0/0 FE80::2:2
ipv6 route 2001:DB8:ACAD:2000::/64 GigabitEthernet0/0/0 2001:DB8:ACAD:1023::2
ipv6 route 3333::/64 Null0
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 21 of 22 www.netacad.com
Lab - Investigate Static Routes
!
control-plane
!
banner motd ^C R3, Investigate Static Routes ^C
!
line con 0
exec-timeout 0 0
logging synchronous
transport input none
stopbits 1
line aux 0
stopbits 1
line vty 0 4
exec-timeout 0 0
privilege level 15
password cisco123
logging synchronous
login
!
end
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 22 of 22 www.netacad.com