Data Communication & Networking: Lab Journal# 11
Data Communication & Networking: Lab Journal# 11
&
NETWORKING
LAB JOURNAL# 11
BAHRIA UNIVERSITY
ISLAMABAD CAMPUS
LAB 11
Configuring RIP routing protocol between two routers
Introduction:
The Routing Information Protocol (RIP) is a relatively old, but still commonly used, interior gateway protocol (IGP)
created for use in small, homogeneous networks. It is a classical distance-vector routing protocol. RIP is documented
in RFC 1058.
RIP uses broadcast User Datagram Protocol (UDP) data packets to exchange routing information. The Cisco IOS
software sends routing information updates every 30 seconds; this process is termed advertising. If a router does not
receive an update from another router for 180 seconds or more, it marks the routes served by the non-updating
router as being unusable. If there is still no update after 240 seconds, the router removes all routing table entries for
the no updating router.
The metric that RIP uses to rate the value of different routes is hop count. The hop count is the number of routers
that can be traversed in a route. A directly connected network has a metric of zero; an unreachable network has a
metric of 16. This small range of metrics makes RIP an unsuitable routing protocol for large networks.
If the router has a default network path, RIP advertises a route that links the router to the pseudo network 0.0.0.0.
The network 0.0.0.0 does not exist; RIP treats 0.0.0.0 as a network to implement the default routing feature. The
Cisco IOS software will advertise the default network if a default was learned by RIP, or if the router has a gateway of
last resort and RIP is configured with a default metric.
RIP sends updates to the interfaces in the specified networks. If an interface's network is not specified, it will not be
advertised in any RIP update.
Objectives:
To enable communication between two hosts that are connected not to a single router but with the
different routers
PROBLEM:
Establish link using RIP protocol
Equipment:
1. Four routers
2. Four switches
3. Four PCs
39
Tasks:
1. Implement the above-mentioned network using Packet Tracer.
Router 1
Router(config)#interface Serial2/0
Router(config-if)#ip address 192.19.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
Router(config-if)#exit
Router(config)#interface Serial3/0
Router(config-if)#ip address 192.19.2.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
Router(config-if)#exit
Router(config)#interface Serial6/0
Router(config-if)#no ip address
Router(config-if)#ip address 192.19.3.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
Router 3
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 192.19.7.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
Router(config-if)#exit
Router(config)#interface Serial3/0
Router(config-if)#ip address 192.19.6.2 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface Serial3/0, changed state to up
Router(config-if)#exit
Router(config)#interface Serial6/0
Router(config-if)#
ip address 192.19.9.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
Router 2
Router(config)#interface Serial2/0
Router(config-if)#ip address 192.19.1.2 255.255.255.0
Router(config-if)#no shutdown
Router(config)#interface Serial3/0
Router(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
ip address 192.19.6.1 255.255.255.0
Router(config-if)#no shutdown
Router 4
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 192.19.11.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
Router(config-if)#exit
Router(config)#interface Serial2/0
Router(config-if)#ip address 192.19.8.2 255.255.255.0
Router(config-if)#no shutdown
Router(config)#interface Serial3/0
Router(config-if)#ip address 192.19.2.2 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
Router 5
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 192.19.4.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface Serial2/0
Router(config-if)#ip address 192.19.3.2 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
Router(config-if)#end
Router 6
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 192.19.10.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface Serial2/0
Router(config-if)#ip address 192.19.9.2 255.255.255.0
Router(config-if)#no shutdown
Router(config)#router rip
Router(config-router)#network 192.19.0.0
Router(config-router)#network 192.19.1.0
Router(config-router)#network 192.19.2.0
Router(config-router)#network 192.19.3.0
Router(config-router)#network 192.19.4.0
Router(config-router)#network 192.19.10.0
Router(config-router)#exit
Router(config)#exit
Router 2
Router(config)#router rip
Router(config-router)#network 192.19.5.0
Router(config-router)#network 192.19.1.0
Router(config-router)#network 192.19.6.0
Router(config-router)#exit
Router 3
Router(config)#router rip
Router(config-router)#network 192.19.7.0
Router(config-router)#network 192.19.6.0
Router(config-router)#network 192.19.8.0
Router(config-router)#network 192.19.9.0
Router(config-router)#exit
Router(config)#exit
Router 4
Router#
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router rip
Router(config-router)#network 192.19.11.0
Router(config-router)#network 192.19.8.0
Router(config-router)#network 192.19.2.0
Router(config-router)#exit
Router(config)#exit
Router 5
Router(config)#router rip
Router(config-router)#network 192.19.4.0
Router(config-router)#network 192.19.3.0
Router(config-router)#exit
Router(config)#
Router 6
Router(config)#router rip
Router(config-router)#network 192.19.10.0
Router(config-router)#network 192.19.9.0
Router(config-router)#exit
confirm connection
check routing protocol
Router 1
Router#show ip rout
Router#
40
Conclusion:
In this lab, we learned about RIP protocol and performed the given tasks.