RIP is a widely deployed interior gateway protocol. RIP was developed in the 1970s at Xerox Labs as part of the XNS routing protocol. RIP is a distance-vector protocol and is based on the Bellman-Ford algorithms. As a distance-vector protocol, RIP router send updates to its neighbors periodically, thus allowing the convergence to a known topology. In each update, the distance to any given network will be broadcast to its neighboring router.
Supported versions of RIP are:
This command change the distance value of RIP. The distance range is 1 to 255.
Routes with a distance of 255 are effectively disabled and not installed into the kernel.
outthis is the direction in which the access lists are applied.
outthis is the direction in which the prefix lists are applied.
redistribute connected. To modify connected routes metric value, please use
redistribute connected metric.
Operational Mode Commands¶
Codes: R - RIP, C - connected, S - Static, O - OSPF, B - BGP Sub-codes: (n) - normal, (s) - static, (d) - default, (r) - redistribute, (i) - interface Network Next Hop Metric From Tag Time C(i) 10.0.12.0/24 0.0.0.0 1 self 0 C(i) 10.0.13.0/24 0.0.0.0 1 self 0 R(n) 10.0.23.0/24 10.0.12.2 2 10.0.12.2 0 02:53
Routing Protocol is "rip" Sending updates every 30 seconds with +/-50%, next due in 11 seconds Timeout after 180 seconds, garbage collect after 120 seconds Outgoing update filter list for all interface is not set Incoming update filter list for all interface is not set Default redistribution metric is 1 Redistributing: Default version control: send version 2, receive any version Interface Send Recv Key-chain eth0 2 1 2 eth2 2 1 2 Routing for Networks: 10.0.12.0/24 eth0 Routing Information Sources: Gateway BadPackets BadRoutes Distance Last Update 10.0.12.2 0 0 120 00:00:11 Distance: (default is 120)
Simple RIP configuration using 2 nodes and redistributing connected interfaces.
set interfaces loopback address 10.1.1.1/32 set protocols rip network 192.168.0.0/24 set protocols rip redistribute connected
set interfaces loopback address 10.2.2.2/32 set protocols rip network 192.168.0.0/24 set protocols rip redistribute connected