• Post author:Bhaskar Soni
  • Post published:
  • Post category:Networking
  • Post comments:0 Comments
  • Reading time:3 mins read

The Routing Information Protocol (RIP) is one of the oldest dynamic routing protocols. It is simple to configure and easy to understand, which makes it a classic topic in networking courses. In modern networks, however, OSPF and EIGRP have largely replaced it.

This guide explains how RIP works, its versions, timers and loop-prevention features, a Cisco configuration and when it still makes sense.

Routing Information Protocol

How RIP works

RIP is a distance vector protocol. Each router tells its neighbours which networks it can reach and how far away they are. The metric is hop count: the number of routers between the source and the destination.

  • The maximum valid hop count is 15.
  • A hop count of 16 means “unreachable”.

Because of this limit, RIP only suits small networks. In addition, hop count ignores bandwidth, so RIP may choose a slow two-hop path over a fast three-hop path.

RIP versions

FeatureRIPv1RIPv2RIPng
IP versionIPv4IPv4IPv6
Classful or classlessClassful (no subnet masks)Classless (VLSM and CIDR)Classless
Updates sent toBroadcastMulticast 224.0.0.9Multicast FF02::9
AuthenticationNoYes (plain text or MD5)Relies on IPv6 security features
StandardRFC 1058RFC 2453RFC 2080

For transport, the protocol uses UDP port 520 for IPv4 (RIPng uses UDP 521), and its administrative distance on Cisco devices is 120.

Timers

TimerDefaultPurpose
Update30 secondsSends the full routing table to neighbours
Invalid180 secondsMarks a route invalid if no update arrives
Hold-down180 secondsIgnores less reliable updates for a recently failed route
Flush240 secondsRemoves the route from the table

Because the full table goes out every 30 seconds, RIP converges slowly and wastes bandwidth on large networks.

Preventing routing loops

Distance vector protocols can create loops when a route fails. RIP uses several techniques:

  • Split horizon: a router does not advertise a route back out of the interface it learned it from.
  • Route poisoning: a failed route is advertised with a metric of 16.
  • Poison reverse: a router advertises a poisoned route back to the sender.
  • Hold-down timers: stop flapping routes from bouncing back too quickly.
  • Triggered updates: changes go out immediately instead of waiting for the next update.

Cisco RIPv2 configuration

router rip
 version 2
 no auto-summary
 network 192.168.10.0
 network 10.0.0.0
 passive-interface GigabitEthernet0/1

The no auto-summary command stops summarisation at classful boundaries, and passive-interface stops updates on user-facing ports.

Verification

show ip protocols
show ip route rip
debug ip rip

Use debug only in a lab or carefully in production.

Should you use RIP today?

RIP still appears in small labs, some legacy networks and certain embedded devices. However, for new designs, choose OSPF for multi-vendor networks or EIGRP for Cisco-only networks. Both converge faster, scale better and use more meaningful metrics.

Related guides

Sources

Need help with network security? We test routers, firewalls, ACLs and segmentation as part of our VAPT services and hardening audits. Contact us for a quote.

Post author avatar

Bhaskar Soni

Bhaskar Soni is a Security Engineer and the founder of Youngster Company, based in Ahmedabad, Gujarat. He works hands-on with Linux server hardening, vulnerability assessment and penetration testing (VAPT), ISO 27001 compliance and OSINT investigations. He writes practical, tested guides for IT professionals and Indian businesses, and every article on this site is written or reviewed by him.

Leave a Reply