NextGen Sarkari

Study material for government exam preparation across Punjab and India.

Home/Study Material/Networking & Technical/RIP Version 2 Complete Guide
Routing study guide

RIP Version 2 Complete Guide

Routing Information Protocol version 2 (RIPv2) is a simple distance-vector interior routing protocol. It is valuable for exams because its operation clearly demonstrates hop-count metrics, periodic advertisements and classic loop-prevention mechanisms, even though larger modern networks usually use more scalable protocols.

RoutingBeginner25 min readUpdated 2026-08-06

How RIPv2 works

RIPv2 routers advertise their known routes to neighbours using UDP port 520. The metric is hop count: a directly reachable network has a low hop count, and each advertising router increments the metric. A metric of 16 represents infinity, so valid routes cannot exceed 15 hops.

FeatureRIPv2 behaviour
AlgorithmDistance vector based on Bellman-Ford principles.
MetricHop count only; bandwidth and delay are not considered.
TransportUDP port 520 for IPv4 RIP.
UpdatesPeriodic full routing advertisements, plus triggered updates after changes.
AddressingClassless; carries subnet masks and supports VLSM/CIDR.
MulticastNormally sends updates to 224.0.0.9.

RIPv2 message fields and route information

RIP uses request and response messages. A response contains one or more route entries with address-family identifier, route tag, IPv4 prefix, subnet mask, next hop and metric. The route tag can preserve limited information about an external routing source during redistribution.

RIPv2 improved on RIPv1 by carrying subnet masks, supporting authentication and using multicast rather than broadcast by default. Authentication mechanisms and their security strength depend on implementation; old plain-text methods should not be treated as strong protection.

Timers and convergence

TimerCommon Cisco defaultPurpose
Update30 secondsInterval between regular routing advertisements.
Invalid180 secondsMarks a route invalid when updates stop.
Holddown180 secondsHelps suppress unstable or contradictory updates.
Flush240 secondsRemoves an invalid route from the routing table.

These values are common implementation defaults rather than universal requirements. Slow timer-driven convergence is a major reason RIP is unsuitable for large or highly available networks.

Loop-prevention mechanisms

  • Split horizon: do not advertise a route back through the interface from which it was learned.
  • Route poisoning: advertise a failed route with metric 16.
  • Poison reverse: explicitly advertise a route back to its source with an infinite metric.
  • Triggered update: send changed information without waiting for the next regular interval.
  • Holddown: temporarily reject certain unstable information after failure.
Exam point: These mechanisms reduce routing loops and count-to-infinity behaviour, but they do not make RIP converge as quickly as a modern link-state protocol.

Configuration and verification

Cisco IOS-style RIPv2 example
router rip
 version 2
 no auto-summary
 network 10.0.0.0
 passive-interface default
 no passive-interface GigabitEthernet0/0
Verification
show ip protocols
show ip route rip
show ip rip database
show interfaces
debug ip rip

Use debug commands carefully on production equipment. Prefer counters, packet capture and filtered logging when debug volume could affect the device.

Troubleshooting checklist

  1. Confirm interfaces and IP subnets are operational.
  2. Verify RIPv2 is enabled for the correct major networks.
  3. Check passive-interface settings and UDP 520 filtering.
  4. Confirm route masks and disable unwanted classful auto-summary where applicable.
  5. Inspect metric 16 routes, timer expiry and route filtering.
  6. Check whether a better route from another source wins due to administrative distance.
  7. Validate redistribution and default-route origination.

Interview focus

Use these points to practise concise, operations-focused answers. Explain the concept first, then give a verification or troubleshooting example.

  • What metric does RIP use? Hop count.
  • What does hop count 16 mean? The destination is unreachable.
  • Why is RIPv2 called classless? It includes subnet masks in route advertisements and supports VLSM/CIDR.
  • Which UDP port does IPv4 RIP use? UDP 520.
  • What is split horizon? A router does not advertise a learned route back out the interface on which it was learned.

Quick self-check

1. What metric does RIP use?
Answer: Hop count.
2. What does hop count 16 mean?
Answer: The destination is unreachable.
3. Why is RIPv2 called classless?
Answer: It includes subnet masks in route advertisements and supports VLSM/CIDR.
4. Which UDP port does IPv4 RIP use?
Answer: UDP 520.
5. What is split horizon?
Answer: A router does not advertise a learned route back out the interface on which it was learned.

Frequently asked questions

1. Is RIP suitable for a large enterprise network?
Answer: Usually no. The 15-hop limit and relatively slow convergence make it a poor fit for large or highly available environments.
2. What is the main difference between RIPv1 and RIPv2?
Answer: RIPv2 carries subnet masks, supports classless routing, multicast updates and authentication fields.
3. Does RIP select the fastest-bandwidth path?
Answer: No. It chooses the path with the lowest hop count.

Standards and further reading

Editorial note: Standards explain protocol behaviour, while commands and defaults can differ by vendor, platform and software release. Verify production changes against current vendor documentation.

Continue learning