Cisco RIPv2 Dynamic Routing Configuration

M. Ichsanul Fadhil•November 21, 2026•7 min read

Learn how RIPv2 advertises classless routes, calculates hop-count metrics across multi-hop paths, and uses passive interfaces on Cisco routers.

rip-protocol.simneta
Topology Preview

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.

Distance-Vector Hop-Count Metric Progression Across 3 Routers

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.
RIP Hop-Count Distance Rules
Directly Connected Interface → Metric 0 Hops
Traversing R2-HQCore Transit Link → Metric 1 Hop [120/1]
Traversing Remote Branch 2 Subnet → Metric 2 Hops [120/2]
Maximum Network Reach: 15 Hops | Metric 16 = Unreachable (Infinite Loop Drop)

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)
Passive Interface Confinement and End-to-End Inter-Branch Packet Delivery

Figure 2. Passive Interface Confinement and End-to-End Inter-Branch Packet Delivery

Step-by-Step Hands-On Routing Walkthrough

1

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 RIPv2 on R1-Branch1:
R1-Branch1(config)# router rip
R1-Branch1(config-router)# version 2
R1-Branch1(config-router)# no auto-summary
R1-Branch1(config-router)# network 10.0.0.0
R1-Branch1(config-router)# network 192.168.10.0
R1-Branch1(config-router)# passive-interface GigabitEthernet0/1
R1-Branch1(config-router)# exit
2

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:

# Configure RIPv2 on R2-HQCore:
R2-HQCore(config)# router rip
R2-HQCore(config-router)# version 2
R2-HQCore(config-router)# no auto-summary
R2-HQCore(config-router)# network 10.0.0.0
R2-HQCore(config-router)# exit
3

Complete Routing Topology on R3-Branch2

Enable RIPv2 on R3-Branch2, advertise the WAN and LAN subnets, and set the LAN interface to passive:

# Configure RIPv2 on R3-Branch2:
R3-Branch2(config)# router rip
R3-Branch2(config-router)# version 2
R3-Branch2(config-router)# no auto-summary
R3-Branch2(config-router)# network 10.0.0.0
R3-Branch2(config-router)# network 192.168.20.0
R3-Branch2(config-router)# passive-interface GigabitEthernet0/1
R3-Branch2(config-router)# exit
4

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:

# Verify routing table on R1-Branch1:
R1-Branch1# show ip route rip
R 10.2.2.0/30 [120/1] via 10.1.1.2, 00:00:14, GigabitEthernet0/0
R 192.168.20.0/24 [120/2] via 10.1.1.2, 00:00:14, GigabitEthernet0/0
# Test end-to-end ping from PC-Branch1:
PC-Branch1> ping 192.168.20.10
Pinging 192.168.20.10 with 32 bytes of data:
Reply from 192.168.20.10: bytes=32 time<1ms TTL=126
Reply from 192.168.20.10: bytes=32 time<1ms TTL=126
Reply from 192.168.20.10: bytes=32 time<1ms TTL=126
Reply from 192.168.20.10: bytes=32 time<1ms TTL=126
Ping statistics: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss)
Key Takeaways: Cisco RIPv2 Routing
  • 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-summary stops 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.

0 Comments
Posting as Guest • 1-level replies supported