Table of Contents
RIP Configuration Procedures
RIP Basic Configuration
There are two basic configuration steps for RIP:
- Activate RIP routing process
- Enable RIP on the interface
To activate RIP routing process, use the following command in global configuration mode
Then, to enable RIP on the interface, use the following command in RIP configuration mode.
<network-address> : Classfull Network address
Note that RIP is enabled on a per-interface basis, but the configuration does not specify the interface. In Cisco routers, the concept of configuration is to enable RIP on interfaces with IP addresses in the range included in the network address specified by the network command. Also, the network address you specify is a classful network address. In classless addressing environments, such as subnetting or summarization, it may not be possible to specify in detail which interfaces to enable RIP on.
An interface with RIP enabled will perform the following behavior.
- Send and receive RIP packets on the interface
- Register the network address of the enabled interface as a RIP route in the RIP database.
RIP packets are periodically sent as broadcast or multicast from the RIP enabled interface. Then it receives the RIP packets. To receive multicast packets for RIPv2, the interface joins the multicast group of 188.8.131.52.
In addition, the network address of the RIP-enabled interface is registered in the RIP database as a RIP route so that it can be advertised to other routers. The route information advertised by RIP is not the contents of the routing table, but the route information in the RIP database. An example of the RIP configuration is shown below.
“network 10.0.0.0” is a command to enable RIP on an interface with an IP address beginning with “10”. In other words, enable RIP on Fa0/1. Can only be specified in classful. If you enter the command “network 10.1.1.0”, it will automatically be replaced by “network 10.0.0.0”.
Then, register Fa0/1’s network address “10.1.1.0/24” in the RIP database. RIP packets sent from the interface will now include the route information of 10.1.1.0/24.
And “network 192.168.1.0” is the command to enable RIP on the interface with IP address starting with “192.168.1”, i.e. Fa0/0. The network address “192.168.1.0/24” of Fa0/0 will be registered in the RIP database, and the route information of the RIP packets to be sent will include 192.168.1.0/24.
Configure RIP version
There are two versions of RIP: v1 and v2. When RIP is enabled with the network command, the default RIP version for that interface is as follows
Send : v1
Receive : v1/v2
Since the version of RIP packets to be sent is v1, the default is to operate with v1. To change the version, use the following command in RIP configuration mode.
It is unlikely that you would dare to use RIPv1, so you should always consider this configuration to be included.
RIP automatically summarize and advertises route information by default. To disable auto summary, use the following command in RIP configuration mode.
It is also unlikely that you will use auto-summary, so consider including the no auto-summary command.
auto-summary is explained in the following article.
To disable split-horizon, use the following command in interface configuration mode.
(config-if)#no ip split-horizon
<interface-name> : interface name
Split-horizon is explained in the following article.
RIP packets only need to be sent and received between RIP routers; there is no need to send RIP packets to hosts such as PCs or servers. Specify passive-interface for interfaces that do not need to send RIP packets.
<interface> : interface name to be a passive-interface
For more information about passive-interface, please see the following article.
Change RIP timers
To change the value of the RIP timer from the default, use the following command in the RIP routing process
(config-router)#timers basic <update> <invalid> <holddown> <flush>
<update> : Update timer
<invalid> : Invalid timer
<holddown> : Hold down timer
<flush> : Flush timer
If you change the timer on only one router, it will be inconsistent with the timer values on other routers. Please change the timer on all the related routers.
The RIP timer is explained in the following article.
Verify RIP behavior
The following table summarizes the commands for verifying the behavior of RIP.
|#show ip portocols||Displays information such as RIP enabled interfaces and RIP timers.|
|#show ip rip database||Displays the RIP route information to be sent and received.|
|#show ip route rip||Displays only RIP routes in the routing table.|
|#debug ip rip||Real-time verification of RIP route information being sent and received.|
Please also see the following article for an example of configuring RIP on a Cisco router.
- Router – The central device that performs routing
- Dividing Network with router
- Layer3 Switch Overview
- Measuring the distance to the destination network -Administrative Distance and Metric
- Equal Cost Multi Path Load Balancing
- Cisco Static Route Configuration
- Example of Cisco Static Route Configuration Step by Step
- RIP Split horizon
- RIP Timers
- RIP Route Poisoning – Quickly remove unnecessary route information
- Cisco RIP Basic Configuration and Verification Commands
- Cisco RIP Configuration Example
- Generating a default route in RIP – Redistribution of static route
- Passive-Interface ~Stops Routing Protocols from Sending Packets
- Default Gateway Redundancy Overview
- How the Cisco HSRP works
- Configuring and Verifying Cisco HSRP
- How VRRP works
- Configuring and Verifying commands for VRRP [Cisco]