Configuring RIP: classful RIPv1 and classless RIPv2
Sign in to read this lesson
RIP is configured with router rip and network; show ip route rip shows the RIP entries. In an R entry, [120/1] is the AD and the hop count, followed by the next hop, a timer and the outgoing interface. The default RIP version 1 is classful: the 172.16.1.0 /24 and 172.16.2.0 /24 subnets are advertised as 172.16.0.0, Hearts load-balances over two next hops, and because of split horizon Spade and Clubs don't learn each other's subnet. With version 2 and no auto-summary RIP becomes classless and sends the subnet mask. show ip protocols and debug ip rip are for verification.
What you will learn
- Configuration:
router rip, then anetworkcommand for each network to advertise. Verify withshow ip route rip. R 192.168.23.0/24 [120/1] via 192.168.12.2, 00:00:16, FastEthernet1/0: R = RIP, 120 = administrative distance, 1 = hop count, via = next hop, then the time since the last update and the outgoing interface.- The default RIP version 1 is classful: it sends no subnet mask. 172.16.1.0 /24 and 172.16.2.0 /24 are both advertised as 172.16.0.0; Hearts load-balances between two sources with the same metric, and a packet can go the wrong way and be dropped.
- Because of split horizon, Hearts doesn't advertise 172.16.0.0 back to Spade and Clubs, so they don't learn each other's subnet. The fix: a classless protocol.
version 2+no auto-summary: RIPv2 is classless, sends the subnet mask, and everyone learns every subnet. Useful commands:show ip protocols,debug ip rip(RIPv2 sends its updates to 224.0.0.9).
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.