BERT2324 Lab 5 Question (2023-2024)
BERT2324 Lab 5 Question (2023-2024)
SECTION /
1/1
GROUP
DATE 20/5/2024
Addressing Table
Objectives
Part 1: Set Up the Topology
Part 2: Configure Basic Device Settings and Verify Connectivity
Part 3: Configure Static Routes
Configure a recursive static route.
Configure a directly connected static route.
Configure and remove static routes.
Part 4: Configure and Verify a Default Route
3
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: 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 this end of the lab for the correct interface identifiers.
Required Resources
Packet Tracer with the following equipment:
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 ( with terminal emulation)
Console cables to configure the Cisco IOS devices via the console ports
Ethernet and serial cables as shown in the topology
4
Step 3: Configure IP settings on the routers.
a. Configure the R1 and R3 interfaces with IP addresses according to the Addressing Table.
b. The S0/0/0 connection is the DCE connection and requires the clock rate command. The R3
S0/0/0 configuration is displayed below.
R3(config)# interface s0/0/0
R3(config-if)# clock rate 128000
Figure 1: Verify connectivity by using the ping command from PC-A to its default gateway.
Figure 2: Verify connectivity by using the ping command from PC-C to its default gateway.
If the answer is no to any of these questions, troubleshoot the configurations and correct the
error.
5
b. Test connectivity by pinging between the directly connected routers.
Figure 3: Verify connectivity by using the ping command from R1 to the S0/0/0 interface of R3.
If the answer is no to any of these questions, troubleshoot the configurations and correct the
error.
Figure 4: Verify connectivity by using the ping command from PC-A to PC-C, Lo0 & Lo1.
6
= Router does not contain routes to distant networks
7
c. View the routing table information for R1 using the show ip route command.
What networks are present in the Addressing Table of this lab, but not in the routing table for
R1?
192.168.1.0 , 198.133.219.0 , 209.165.200.224
d. View the routing table information for R3.
8
What networks are present in the Addressing Table in this lab, but not in the routing table for
R3?
= 192.168.0.0
Why are all the networks not in the routing tables for each of the routers?
= Because the router are not configured with static or dynamic routing.
Figure 9: Routing table information for R1 to verify new static route entry (recursive static route).
These pings should fail. If the recursive static route is correctly configured, the ping arrives at
PC-C. PC-C sends a ping reply back to PC-A. However, the ping reply is discarded at R3
because R3 does not have a return route to the 192.168.0.0 network in the routing table.
9
Step 2: Configure a directly connected static route.
With a directly connected static route, the exit-interface parameter is specified, which allows the
router to resolve a forwarding decision in one lookup. A directly connected static route is typically
used with a point-to-point serial interface. To configure directly connected static routes with an exit
interface specified, use the following syntax:
Router(config)# ip route network-address subnet-mask exit-intf
a. On the R3 router, configure a static route to the 192.168.0.0 network using S0/0/0 as the exit
interface. Write the command you used in the space provided.
= R3(config)# ip route 192.168.0.0 255.255.255.0 s0/0/0
b. View the routing table to verify the new static route entry.
Figure 10: Routing table information for R3 to verify new static route entry (directly connected static
route).
10
c. View the routing table to verify the new static route entry.
Figure 11: Routing table information for R1 to verify new static route entry.
Figure 12: Routing table information for R1 to verify the routes have been removed.
How many network routes are listed in the routing table on R1? = Three
Is the Gateway of last resort set? = NO
11
Part 4: Configure and Verify a Default Route
In Part 4, you will implement a default route, confirm that the route has been added to the routing
table, and verify connectivity based on the introduced route.
A default route identifies the gateway to which the router sends all IP packets for which it does
not have a learned or static route. A default static route is a static route with 0.0.0.0 as the
destination IP address and subnet mask. This is commonly referred to as a “quad zero” route.
In a default route, either the next-hop IP address or exit interface can be specified. To configure a
default static route, use the following syntax:
Router(config)# ip route 0.0.0.0 0.0.0.0 {ip-address or exit-intf}
a. Configure the R1 router with a default route using the exit interface of S0/0/1. Write the
command you used in the space provided.
= R1(config)# ip route 0.0.0.0 0.0.0.0 s0/0/1
b. View the routing table to verify the new static route entry.
Figure 13: Routing table information for R1 to verify new static route entry (default route).
12
c. From host PC-A, is it possible to ping the 209.165.200.225?
Figure 14: Verify connectivity by using the ping command from PC-A to Lo0 and Lo1.
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?
= Answer will vary. Ip route 192.168.3.0 255.255.255.00 10.1.1.1,
Ip route 192.168.3.0 255.255.255.0 s0/0/0
2. Is there a benefit to configuring a directly connected static route instead of a recursive static route?
= Config directly attached static route allows routing table to resolve exit interface in single search
instead of two searches as needed for recursive static route.
3. Why is it important to configure a default route on a router?
= Default route prevents the router from dropping packets to unknown destinations.
13
Running Configuration from Router R1:
R1# show running-config
14
Running Configuration from Router R3:
R3# show running-config
15
Lab 5.2 – Configuring Dynamic Routing Protocol (Packet
Tracer)
Topology
Addressing Table
16
17
Objectives
Part 1: Build the Network and Configure Basic Device Settings
Part 2: Configure and Verify RIPv2 Routing
Configure RIPv2 on the routers and verify that it is running.
Examine routing tables.
Disable automatic summarization.
Verify end-to-end connectivity.
Background / Scenario
Routing Information Protocol version 2 (RIPv2) is used for routing of IPv4 addresses in small
networks. RIPv2 is a classless, distance-vector routing protocol, as defined by RFC 1723.
Because RIPv2 is a classless routing protocol, subnet masks are included in the routing updates. By
default, RIPv2 automatically summarizes networks at major network boundaries. When automatic
summarization has been disabled, RIPv2 no longer summarizes networks to their classful address at
boundary routers.
In this lab, you will configure the network topology with RIPv2 routing, disable automatic
summarization, and use CLI commands to display, and verify RIP routing information.
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 this lab. Refer to the Router
Interface Summary Table at the end of the lab for the correct interface identifiers.
Required Resources
3 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)
3 PCs (Windows 7, Vista, or XP with terminal emulation program, such as PuTTY)
Console cables to configure the Cisco IOS devices via the console ports
Ethernet and Serial cables as shown in the topology
18
Step 2: Configure basic settings for each router and switch.
a. Disable DNS lookup.
b. Configure device names as shown in the topology.
c. Assign class as the privileged EXEC password.
d. Assign cisco as the console and vty passwords.
e. Configure a MOTD banner to warn users that unauthorized access is prohibited.
f. Configure the IP addresses listed in the Addressing Table for all interfaces.
g. Configure a description for each interface with an IP address.
h. Configure the clock rate, if applicable, to the DCE serial interface.
i. Copy the running-configuration to the startup-configuration.
Figure 15: Verify connectivity by using the ping command from PC-A to PC-C.
a. Each workstation should be able to ping the attached router. Verify and troubleshoot if
necessary.
b. The routers should be able to ping one another. Verify and troubleshoot if necessary.
19
Part 2: Configure and Verify RIPv2 Routing
In Part 2, you will configure RIPv2 routing on all routers in the network and then verify that the
routing tables are updated correctly. After RIPv2 has been verified, you will disable automatic
summarization, and verify end-to-end connectivity.
20
Figure 18: Routing table information for R3.
21
Step 4: Examine the current state of the network.
a. View the routing table to verify the new route entry for R1, R2 and R3.
Note: Routes learned through RIP are coded with an R in the routing table.
22
b. Check connectivity between PCs.
From PC-A, is it possible to ping PC-B? =Yes
What is the success rate (in percentage %)? 100%
From PC-A, is it possible to ping PC-C? YES
What is the success rate (in percentage %)? 100%
Figure 22: Verify connectivity by using the ping command from PC-A to PC-B and PC-C.
23
Figure 23: Verify connectivity by using the ping command from PC-C to PC-B and PC-A.
24
c. Verify that RIPv2 is running on the routers.
You can use the debug ip rip, show ip protocols, and show running-config
commands to confirm that RIPv2 is running.
The show ip protocols command output for R1 is shown below.
Note: The show ip protocols command can be used to view information about the routing processes that
are occurring on the router. This output can be used to verify most RIP parameters to confirm that:
RIP routing is configured
The correct interfaces send and receive RIP updates
The router advertises the correct networks
RIP neighbors are sending updates
When issuing the debug ip rip command on R1, the following information is provided to
confirm that RIPv2 is running. When you are finished observing the debugging outputs, issue the
undebug all or no debug ip rip command.
R1#debug ip rip
RIP protocol debugging is on
R1#undebug all
All possible debugging has been turned off
R1#
Note: Use the debug ip rip command to view the RIP messages being sent and received.
RIP updates are sent every 30 seconds so you may have to wait for debug information to be displayed.
25
When issuing the show running-config command on R1, the following information is
provided to confirm that RIPv2 is running.
R1#show run
Building configuration...
!
interface Vlan1
no ip address
shutdown
!
router rip
version 2
network 10.0.0.0
network 172.30.0.0
!
ip classless
!
ip flow-export version 9
!
!
R1 displays only its own subnet for the 172.30.10.0/24 network. R1 does not have a route for the
172.30.30.0/24 subnet on R3.
R1# show ip route
<Output omitted>
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C 10.1.1.0/30 is directly connected, Serial0/0/0
L 10.1.1.1/32 is directly connected, Serial0/0/0
R 10.2.2.0/30 [120/1] via 10.1.1.2, 00:00:21, Serial0/0/0
172.30.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.30.10.0/24 is directly connected, GigabitEthernet0/1
L 172.30.10.1/32 is directly connected, GigabitEthernet0/1
R 209.165.201.0/24 [120/1] via 10.1.1.2, 00:00:21, Serial0/0/0
26
27
R3 only displays its own subnet for the 172.30.30.0/24 network. R3 does not have a route for the
172.30.10.0/24 subnets on R1.
R3# show ip route
<Output omitted>
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
R 10.1.1.0/30 [120/1] via 10.2.2.2, 00:00:23, Serial0/0/1
C 10.2.2.0/30 is directly connected, Serial0/0/1
L 10.2.2.1/32 is directly connected, Serial0/0/1
172.30.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.30.30.0/24 is directly connected, GigabitEthernet0/1
L 172.30.30.1/32 is directly connected, GigabitEthernet0/1
R 209.165.201.0/24 [120/1] via 10.2.2.2, 00:00:09, Serial0/0/1
From debug ip rip command on R2, R1 and R3 is not sending any of the 172.30.0.0 subnets,
only the summarized route of 172.30.0.0, including the subnet mask (/16).
R2#debug ip rip
RIP protocol debugging is on
28
Step 7: Examine the routing tables.
The LAN subnets connected to R1 and R3 should now be included in all three routing tables.
--------------------------------------------------------------------------
R3# show ip route
<Output omitted>
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
R 10.1.1.0/30 [120/1] via 10.2.2.2, 00:00:23, Serial0/0/1
C 10.2.2.0/30 is directly connected, Serial0/0/1
L 10.2.2.1/32 is directly connected, Serial0/0/1
172.30.0.0/16 is variably subnetted, 2 subnets, 2 masks
R 172.30.10.0/24 [120/2] via 10.2.2.2, 00:00:16, Serial0/0/1
C 172.30.30.0/24 is directly connected, GigabitEthernet0/1
L 172.30.30.1/32 is directly connected, GigabitEthernet0/1
R 209.165.201.0/24 [120/1] via 10.2.2.2, 00:00:09, Serial0/0/1
29
a. Use the debug ip rip command on R2 to examine the RIP updates.
R2#debug ip rip
RIP protocol debugging is on
Figure 24: Verify connectivity by using the ping command from PC-A to PC-B.
Figure 25: Verify connectivity by using the ping command from PC- to PC-B.
b. Verify that hosts within the subnetted network can reach each other by pinging between PC-A
and PC-C.
Were the pings successful? = YES
30
Figure 26: Verify connectivity by using the ping command from PC-A to PC-C.
Reflection
1. Why would you turn off automatic summarization for RIPv2?
=So the router will no longer summarize router at major classful network boundaries
31
Running Configuration from Router R1:
R1# show running-config
32
33
Running Configuration from Router R2:
R2# show running-config
34
Running Configuration from Router R3:
R3# show running-config
35
Router Interface Summary Table
Router Model Ethernet Interface #1 Ethernet Interface #2 Serial Interface #1 Serial Interface #2
1800 Fast Ethernet 0/0 Fast Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(F0/0) (F0/1)
1900 Gigabit Ethernet 0/0 Gigabit Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(G0/0) (G0/1)
2801 Fast Ethernet 0/0 Fast Ethernet 0/1 Serial 0/1/0 (S0/1/0) Serial 0/1/1 (S0/1/1)
(F0/0) (F0/1)
2811 Fast Ethernet 0/0 Fast Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(F0/0) (F0/1)
2900 Gigabit Ethernet 0/0 Gigabit Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(G0/0) (G0/1)
Note: To find out how the router is configured, look at the interfaces to identify the router type 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.
36
Appendix A: Initializing and Reloading a Router
Note: You may receive a prompt to save the running configuration prior to reloading the router.
Respond by typing no and press Enter.
System configuration has been modified. Save? [yes/no]: no
37
Appendix B: Initializing and Reloading a Switch
Step 2: Determine if there have been any virtual local-area networks (VLANs) created.
Use the show flash command to determine if any VLANs have been created on the switch.
Switch# show flash
Directory of flash:/
You will be prompted to verify the file name. At this point, you can change the file name or just
press Enter if you have entered the name correctly.
b. When you are prompted to delete this file, press Enter to confirm the deletion. (Pressing any
other key will abort the deletion.)
Delete flash:/vlan.dat? [confirm]
Switch#
38
Step 5: Reload the switch.
Reload the switch to remove any old configuration information from memory. When you are
prompted to reload the switch, press Enter to proceed with the reload. (Pressing any other key will
abort the reload.)
Switch# reload
Proceed with reload? [confirm]
Note: You may receive a prompt to save the running configuration prior to reloading the switch.
Type no and press Enter.
System configuration has been modified. Save? [yes/no]: no
39
Appendix C: Configuration Commands for Lab 4-1 Parts 2, 3, and 4
The commands listed in Appendix A are for reference only. This Appendix does not include all the
specific commands necessary to complete this lab.
40