ITL 332: Computer Networks Lab
Exp No: 5
Routing Information Protocol
Aim : To establish layer 3 connectivity using RIP protocol.
Design :--
Procedure :--
Step 1:-- configuring the router and enabling Routing protocol RIP
Router 1
R1>enable
R1# configure terminal
R1(config)#interface g0/0
R1(config-if)#ip address 192.168.10.2 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface s0/0/0
R1(config-if)# ip address 192.168.11.1 255.255.255.0
R1(config-if)#clock rate 9600
Dept. of Information Technology 17
ITL 332: Computer Networks Lab
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#router rip
R1(config)#network 192.168.10.0
R1(config)#network 192.168.11.0
R1(config)#exit
R1#
Router 2
R2>enable
R2# configure terminal
R2(config)#interface g0/0
R2(config-if)#ip address 192.168.12.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface serial0/0/0
R2(config-if)# ip address 192.168.11.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#router rip
R2(config)#network 192.168.12.0
R2(config)#network 192.168.11.0
R2(config)#exit
R2#
Step 2 :-- configuring the PCs attached to the Ethernet interfaces of the
Routers
Host 1
PC1 >
Ip address 192.168.10.1
Subnet Mask 255.255.255.0
Default Gateway 192.168.10.2
Dept. of Information Technology 18
ITL 332: Computer Networks Lab
PC2 >
Ip address 192.168.12.1
Subnet Mask 255.255.255.0
Default Gateway 192.168.12.2
Output : --
Host 1
PC1: > ping 192.168.12.1
Reply from 192.168.12.1: bytes=32 time=60ms TTL=241
Reply from 192.168.12.1: bytes=32 time=60ms TTL=241
Reply from 192.168.12.1: bytes=32 time=60ms TTL=241
Reply from 192.168.12.1: bytes=32 time=60ms TTL=241
Reply from 192.168.12.1: bytes=32 time=60ms TTL=241
Ping statistics for 192.168.12.1 : packets: sent=5 Received = 5, Lost = 0 ( 0 % loss),
Approximate round trip time in milli-seconds:
Minimum=50ms, Maximum=60ms, Average = 55ms
PC1: >
Host 2
PC2: > ping 192.168.10.1
Reply from 192.168.10.1: bytes=32 time=60ms TTL=241
Reply from 192.168.10.1: bytes=32 time=60ms TTL=241
Reply from 192.168.10.1: bytes=32 time=60ms TTL=241
Reply from 192.168.10.1: bytes=32 time=60ms TTL=241
Reply from 192.168.10.1: bytes=32 time=60ms TTL=241
Ping statistics for 192.168.10.1 : packets: sent=5 Received = 5, Lost = 0 ( 0 % loss),
Approximate round trip time in milli-seconds:
Minimum=50ms, Maximum=60ms, Average = 55ms
Conclusion :- Routing Protocol RIP was enabled and layer 3 connectivity was established and
verified.
Dept. of Information Technology 19