RIP stands for Routing Information Protocol. RIP is an intra-domain routing protocol used within an autonomous system. Here, intra-domain means routing the packets in a defined domain, for example, web browsing within an institutional area. To understand the RIP protocol, our main focus is to know the structure of the packet, how many fields it contains, and how these fields determine the routing table.

  • Routing Information Protocol (RIP) is a true distance-vector routing protocol.
  • It sends the complete routing table out to all active interfaces every 30 seconds
  • RIP only uses hop count to determine the best way to a remote network
  • It has a maximum allowable hop count of 15
  • The administrative Distance is 120
  • Bellman-ford algorithm
  • Works well in small networks, but it’s inefficient on large networks
  • RIP version 1 uses only Classful routing, which means that all devices in the network must use the same subnet mask
  • RIP version 2 does send subnet mask information with the route updates. This is called classless routing.

Features of RIP 

  • Updates of the network are exchanged periodically. 
  • Updates (routing information) are always broadcast. 
  • Full routing tables are sent in updates. 
  • Routers always trust routing information received from neighbor routers. This is also known as Routing on rumors.

Versions of RIP:

  1. Rip V1
  2. RIP V2

Difference between RIP V1 and V2:

PARAMETERRIP v1RIP v2
RFCRFC 1058RFC 1721,1722 and 2453
RoutingClassfulClassless
Routing update addressBroadcast (255.255.255.255)Multicast (224.0.0.9)
Subnet maskDoes not send subnet mask information with routing updateSends subnet mask information with routing update
VLSMNot SupportedSupported
CIDRNot SupportedSupported
AuthenticationNot SupportedSupported
Discontiguous networkNot SupportedSupported

How to Configure Routing Information Protocol

Enabling RIP and Configuring RIP Parameters

StepsCommand or ActionPurpose
Step 1enable
Example: Device# enable
Enables privileged EXEC mode.
> Enter your password if prompted.
Step 2configure terminal
Example: Device# configure terminal
Enters global configuration mode.
Step 3router rip
Example: Device(config)# router rip
Enables a RIProuting process and enters the router
configuration mode.
Step 4network ip-address
Example: Device(config-router)# network 10.1.1.0
Associates a network with a RIP routing
process.
Step 5neighbor ip-address
Example: Device(config-router)# neighbor 10.1.1.2
Defines a neighboring device with which to
exchange routing information.
Step 6auto-summary
Example: Device(config-router)# auto-summary
Restores the default behavior of automatic summarization
of subnet routes into network-level routes.
Step 7offset-list [access-list-number |
access-list-name] {in | out} offset
[interface-type interface-number]

Example: Device(config-router)# offset-list 98
in 1 Ethernet 1/0
(Optional) Applies an offset list to routing
metrics
Step 8timers basic update invalid holddown flush [sleeptime]
Example: Device(config-router)# timers basic 1 2 3 4
(Optional) Adjusts routing protocol timers.
Step 9maximum-paths maximum
Example: Device(config-router)# maximum-paths 16
Configures the maximum number of equal-cost
parallel routes that RIP will install into the
routing table.
Step 10distance admin-distance [prefix prefix-length
| prefix-mask ]

Example: Device(config-router)# distance 85 192.168.10.0/24
Defines the administrative distance assigned
to routes discovered by RIP.
Step 11end
Example: Device(config-router)# end
Exits router configuration mode and returns to
privileged EXEC mode.

RIP timers:  

  • Update timer: The default timing for routing information being exchanged by the routers operating RIP is 30 seconds. Using an Update timer, the routers exchange their routing table periodically.
  • Invalid timer: If no update comes until 180 seconds, then the destination router considers it invalid. In this scenario, the destination router mark hop counts as 16 for that router.
  • Hold down timer: This is the time for which the router waits for a neighbor router to respond. If the router isn’t able to respond within a given time then it is declared dead. It is 180 seconds by default.
  • Flush time: It is the time after which the entry of the route will be flushed if it doesn’t respond within the flush time. It is 60 seconds by default. This timer starts after the route has been declared invalid and after 60 seconds i.e time will be 180 + 60 = 240 seconds.

Leave a Reply