Configure IPv4 Static and Default Routes - ILM
Configure IPv4 Static and Default Routes - ILM
Configure IPv4 Static and Default Routes - ILM
Topology
Addressing Table
Device Interface IP Address / Prefix
R1
G0/0/1 192.168.1.1 /24
R1
Loopback1 10.1.0.1 /24
R1
Loopback2 209.165.200.225 /27
R2 G0/0/0 172.16.1.2 /24
R2
G0/0/1 192.168.1.2 /24
R2
Loopback1 10.2.0.1 /24
R2
Loopback2 209.165.200.193 /27
Objectives
Part 1: Build the Network and Configure Basic Device Settings
Part 2: Configure and verify IP addressing on R1 and R2
Part 3: Configure and verify static and default routing for IPv4 on R1 and R2
Background / Scenario
Static and Default routing are the simplest forms of network routing and configured manually. They are fixed,
meaning that they do not change dynamically to meet changing network conditions. They are either valid and
2013 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 7 www.netacad.com
Lab - Configure IPv4 Static and Default Routes
made available to the routing table or invalid and not made available to the routing table. Static routes have
an administrative distance of one by default. However, static and default routes can be configured with an
administrator-defined administrative distance. This capability allows the administrator to put the static or
default route in reserve, and only make it available to the routing table when routes with lower administrative
distances (usually generated by dynamic routing protocols) are no longer valid.
Note: In this lab you will configure static, default, and floating default routes for both IPv4
which may not reflect networking best practices.
Note: The routers used with CCNA 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 2960s with Cisco IOS Release 15.2(2)
(lanbasek9 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. Refer to the Router Interface Summary Table at the end of the lab for the correct interface identifiers.
Note: Ensure that the routers and switches 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
2 Routers (Cisco 4221 with Cisco IOS XE Release 16.9.4 universal image or comparable)
2 Switches (Cisco 2960 with Cisco IOS Release 15.2(2) lanbasek9 image or comparable)
1 PC (Windows with a terminal emulation program, such as Tera Term)
Console cables to configure the Cisco IOS devices via the console ports
Ethernet cables as shown in the topology
Instructions
router(config)# hostname R1
router(config)# hostname R2
b. Disable DNS lookup to prevent the router from attempting to translate incorrectly entered commands as
though they were host names.
R1(config)# no ip domain lookup
2013 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 7 www.netacad.com
Lab - Configure IPv4 Static and Default Routes
R2(config)# exit
R2# copy running-config startup-config
Close configuration window
switch(config)# hostname S2
b. Disable DNS lookup to prevent the router from attempting to translate incorrectly entered commands as
though they were host names.
S1(config)# no ip domain-lookup
S2(config)# no ip domain-lookup
c. Assign class as the privileged EXEC encrypted password.
2013 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 7 www.netacad.com
Lab - Configure IPv4 Static and Default Routes
S2(config-if-range)# exit
S2# copy running-config startup-config
Question:
Issuing the command show cdp neighbors at this point on R1 or R2 results in an empty list. Explain.
Type your answers here.
Because the router interfaces are shut down by default.
2013 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 7 www.netacad.com
Lab - Configure IPv4 Static and Default Routes
a. Configure the IP address for all the interfaces according to the Addressing Table.
R1(config)# interface g0/0/0
R1(config-if)# ip address 172.16.1.1 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# interface g0/0/1
R1(config-if)# ip address 192.168.1.1 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# interface lo1
R1(config-if)# ip address 10.1.0.1 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# interface lo2
R1(config-if)# ip address 209.165.200.225 255.255.255.224
R1(config-if)# no shutdown
2013 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 7 www.netacad.com
Lab - Configure IPv4 Static and Default Routes
Part 3: Configure and verify static and default routing for IPv4 on R1 and R2
In Part 3, you will configure static and default routing on R1 and R2 to enable full connectivity between the
routers using IPv4. Once again, the static routing being used here is not meant to represent best practice, but
to assess your ability to complete the required configurations.
Step 1: On R1, configure a static route to R2’s Loopback1 network, using R2’s G0/0/1 address
as the next hop.
open configuration window
a. Use the ping command to ensure that R2’s G0/0/1 interface is reachable.
b. Configure a static route for R2’s Loopback1 network via R2’s G0/0/1 address.
R1(config)# ip route 10.2.0.0 255.255.255.0 192.168.1.2
Step 2: On R1, configure a static default route via R2’s G0/0/0 address.
a. Use the ping command to ensure that R2’s G0/0/0 interface is reachable.
b. Configure a static default route via R2’s G0/0/0 address.
R1(config)# ip route 0.0.0.0 0.0.0.0 172.16.1.2
Step 3: On R1, configure a floating static default route via R2’s G0/0/1 address.
Configure a floating static default route with an AD of 80 via R2’s G0/0/1 address.
R1(config)# ip route 0.0.0.0 0.0.0.0 192.168.1.2 80
Step 4: On R2, configure a static default route via R1’s G0/0/0 address
a. Use the ping command to ensure that R1’s G0/0/0 interface is reachable.
b. Configure a static default route via R1’s G0/0/0 address.
R2(config)# ip route 0.0.0.0 0.0.0.0 172.16.1.1
2013 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 7 www.netacad.com
Lab - Configure IPv4 Static and Default Routes
2013 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 7 www.netacad.com