Skip to content

RIPv2

RIPv2 is modelled as a deterministic distance-vector routing protocol for IPv4 training scenarios. It is intentionally small and transparent: the important outcome is which hop-count routes appear in the RIB.

AreaLevelNotes
RIPv2 routingSupportedPeriodic updates between neighbours; routes enter the RIB at distance 120.
Hop-count metricSupportedLower hop count wins; infinity is treated as unreachable.
Network statementsSupportedCisco-style classful selection: network 10.0.0.0 means 10.0.0.0/8. Secondary subnets the statement covers are announced; RIP peers over primaries only (no ip split-horizon sourcing from a secondary is not modelled).
Passive interfacesSupportedSuppresses updates on selected interfaces.
Packet timingSupportedThe full table every 30 s, and at once to a new neighbour. Triggered updates within 1 s carry only the changed routes. On the wire in a capture (Packet Lens), decoded by Wireshark.
Route timersSupportedA route not refreshed for 180 s goes to metric 16. It is still advertised at 16 and deleted 120 s later.
Port downSupportedA port going down marks its neighbour’s routes unreachable at once. A shutdown port’s network is withdrawn at metric 16 and returns on no shutdown.
Split horizon / poison reverseSupportedA route is not sent back where it was learned; poison reverse sends it at metric 16.
AuthenticationSupportedip rip authentication key-chain: a key mismatch stops route exchange.
StandardCoverageNotes
RFC 2453SupportedRIPv2 updates, triggered updates (section 3.10.1), route timeout and garbage collection (section 3.8), split horizon, hop-count routing.
FeatureStatusNotes
router ripSupportedEnables RIP process.
version 2SupportedRIPv2 config surface.
network <network>SupportedInterface participation.
passive-interfaceSupportedStops sending updates from the interface.
no auto-summaryNo effectAccepted; the model makes no classful summary.
ip rip authentication key-chain NAMESupportedAuthentication key from a key chain.
Route installationSupportedRIP routes enter the IPv4 RIB with protocol distance.
CommandIOS-styleJunos-styleVyOS-styleNotes
router ripSupportedSupportedNot modelledCanonical RIP process. Junos: set protocols rip group G neighbor IF turns RIP on for the device. NX-OS: router rip TAG and ip router rip TAG on the port.
version 2Supportedn/aNot modelledRIPv2 mode.
network 10.0.0.0Supportedn/aNot modelledInterface selection.
show ip route ripSupportedPartialPartialRIP-learned routes.
show ip rip databaseSupportedn/an/aRIP database. A route in garbage collection shows as possibly down, [16] via … with its age.

The model avoids probabilistic update races. Given the same topology, the same RIP routes and hop counts appear every run.

A change is announced by a triggered update within 1 s, carrying only the changed routes. The full table still goes out every 30 s. A received update merges into what the router already holds. A route nobody refreshes times out at 180 s, is advertised at metric 16, and is deleted 120 s later. An uncabled stub port that is not shutdown is still announced.

Canonical example
configure terminal
router rip
version 2
no auto-summary
network 10.0.0.0
end
show ip route rip

Vendor styles

IOS-style
router rip
version 2
no auto-summary
network 10.0.0.0
Junos-style
set protocols rip group CORE neighbor ge-0/0/0.0

The timers are fixed: 30 s updates, 180 s timeout, 120 s garbage collection, and triggered updates at most once per second. timers basic and per-vendor timer quirks are not modelled. redistribute and default-information originate under router rip are not read. VyOS has no RIP grammar here.