Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md


⬅️ Back to Table of Contents

Lab 08 - Dynamic Routing Protocol (RIP v2)

Topology

This lab introduces dynamic routing using RIP version 2.

A simple multi-router topology is used, where multiple routers are connected through different networks. RIP is configured to dynamically exchange routing information between routers.

📸 Screenshot:

Screenshot 2026-02-03 114248

Goal

  • Understand the purpose of dynamic routing protocols
  • Configure RIP version 2
  • Observe automatic route learning
  • Verify end-to-end connectivity using dynamic routing

Topology Design (PKT)

Devices

  • 3 Routers (R1, R2, R3)
  • PCs (optional, for connectivity testing)

Links

  • Point-to-point connections between routers
  • Each router connects to a unique LAN

IP Addressing Plan (Example)

Device Interface Network
R1 LAN 192.168.1.0/24
R1–R2 WAN 10.0.12.0/30
R2–R3 WAN 10.0.23.0/30
R3 LAN 192.168.3.0/24

Key Concepts

  • Static routing vs Dynamic routing

  • Distance Vector routing protocol

  • Hop count metric

    📸 Screenshot:

Screenshot 2026-02-03 104929 Screenshot 2026-02-03 104937

(On top: Configured the path on both links with bandwidth = 56kpbs

Screenshot 2026-02-03 104859 Screenshot 2026-02-03 104906 Screenshot 2026-02-03 104916

(At bottom: Configured the path on all links with bandwidth = 1000000 kpbs (1Gbps))

(And lets see how RIP transmitting packets based on Hop counts preffered than Bandwidth)

  • RIP limitations in full mesh Topology

    📸 Screenshot:

Screenshot 2026-02-03 114238
  • RIP v1 (with no VLSM support) vs RIP v2 (with VLSM suport)

Key Configuration

  • Configure IP addressing on all router interfaces
  • Enable RIP version 2
  • Advertise connected networks
  • Disable classful routing using no auto-summary

Example Configuration

Enable RIP v2

ROUTER(config)# router rip
ROUTER(config-router)# version 2
ROUTER(config-router)# no auto-summary
ROUTER(config-router)# network <network>

(Repeat network statements for all directly connected networks)


Verification

  • Verify RIP routes:
    • show ip route rip

📸 Screenshot:

Screenshot 2026-02-03 105048

Example random routers output

In this output, the notation [120/X] reveals RIP's simplistic routing logic:

[120/1]: The destination is 1 hop away. The packet reaches the target via one next-hop router.

[120/2]: The destination is 2 hops away. The packet must traverse two routers to reach the target.*

RIPv2 only counts the number of "stops" (routers) along the path, completely ignoring link speed or bandwidth.

  • Verify routing table:
    • show ip route
  • Verify RIP configuration:
    • show ip protocols
  • Test connectivity using ping between LANs

📸 Screenshot:

Screenshot 2026-02-03 105212 Screenshot 2026-02-03 105237

Host 1 can now reach Host 2 but:

Warning

  • RIPv2 is a Distance Vector protocol that uses a single, simplistic metric: Hop Count.
  • Metric Ignorance: RIPv2 does not understand "Bandwidth", "Delay," or "Link Speed". It only counts how many routers a packet must pass through.
  • The Comparison:
    • Path A Metric = 2 (R_HQR2R_BRANCH)
    • Path B Metric = 3 (R_HQR3R4R_BRANCH)
  • The Decision: Since 2 < 3, RIPv2 considers the 56kbps link as the "Best Path" and installs it in the routing table, completely ignoring the superior capacity of the longer route.

➡️ Key Takeaway: This lab demonstrates why RIPv2 is obsolete for modern, high-speed networks. It prioritizes the "shortest" path over the "fastest" path, leading to severe performance bottlenecks.


Shutdown Best Link

📸 Screenshot:

Screenshot 2026-02-03 105901

ICMP Packets go through Backup links

Caution

🛑 The "Cable Cut" Paradox: Shutdown vs. Physical Failure

In this lab, I tested two failure scenarios:

  • Software Shutdown: The router immediately poisons the route, and traffic failover happens in seconds. (But it is still not working efficiently in modern network with high scalability devices")

📸 Screenshot:

Screenshot 2026-02-03 110256
  • Physical Disconnect (CML Link Break): This revealed the fatal flaw of RIPv2. Because RIPv2 relies on periodic timers rather than active neighbor keepalives, the network suffered a 180-second outage. The neighbors kept forwarding traffic into the "broken" link because they were waiting for the Invalid Timer to expire.

📸 Screenshot:

Screenshot 2026-02-03 110640

Link still remains UP state

Screenshot 2026-02-03 105827

Taking 3 minutes to let the router decided to forwarding the packets through the backup links

This 3-minute downtime is unacceptable for modern business networks...

Warning

Can reduce router rip timers basic to lower the updates packet times, this lead to the router could decided forwarding the frame to the backup links as soon as possible, but again still not reliable if manually every routers in high scalability network.

📸 Screenshot:

Screenshot 2026-02-03 110353

(Updates each 5 secconds and confirm the links is broken in 15 secconds processing)

Screenshot 2026-02-03 111253

VLSM

Caution

The "Classful" Trap: Why no auto-summary is Mandatory

In this experiment, I tested RIPv2's behavior with Auto-Summary enabled. Because RIPv2 has "Classful" roots, it attempts to summarize subnets to their major network boundaries (Class A, B, or C) when advertising them across a different network.

➡️ The Result: When I assigned 172.16.1.0/24 to R1 and 172.16.2.0/24 to R3, both routers advertised the exact same 172.16.0.0/16 summary to the core. This created a Discontiguous Network conflict. The core router, receiving the same summary from two different directions, became confused—leading to unstable routing and broken connectivity.

📸 Screenshot:

Screenshot 2026-02-03 112538

Because RIPv2 summarized the specific /24 subnets (172.16.1.0 and 172.16.2.0) into a single Class B boundary (172.16.0.0/16), the core router assumed both paths led to the same destination. This created a routing conflict where the router performed equal-cost load balancing for a network that was actually split across different locations.

Screenshot 2026-02-03 112509

My ping tests returned "Destination Host Unreachable". The packets were being "black-holed" or sent to the wrong router half the time, proving that without the no auto-summary command, RIPv2 cannot effectively support VLSM or discontiguous networks.

Tip

The Fix: By issuing the no auto-summary command, I forced RIPv2 to include the specific subnet mask (VLSM) in its updates. This allows the protocol to function in a "Classless" manner, ensuring that specific subnets are recognized and routed correctly across the entire topology.


Caution

🛑 Full Mesh Topology: Redundancy or Chaos?

📸 Screenshot:

Screenshot 2026-02-03 113858 Screenshot 2026-02-03 113904

My final experiment with RIPv2 in a Full Mesh topology revealed its biggest weakness: Inefficiency. As seen in the debug logs, the periodic updates create constant CPU and bandwidth overhead. Furthermore, the routing table is now cluttered with multiple Equal-Cost Multi-Path (ECMP) entries because the protocol only sees "Hops", not speed or link quality.

A mesh this complex is too noisy for such a simple protocol. It's time to move on to more intelligent, event-driven routing...

Tip

That's why we are leaving the 90s behind and heading to OSPF and Security labs. 😉

➡️ Final Verdict on RIPv2: It is automated, yes. But it is noisy, slow to heal, and mathematically "shallow". It treats a world-class fiber optic link and a rusty copper wire exactly the same if they are both one hop away.


Result

  • Routers dynamically learn routes using RIP v2
  • Routing tables are updated automatically
  • End devices can communicate across different networks
  • Manual static routes are not required

Troubleshooting / Common Mistakes

  • Forgetting to enable RIP version 2
  • Missing no auto-summary
  • Incorrect network statements
  • Expecting RIP to scale in large networks
  • Forgetting that RIP uses hop count as its metric

Notes

Note

  • RIP is a distance-vector routing protocol that uses hop count as its metric.
  • The maximum hop count supported by RIP is 15, which limits its scalability.
  • Although RIP is rarely used in modern production networks, it is included in CCNA to help understand the fundamentals of dynamic routing protocols.
⬅️ Previous Lab 🏠 Main Menu Next Lab ➡️