Al-BALQA UNIVERSITY
ELECTRICAL ENGINEERING
Computer Networking LAB
ELE6464
First Semester 2024/2025
Lab4: Dynamic Routing (RIP)
Objective: Learn how to apply dynamic routing on a network.
Outcomes: the student should be able to:
1. Cable a network according to the Topology Diagram.
2. Perform basic configuration tasks on a router.
3. Interpret debug IP routing output.
4. Configure and activate Serial and Ethernet interfaces.
5. Test connectivity.
6. Gather information to discover causes for lack of connectivity between devices.
7. Configure a dynamic route using RIP routing protocol.
Topology Diagram:
Addressing Table:
Device Interface IP Address Subnet Mask Default Gateway
Fa0/0 [Link] [Link] N/A
R1
S0/0/0 [Link] [Link] N/A
S0/0/0 [Link] [Link] N/A
R2 Fa0/0 [Link] [Link] N/A
S0/0/1 [Link] [Link] N/A
S0/0/0 [Link] [Link] N/A
R3
Fa0/0 [Link] [Link] N/A
PC1 NIC [Link] [Link] [Link]
PC2 NIC [Link] [Link] [Link]
PC3 NIC [Link] [Link] [Link]
Scenario:
In this lab, we will create a network that is similar to the one shown in the Topology Diagram.
Begin by cabling the network shown. We will then perform the initial router configurations
required for connectivity. Use the IP addresses that are provided in the Addressing Table to
apply an addressing scheme to the network devices.
After completing the basic configuration, test connectivity between the devices on the network.
First test the connections between directly connected devices, and then test connectivity
between devices that are not directly connected.
Task 1: Cabling.
Step 1: Cable a network that is similar to the one in the Topology Diagram.
Task 2: Configuring Routers Interfaces.
Step 1: Configure R1 Interfaces (Fast interface and serial interface).
Step 2: Configure R2 Interfaces (Two serial interfaces and the fast interface).
Step 3: Configure R3 Interfaces (Fast interface and serial interface).
Task 3: Configure IP Addressing on the Host PCs.
Step 1: Configure the host PC1.
Step 2: Configure the host PC2.
Step 3: Configure the host PC3.
Task 4: Test and Verify the Configurations.
Step 1: Test connectivity.
From the host PC1, is it possible to ping the default gateway? ________
From the host PC2, is it possible to ping the default gateway? ________
From the host PC3, is it possible to ping the default gateway? ________
Step 2: Use the ping command to test connectivity between directly connected
routers.
From the router R2, is it possible to ping R1 at [Link]? ________
From the router R2, is it possible to ping R3 at [Link]? ________
Step 3: Use ping to check connectivity between devices that are not directly
connected.
From the host PC3, is it possible to ping the host PC1? ________
From the host PC3, is it possible to ping the host PC2? ________
From the host PC2, is it possible to ping the host PC1? ________
From the router R1, is it possible to ping router R3 at [Link]? ________
These pings should all fail. Why?
Task 5: Gather Information.
Step 1: Check status of interfaces using the show command.
R2# show ip interface brief.
Are all of the relevant interfaces on each router activated (that is, in the up and
up state)? ________
How many interfaces are activated on R1 and R3? _______
Why are there three activated interfaces on R2?
__________________________________________________________________
Step 2: View the routing table information for all three routers.
R1#________________________________
R2#________________________________
R3#________________________________
What networks are present in the Topology Diagram but not in the routing table
for R1? ________________________________________________________
What networks are present in the Topology Diagram but not in the routing table
for R2? _________________________________________________________
What networks are present in the Topology Diagram but not in the routing table
for R3? _________________________________________________________
Task 6: Configure RIPv2 on R1, R2, and R3.
Step 1: Enable dynamic routing.
To enable a dynamic routing protocol, enter global configuration mode and use
the router command.
Enter router? At the global configuration prompt to a see a list of available
routing protocols on your router.
To enable RIP, enter the command router rip in global configuration mode, we
will enable RIP version two because it supports classless subnets, whereas RIP
version one supports only classful subnets.
Router (config) #router rip
Router (config-router) # version 2
Router (config-router) # no auto-summary
Step 2: Enter classless network addresses.
Once you are in routing configuration mode, enter the classless network address
for each directly connected network, using the network command.
Router (config-router) #network network address
Router (config-router) #passive-interface interfacename
The network command:
Enables RIP on all interfaces that belong to this network. These interfaces
will now both send and receive RIP updates.
Advertises this network in RIP routing updates sent to other routers every
30 seconds.
The passive-interface command:
This command prevents sending RIP updates to devices that will not use
these updates.
R1(config-router)# network [Link]
R1(config-router)# network [Link]
R1(config-router)# #passive-interface fa0/0
Step 3: Repeat the steps 1 and 2 for R2 and R3.
R2(config-router)# network [Link]
R2(config-router)# #network [Link]
R2(config-router)# #network [Link]
R2(config-router)# #passive-interface fa0/0
R3(config-router)# #network [Link]
R3(config-router)# #network [Link]
R3(config-router)# #passive-interface f0/0
Task 7: Verify RIP Routing.
Step 1: Use the show ip route command to verify that each router has all of the
networks in the topology entered in the routing table.
R1#
R2#
R3#
Step 2: Use the show ip protocols command to view information about the routing
processes.
R1#
R2#
R3#
Task 8: Test and Verify the Configurations.
From the host PC1, is it possible to ping PC2? Yes
From the host PC1, is it possible to ping PC3? Yes
From the host PC2, is it possible to ping PC3? Yes