Computer Networks Lab
Spring 2026
Week 11
Dynamic Routing (RIP)
Router in use:
How to add and use Serial Cable:
1. Go to the physical portion of the router.
2. Turn off the router.
3. Choose WIC-1T
4. Add ports according to need, and turn on the router.
5. To connect two routers using serial cable, use Serial DTE wire
6. Connect one’s serial port with the other router’s.
7. And you will have a connection like:
8. Add IP address, turn on the ports and you are good to go.
Dynamic routing protocol #1
RIP routing
Routing Information Protocol (RIP) is a dynamic routing protocol that uses hop count as a routing metric to find
the best path between the source and the destination network. It is a distance-vector routing protocol that has an
AD value of 120 and works on the Network layer of the OSI model. RIP uses port number 520.
Hop count is the number of routers occurring in between the source and destination network. The path with the
lowest hop count is considered as the best route to reach a network and therefore placed in the routing table.
RIP prevents routing loops by limiting the number of hops allowed in a path from source and destination. The
maximum hop count allowed for RIP is 15 and a hop count of 16 is considered as network unreachable.
Features of RIP:
1. Updates of the network are exchanged periodically.
2. Updates (routing information) are always broadcast.
3. Full routing tables are sent in updates.
4. Routers always trust routing information received from neighbor routers. This is also known as Routing on
rumor.
Walk Through Task:
Step 1: Create a topology as such:
Step 2: Assign IP addresses to the PC accordingly as mentioned in the image above with the accurate default
gateway.
Step 3: Once all the systems are assigned with an IP address, set the default gateway.
For router in network: [Link] (green area):
Step 3.1: go to the router’s CLI
Step 3.2: type ‘en’
Step 3.3: type ‘config t’ to access configuration terminal
Step 3.4: access the interface connected to the switch in the network (in this case its port 0/0)
Step 3.5: add ip address by using the command ‘ip address [Link] [Link]’. Here
[Link] is the ip address, while [Link] is the subnet mask.
Step 3.6: ‘no shutdown’ the interface.
For router in network: [Link] (yellow area):
Step 3.1: go to the router’s CLI
Step 3.2: type ‘en’
Step 3.3: type ‘config t’ to access configuration terminal
Step 3.4: access the interface connected to the switch in the network (in this case its port 0/0)
Step 3.5: add ip address by using the command ‘ip address [Link] [Link]’. Here
[Link] is the ip address, while [Link] is the subnet mask.
Step 3.6: ‘no shutdown’ the interface.
For router in network: [Link] (orange area):
Step 3.1: go to the router’s CLI
Step 3.2: type ‘en’
Step 3.3: type ‘config t’ to access configuration terminal
Step 3.4: access the interface connected to the switch in the network (in this case its port 3/0)
Step 3.5: add ip address by using the command ‘ip address [Link] [Link]’. Here
[Link] is the ip address, while [Link] is the subnet mask.
Step 3.6: ‘no shutdown’ the interface.
Step 4: Once all the networks with the PCs connected are all set, send PDUs to the respective router to check
the correctness of the topology.
Step 5: Set up the routes between the routers of the area in pink and blue
For the router in the area in green:
Step 5.1: go to the router’s CLI
Step 5.2: type ‘en’
Step 5.3: type ‘config t’ to access configuration terminal
Step 5.4: access the interface connected to the switch in the network (in this case its serial port 0/0/0)
Step 5.5: add ip address by using the command ‘ip address [Link] [Link]’. Here [Link] is
the ip address, while [Link] is the subnet mask.
Step 5.6: ‘no shutdown’ the interface.
For the router in the area in yellow:
Step 5.1: go to the router’s CLI
Step 5.2: type ‘en’
Step 5.3: type ‘config t’ to access configuration terminal
Step 5.4: access the interface connected to the switch in the network in this case its serial port 0/0/0)
Step 5.5: add ip address by using the command ‘ip address [Link] [Link]’. Here [Link] is
the ip address, while [Link] is the subnet mask.
Step 5.6: ‘no shutdown’ the interface.
Repeat step 5 for the other area as well
Step 6: Set up the rip routing
Connecting network [Link] (area in green) with others networks
Step 6.1: use the command to add the network from that router to the next one
router(config)# Router rip
router(config-router)#
Once you are in routing configuration mode, enter the classful network address for each directly
connected network, using the network command.
router(config-router)# network [Link]
router(config-router)# network [Link]
router(config-router)#
Connecting network [Link] (area in yellow) with others networks
Step 6.1: use the command to add the network from that router to the next one
router(config)# Router rip
router(config-router)#
Once you are in routing configuration mode, enter the classful network address for each directly
connected network, using the network command.
router(config-router)# network [Link]
router(config-router)# network [Link]
router(config-router)#network [Link]
Connecting network [Link] (area in orange) with others networks
Step 6.1: use the command to add the network from that router to the next one
router(config)# Router rip
router(config-router)#
Once you are in routing configuration mode, enter the classful network address for each directly
connected network, using the network command.
router(config-router)# network [Link]
router(config-router)# network [Link]
router(config-router)#
Step 7: Once all set, send PDUs to the respective router to check the correctness of the topology.
Practice tasks
Consider your roll number
Let xx be the last two digits of your roll
number
Example: for roll number 22i0027
27 be xx and 28 will be xx+1
Task 1:
Construct the given network topology and implement RIP.
IP Addressing:
Network A: [Link].0.0
Network B: [Link]+1.0.0
Network C: [Link]+2.0.0
Network D: [Link]+3.0.0
Network E: [Link]+4.0.0
Network F: [Link]+5.0.0
Network G: [Link]+6.0.0
Network H: [Link]+7.0.0
Network I: [Link]+8.0.0
Network J: [Link]+9.0.0
Network K: [Link]+10.0.0
Network L: [Link]+11.0.0
Network M: [Link]+12.0.0