RIP Configuration and Advanced Concepts
Routing Information Protocol (RIP) is one of the earliest distance-vector routing protocols, designed for simplicity and ease of deployment in small to medium-sized networks. While rarely used in modern large-scale networks, RIP remains foundational for understanding routing protocol behavior and concepts.
Introduction to RIP
- Definition: RIP is a distance-vector protocol using hop count as its metric. Maximum allowed hops is 15.
- History: First standardized in the 1980s (RFC 1058 for RIP v1).
- Use Case: Best suited for simple, flat networks where ease of configuration outweighs scalability or speed.
RIP Versions: v1 vs. v2
Feature | RIP v1 | RIP v2 |
---|---|---|
Classful | Yes (no subnet info) | No (supports subnet info) |
Routing Updates | Broadcast (255.255.255.255) | Multicast (224.0.0.9) |
Authentication | Not supported | Supported (plain/MD5) |
VLSM/CIDR | Not supported | Supported |
Metric | Hop count | Hop count |
Basic RIP Configuration
-
Enabling RIP on Routers:
Router(config)# router rip
-
Configuring Network Statements:
Router(config-router)# network 10.0.0.0Use a separate network command for each directly connected network.
Router(config-router)# network 192.168.1.0 -
Enabling RIP Version 2 (Recommended):
Router(config-router)# version 2Use v2 for classless routing and authentication support.
RIP Timers and Operation
Timer | Default Value | Purpose |
---|---|---|
Update | 30 sec | Sends routing updates periodically |
Invalid | 180 sec | Route becomes invalid if not updated |
Hold-down | 180 sec | Suppresses route changes to stabilize routing |
Flush | 240 sec | Removes stale routes from the table |
Impact: Shorter timers provide faster convergence but increase routing traffic.
RIP Metrics
- Hop Count: Each router traversed counts as 1 hop. Max allowed is 15. At 16, the route is considered unreachable.
Example:
PC → Router1 → Router2 → Router3 → Router4 → Server
Hop count = 4
RIP Authentication
Plain-Text Authentication:
Router(config-if)# ip rip authentication key-chain MYCHAIN
MD5 Authentication (recommended):
Router(config-if)# ip rip authentication key-chain MYCHAIN
Create the Key Chain:
Router(config-keychain)# key 1
Router(config-keychain-key)# key-string MySecret
Why? Authentication prevents unauthorized devices from injecting bogus RIP routes.
Route Summarization in RIP
- Auto-Summarization (Default): RIP automatically summarizes at major network boundaries. Can cause issues with discontiguous subnets.
-
Manual Summarization:
Router(config-if)# ip summary-address rip 10.0.0.0 255.0.0.0Reduces routing table size and prevents route flapping.
RIP Version Differences
- Classful vs. Classless: RIP v1 is classful (no VLSM/CIDR), RIP v2 is classless.
- Multicast Updates: v2 uses 224.0.0.9, which reduces unnecessary traffic for non-RIP hosts.
Split Horizon and Poison Reverse
- Split Horizon: Prevents a router from advertising a route back out the interface it learned it from.
- Poison Reverse: Advertises a failed route with a hop count of 16 (unreachable).
-
Disabling Split Horizon: Sometimes required in hub-and-spoke designs.
Router(config-if)# no ip split-horizon
RIP Timers Tuning
You can adjust timers for faster convergence.
RIPng (RIP Next Generation for IPv6)
Purpose: RIP version for IPv6 networks.
Router(config-if)# ipv6 rip MYRIP enable
Difference: RIPng uses interface configuration (no network statements) and operates with IPv6 addresses.
RIP Limitations and Alternatives
- Scalability: Not suitable for large/complex networks
- Slow Convergence: Compared to EIGRP/OSPF
- Hop Count Limit: Maximum of 15
- Alternatives: Use EIGRP or OSPF for robust, large-scale networks
Troubleshooting RIP
Show Commands:
show ip protocols
show running-config
- Mismatched versions (v1/v2)
- Passive interfaces not sending updates
- Authentication mismatch
Redistribution with RIP
To share routes between RIP and other protocols:
Advanced RIP Features
- Triggered Updates: Sends immediate update upon topology change.
- Passive Interfaces: Prevents RIP from sending updates out specific interfaces.
Router(config-router)# passive-interface GigabitEthernet0/1
Summary Table: Key RIP Commands
Purpose | Command Example |
---|---|
Start RIP | router rip |
Network statements | network 192.168.1.0 |
Enable v2 | version 2 |
Manual summarization | ip summary-address rip 10.0.0.0 255.0.0.0 |
Authentication | ip rip authentication mode md5 |
Timers tuning | timers basic 10 60 60 120 |
Passive interface | passive-interface G0/1 |
Show routes | show ip route |
Debug | debug ip rip |
Exam Tips
- Know the differences between RIP v1 and v2.
- Understand timer impacts and split horizon.
- Be able to configure and verify authentication.
- Recognize when RIP is not appropriate (large, complex topologies).