Cisco RIPv2 Dynamic Routing Configuration
Learn how RIPv2 advertises classless routes, calculates hop-count metrics across multi-hop paths, and uses passive interfaces on Cisco routers.
In early network deployments, connecting remote branch offices relied heavily on manual static routes. Network administrators typed static ip route statements into every branch router. For two or three sites, this manual approach functioned adequately.
However, static routing collapses when networks expand. As companies add new departments and redundant WAN links, managing dozens of routing tables becomes an operational burden prone to human typos. Worse, static routes are blind to topology breaks: if a transit link fails, static routers continue dumping packets down the dead link, creating a silent black hole.
Modern enterprises need routers to discover pathways automatically, advertise reachable subnets to neighbors, and update routing tables in real time. This dynamic behavior is where distance-vector routing protocols like the Routing Information Protocol version 2 (RIPv2) originate.
Figure 1. Distance-Vector Metric Progression: Hop-Count Increment Across Multi-Router Paths
Distance-Vector Mechanics: The Bellman-Ford Algorithm
RIP operates on the Bellman-Ford distance-vector algorithm. Rather than compiling a global topology map of the whole enterprise, each router tracks only two pieces of information:
- Distance (Metric): How far away the destination network is, measured purely in router hops.
- Vector (Next-Hop): Which neighboring router interface to send traffic toward.
Every 30 seconds, routers broadcast their entire routing database to adjacent neighbors using multicast address 224.0.0.9 over UDP port 520. Because infinite loops could circulate packets forever during link flaps, RIP caps valid metrics at 15 hops. Any destination metric reaching 16 hops is marked unreachable and flushed.
Transit WAN & Branch LAN Addressing Plan
Our multi-branch lab topology connects Branch 1 and Branch 2 across a central HQ Core transit router using dedicated point-to-point subnets:
| Device | Interface | IP Address | Subnet Role & Connection |
|---|---|---|---|
| R1-Branch1 | Gi0/0 | 10.1.1.1/30 | Point-to-Point WAN Link to R2-HQCore |
| R1-Branch1 | Gi0/1 | 192.168.10.1/24 | Branch 1 LAN Gateway (Passive Interface) |
| R2-HQCore | Gi0/0, Gi0/1 | 10.1.1.2/30, 10.2.2.1/30 | Central Transit Core Backbone |
| R3-Branch2 | Gi0/0 | 10.2.2.2/30 | Point-to-Point WAN Link to R2-HQCore |
| R3-Branch2 | Gi0/1 | 192.168.20.1/24 | Branch 2 LAN Gateway (Passive Interface) |
| PC-Branch1 | Fa0 | 192.168.10.10/24 | Host Workstation (Gateway: 192.168.10.1) |
| PC-Branch2 | Fa0 | 192.168.20.10/24 | Host Workstation (Gateway: 192.168.20.1) |
Figure 2. Passive Interface Confinement and End-to-End Inter-Branch Packet Delivery
Step-by-Step Hands-On Routing Walkthrough
Enable RIPv2 with Classless VLSM Support on R1
Activate the RIP process on R1-Branch1, enforce version 2, disable classful summarization with no auto-summary, and silence routing updates toward local workstations:
Configure Transit Routing on Central Core Router R2
Configure matching RIPv2 settings on R2-HQCore so it can relay routing advertisements between both transit links:
Complete Routing Topology on R3-Branch2
Enable RIPv2 on R3-Branch2, advertise the WAN and LAN subnets, and set the LAN interface to passive:
Inspect Routing Table Metrics & Verify 2-Hop Reachability
Inspect the learned routing table on R1-Branch1. Confirm that remote subnet 192.168.20.0/24 displays an administrative distance of 120 and a metric of 2 hops ([120/2]). Finally, send an ICMP stream from PC-Branch1:
- Distance-Vector Simplicity: Routers exchange periodic updates every 30 seconds using multicast address
224.0.0.9. - Hop-Count Limit: Path distance is measured solely in hops. Valid paths must remain at or below 15 hops; 16 hops indicates an unreachable network.
- Classless Subnet Preservation: Entering
no auto-summarystops classful summarization, allowing modern VLSM and CIDR prefixes to advertise properly. - Passive Interface Optimization: Silencing routing advertisements on user-facing LAN ports protects local bandwidth and prevents endpoint workstations from receiving unnecessary route tables.
Discussion & Community Notes
Ask questions, share configuration solutions, or discuss this practice lab.
