Summary
RIP protocol configuration commands | In this article we will learn about the definition of RIP protocol ,how to configure RIP protocol in packet tracer on cisco router ,after configuration how to verify RIP protocol is successfully configured or not. In this articles we demonstrate the configuration of routing information protocol(version 1) with two cisco routers on packet tracer.
What is Routing Information Protocol(RIP protocol)
Routing Information Protocol is a distance vector protocol. It uses hop count as a routing metric. By default administrative distance of RIP is 120.Rip protocol uses maximum 15 hop counts.RIP protocol updates it's routing table after every 30 seconds.
What is hop count
We can calculate hop count using how many hops rip protocol will cover to reach destination router from the source router. Rip protocol always calculate minimum hops as a best path to reach destination router. Rip protocol uses maximum 15 hops .Rip protocol will be unreachable after 15 hops.
Lab Diagram
RIP protocol configuration guide example on packet tracer |
In the above diagram we use two cisco routers to demonstrate Ripv1 configuration.
Configuration of Routing Information Protocol
To configure RIP protocol first we assign ip address of the interface of those two routers and assign clock rate to the serial interface at DCE side. After assigning the ip address we will start the configuration part of routing information protocol.
We assign the interface ip and clock rate on router0 interface to execute the below command.
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int gigabitEthernet 0/0
Router(config-if)#ip address 10.0.0.1 255.0.0.0
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#int serial 0/0/0
Router(config-if)#clock rate 64000
Router(config-if)#ip address 20.0.0.1 255.0.0.0
Router(config-if)#no shut
We assign the interface ip on router1 interface to execute the below command.
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int gigabitEthernet 0/0
Router(config-if)#ip address 30.0.0.1 255.0.0.0
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#int serial 0/0/0
Router(config-if)#ip address 20.0.0.2 255.0.0.0
Router(config-if)#no shut
After completed the above configuration we are going to the second part of the configuration which is rip configuration. To configure rip protocol on router0 we execute the below command on router0.
Router(config)#router rip
Router(config-router)#version 1
Router(config-router)#network 30.0.0.0
Router(config-router)#network 20.0.0.0
Router(config-router)#network 10.0.0.0
Router(config-router)#exit
To configure rip on router1 we execute the below command on router1.
Router(config)#router rip
Router(config-router)#version 1
Router(config-router)#network 30.0.0.0
Router(config-router)#network 20.0.0.0
Router(config-router)#network 10.0.0.0
Router(config-router)#exit
Verify configuration of Routing Information Protocol
After completed the above configuration we need to verify RIP protocol whether it is successfully configured or not.we are using the below command to verify it on both routers.
Router#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.0.0.0/8 is directly connected, GigabitEthernet0/0
L 10.0.0.1/32 is directly connected, GigabitEthernet0/0
20.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 20.0.0.0/8 is directly connected, Serial0/0/0
L 20.0.0.1/32 is directly connected, Serial0/0/0
R 30.0.0.0/8 [120/1] via 20.0.0.2, 00:00:01, Serial0/0/0
When we are going to communicate from pc0 to pc2 we got the reply message.
C:\>ping 30.0.0.2
Pinging 30.0.0.2 with 32 bytes of data:
Request timed out.
Reply from 30.0.0.2: bytes=32 time=1ms TTL=126
Reply from 30.0.0.2: bytes=32 time=1ms TTL=126
Reply from 30.0.0.2: bytes=32 time=1ms TTL=126
Ping statistics for 30.0.0.2:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 1ms, Average = 1ms
Conclusion
In this article we have learned about the definition of RIP protocol ,how to configure RIP protocol in packet tracer on cisco router ,after configuration how to verify RIP protocol is successfully configured or not. In this articles we demonstrate the configuration of routing information protocol(version 1) with two cisco routers on packet tracer. If this article is helpful to know about RIP protocol Configuration please share this.
nice information..
ReplyDeleteNetwork routing
Best wireless router