Lab 4
Lab 4
Topology
Addressing Table
Default
Device Interface IP Address Subnet Mask
Gateway
R1 F0/1 192.168.0.1 255.255.255.0 N/A
S0/0/1 10.1.1.1 255.255.255.252 N/A
R3 F0/1 192.168.1.1 255.255.255.0 N/A
S0/0/0 (DCE) 10.1.1.2 255.255.255.252 N/A
Lo0 209.165.200.225 255.255.255.224 N/A
Lo1 198.133.219.1 255.255.255.0 N/A
PC-A NIC 192.168.0.10 255.255.255.0 192.168.0.1
PC-C NIC 192.168.1.10 255.255.255.0 192.168.1.1
Objectives
Part 1: Set Up the Topology and Initialize Devices
Part 2: Configure Basic Device Settings and Verify Connectivity
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Lab – Configuring IPv4 Static and Default Routes
Background / Scenario
A router uses a routing table to determine where to send packets. The routing table contains a set of
routes that describe which gateway or interface the router uses to reach a specified network. Initially, the
routing table contains only directly connected networks. To communicate with distant networks, routes
must be specified and added to the routing table.
In this lab, you will manually configure a static route to a specified distant network based on a next-hop
IP address or exit interface. You will also configure a static default route. A default route is a type of static
route that specifies a gateway to use when the routing table does not contain a path for the destination
network.
Note: This lab provides minimal assistance with the actual commands necessary to configure static
routing. However, the required commands are provided in Appendix A. Test your knowledge by trying to
configure the devices without referring to the appendix.
Note: The routers used with CCNA hands-on labs are Cisco 1941 Integrated Services Routers (ISRs)
with
Cisco IOS Release 15.2(4)M3 (universalk9 image). The switches used are Cisco Catalyst 2960s with
Cisco IOS Release 15.0(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 output
produced might vary from what is shown in the labs. Refer to the Router Interface Summary Table at
the end of this lab for the correct interface identifiers.
Note: Make sure that the routers and switches have been erased and have no startup configurations. If
you are unsure, contact your instructor.
Required Resources
• 2 Routers (Cisco 1941 with Cisco IOS Release 15.2(4)M3 universal image or comparable)
• 2 Switches (Cisco 2960 with Cisco IOS Release 15.0(2) lanbasek9 image or comparable)
• 2 PCs (Windows 7, Vista, or XP 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
2
Lab – Configuring IPv4 Static and Default Routes
a. Configure the R1 and R3 interfaces with IP addresses according to the Addressing Table.
The R3 S0/0/0 configuration is displayed below.
R3(config)# interface s0/0/0
R3(config-if)# ip address 10.1.1.2 255.255.255.252
3
Lab – Configuring IPv4 Static and Default Routes
R3(config-if)# no shutdown
HINT: in R3, the loopback interface names are Lo0 and Lo1
a. Test connectivity by pinging from each PC to the default gateway that has been configured for that
host.
From PC-A, is it possible to ping the default gateway? __________ YES
From PC-C, is it possible to ping the default gateway? __________ YES
b. Test connectivity by pinging between the directly connected routers.
From R1, is it possible to ping the S0/0/0 interface of R3? __________ YES
If the answer is no to any of these questions, troubleshoot the configurations and correct the error.
c. Test connectivity between devices that are not directly connected.
From PC-A, is it possible to ping PC-C? __________ NO
From PC-A, is it possible to ping Lo0? __________ NO
From PC-A, is it possible to ping Lo1? __________ NO
Were these pings successful? Why or why not?
- These pings were successful as these devices were
not directly connected. It was the remote network.
Note: It may be necessary to disable the PC firewall to ping between PCs.
Note: This lab provides minimal assistance with the actual commands necessary to configure static
routing. However, the required commands are provided in Appendix A. Test your knowledge by trying to
configure the devices without referring to the appendix.
5
Lab – Configuring IPv4 Static and Default Routes
b. On the R1 router, configure a static route to the 209.165.200.224 network on R3 using the other
static route configuration option from the previous steps. Write the command you used in the space
provided.
R1(config)#ip route 209.165.200.224 255.255.255.224 10.1.1.2
c. View the routing table to verify the new static route entry.
How is this new route listed in the routing table?
S 198.133.219.0/24 is directly connected, Serial0/0/1
209.165.200.0/27 is subnetted, 1 subnets
S 209.165.200.224/27 [1/0] via 10.1.1.2
d. From host PC-A, is it possible to ping the R1 address 198.133.219.1? __________ YES This ping
should be successful.
6
Lab – Configuring IPv4 Static and Default Routes
b. View the routing table to verify the new static route entry.
How is this new route listed in the routing table?
S* 0.0.0.0/0 is directly connected, Serial0/0/1
What is the Gateway of last resort?
In this case, Gateway of last resort is 0.0.0.0 to network 0.0.0.0, it refers to the packets for which it
does not have a static route.
c. From host PC-A, is it possible to ping the 209.165.200.225? __________ YES
d. From host PC-A, is it possible to ping the 198.133.219.1? __________ YES
These pings should be successful.
Reflection
1. A new network 192.168.3.0/24 is connected to interface G0/0 on R1. What commands could be used to
configure a static route to that network from R3?
R3(config)#ip route 192.168.3.0 255.255.255.0 s0/0/0
R3(config)#ip route 192.168.3.0 255.255.255.0 10.1.1.1
2. Is there a benefit to configuring a directly connected static route instead of a recursive static route?
The directly connected static route makes maintaining routing tables in networks in a more
straightforward way. It specifies the exit-interface parameter, enabling the router to resolve a forwarding
decision in a single lookup.
3. Why is it important to configure a default route on a router?
Without a default route on a router, the packets lacking destination addresses in the router's routing table
will be discarded.
7
Lab – Configuring IPv4 Static and Default Routes