How to Configure Routing Information Protocol (RIP)
Routing Information Protocol (RIP) is a dynamic routing protocol defines a way for routers, which connect different networks using the Internet Protocol (IP), to share information about how to route traffic among these different networks.
The routing information protocol (RIP) uses hop count as a routing metric to find the best path between the source and the destination network. Hop count is the number of routers along the path between the source and destination network. The path with the lowest hop count between source and destination considered as the best path and therefore placed in the routing table.
RIP exchange routing updates periodically in the shape of the broadcast after every 30 seconds. Each time it broadcast the entire routing table to its closest neighbors routers. The neighbors are the routers that are connected directly to this router.
The neighbors will pass the information on to their nearest neighbors, and so on The routers always trust on routing information received from neighbor routers. This is also known as routing on rumours. There are three versions of routing information protocol – RIP Version 1, RIP Version 2, and RIPng.
In case of router crash or a network connection is disruption; the network discovers this because that router will not send an update to its neighbors and If the discontinued remain for 180 seconds, RIP router will drop that route.
RIP also 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 hop count of 16 considered as network unreachable.
RIP is a distance-vector routing protocol which has AD value 120; and works on the application layer of the OSI model. RIP uses port number 520.
The RIP cannot scale very large and complex networks. The RIP pushes its whole routing table every 30 seconds as a result, it cannot converge quickly. RIP uses only due to its simplicity. Mostly RIP not uses in modern networking; it is only the foundation for networking student to understand routing.
This article explains how to configure RIP Routing protocol step by step in detail. RIP is a Distance Vector routing protocol. Learn how to enable router RIP configuration mode and configure Routing Information Protocol routing in Cisco router with the example in packet tracer.
Routing Information Protocol Configuration Mode
The figure above shows the reference topology including its IP addresses. In the topology, all routers have configured with basic management features and all interfaces are configured and enabled.
There are no dynamic and static routes configured; therefore, we cannot access the routers remotely. We can enable RIP protocol, using the router rip command, as shown below.
- Router0(config)#router rip
The command provides access to the router configuration mode where the RIP routing settings are configured.
To eliminate and remove the RIP configuration, use the no router rip command in global configuration mode. Executing this command immediately stops the RIP process and erases all existing RIP configurations. To display and check the router mode command execute the question mark(?) command in router mode as shown in the figure below.
After entering the RIP router configuration mode, it needs to know which local interfaces should use to communicate with other routers, as well as which locally connected networks it should advertise to those routers. To configure a RIP routing for a network, use the following command:
- Router0(config-router)#network <netwowrk address>
In the network-address enter the classful network address for each directly connected network. This command enables Routing Information Protocol on all interfaces that belong to a specific network and the associated interfaces now can also send and receive RIP update.
The router can advertise the particular network in RIP routing update sending to other routers on every 30 seconds. If in the network-address parameter we enter the subnet, the router IOS automatically converts the classless network address to classful network address. Because RIPv1 is a classful routing protocol for IPv4.
For example, if we enter the network address 192.168.1.32 the IOS would automatically convert the network 192.168.1.0 in the running configuration file without displaying any error message, but instead corrects the input and enters the classful network address. Following is the route advertisement configuration of this topology
- Router0 Route Advertisement
- Router1 Route Advertisement
The Router1 has five networks to advertise after configuring IP addresses to router interface following is the procedure to advertise its network.
The remaining routers in the topology have one route each to advertise in this topology. We can advertise routes in the same way. The complete configuration can be view in the video.
Examining Default RIP Settings
To examine and show the default RIP setting use the show ip protocols command in privileged exec mode. The figure below illustrates the output of this command on Router0 of the reference topology:
The command should display the IPv4 routing protocol settings currently configured on the router. The most parameters displays in Figure above including the following:
- The configured routing protocol is RIP
- The timers values, for example, the next routing update, is sent by R1 in 21 seconds. Invalid after 180 seconds, hold down timing and flush timing
- The version of RIP currently configured
- Current route summarization state
- Current paths and routing for the network.
- The routing information source including administrative distance value currently configured.
- This command is also useful to verify other routing protocols and their operation.
The other command showing and verifying the routing protocol is the show ip route command. The command should display the Routing Information Protocol routing table. We can also verify the Routing Information Protocol configuration from show startup-config and show running-config
When a Routing Information Protocol is configured on a Cisco router, by default it is running RIPv1 is display in the output of show ip protocol command, but, the router can only send RIPv1 messages, we can read both RIPv1 and RIPv2 messages. A RIPv1 router ignores the RIPv2 fields in the route entry. We can enable the RIPv2 using the version 2 command in router configuration mode as shown below.
- Router0(config-router)version 2
Now you can check and verify the version configuration using the show ip protocol command. The Routing Information Protocol process now also includes the subnet mask in all updates, making RIPv2 a classless routing protocol. We can again switch to the version using the below command:
- Router0(config-router)#no version 2
This command returns the router to the default setting of sending version 1 updates but listening for version 1 or version 2 updates.
RIPv2 automatically summarizes networks at major network boundaries by default, Just like RIPv1 so, we can modify the default RIPv2 behaviour using the following command:
- Router0(config-router)#no auto-summary
This command modifies the default RIPv2 behaviour of automatic summarization. In the case of using RIPv1, the command does not affect. After executing this command it should disable route summarization to their classful address at boundary routers.
RIPv2 now includes all subnets with their masks in its routing updates. The show ip protocols display and states that automatic network summarization is not in effect. It is important to enabling RIPv2 before automatic summarization is disabled.
RIP Passive Interface Configuration » Networkustad
August 27, 2019 @ 2:35 pm
[…] default, RIP sends its routing table updates on all interfaces on which RIP is enabled after every 30 seconds. […]
Propagate Default Route in RIP » Networkustad
August 29, 2019 @ 1:00 pm
[…] can advertise a default route using RIP. The route propagation is useful when there is a single exit point in the network to reach the […]
Advertising IPv6 Networks in RIPng » Networkustad
August 29, 2019 @ 3:53 pm
[…] Routing Information Protocol (RIP) also known as RIPng (RIP Next Generation) to support IPv6 addresses. It is a Distance Vector […]
December 19, 2019 @ 7:59 pm
I am a passionate reader and reaching you in context to something like this. I would like to do a contribution to your website by providing a guest post.
The guest post would surely be based on a great topic aligned with your reader’s interests. The content would be of high quality and will be plagiarism-free. However, in return would need a favor of backlink within the main body of the article.
Kindly let me know if I can interest you with some great topic ideas?
January 1, 2020 @ 11:11 am
sure you can contribute. send your writeup on my email. also, send me your blog address.
December 17, 2020 @ 10:23 am
Have you heard that messages that come through on your website contact form are in fact a great way to get more web traffic, sales, video views etc. for your online business? How exactly is this done? Simple, we craft an ad text like this one for your online business and we blast it out to hundreds of thousands contact pages on any website and in any business category or area you need. Does this work? You’re living proof that they do since you’re reading this message right now What’s more, this doesn’t cost more than a cup of coffee a day! Interested in more details? send an email to: [email protected]