RIP states

show routing ip rip

This command displays the RIB of the RIP protocol.

router{}show routing ip rip
Codes: R - RIP, C - connected, S - Static, O - OSPF, B - BGP
       D - DEP
Sub-codes:
(n) - normal, (s) - static, (d) - default, (r) - redistribute,
(i) - interface

     Network         Next Hop   Metric  From      Tag   Time
R(s) 1.2.2.0/24      0.0.0.0         1  self        0
C(i) 10.1.1.0/28     0.0.0.0         1  self        0
C(i) 192.168.1.0/24  0.0.0.0         1  self        0
R(n) 192.168.2.0/24  10.1.1.2        2  10.1.1.2    0   02:36
R(n) 192.168.3.0/24  10.1.1.3        2  10.1.1.3    0   02:29

The display of show routing ip rip is composed of 7 columns, and describes the RIB of the RIP routing protocol:

Code
describes the RIB source, the differents codes are explained in the beginning of the output of show routing ip rip command
Network
describes the learnt prefix (Destination prefix) with its subnet mask
Next Hop
indicates the next hop to this destination (0.0.0.0 means itself).
Metric
indicates the hop count to the destination prefix
From
indicates the router that advertises the destination prefix
Tag
this tag normally should be set to 0
Time
the validity time. By default, it is set to 3 minutes when a RIP route is received.

show routing ip rip status

This command displays Turbo IPsec running state of RIP.

router{}show routing ip rip status
Routing Protocol is "rip"
Sending updates every 30 seconds with +/-50%, next due in 18 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 1
Default redistribution metric is 1
Redistributing:
Default version control: send version 2, receive version 2
Interface Send Recv Key-chain
eth0_0 2 2
eth1_0 2 2
Routing for Networks:
10.1.1.0/28
192.168.2.0/24
Routing Information Sources:
Gateway BadPackets BadRoutes Distance Last Update
10.1.1.3 0 0 120 00:00:07
10.1.1.1 0 0 120 00:00:21
Distance: (default is 120)

This command gives the following information about RIP:

  • The interfaces on which RIP has subscribed to the multicast group
  • RIP timers
  • Access-lists configured
  • Redistribution configured
  • RIP version configured (version 2 is the default)
  • Interfaces participing in RIP updates (or RIP multicast group).
  • Routing sources
  • Gateways (in this case they are the RIP neighbors)
  • Administrative distance

See also

See the corresponding RIP options described in this document.

show routing ip route [rip]

This command displays Turbo IPsec FIB that can have some entries from the RIB of RIP.

router{}show routing ip route
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
       B - BGP, D - DEP, > - selected route, * - FIB route

C>* 10.1.1.0/28 is directly connected, eth0_0
C>* 10.16.0.0/24 is directly connected, eth1_0
C>* 127.0.0.0/8 is directly connected, lo0
C>* 192.168.1.0/24 is directly connected, eth1_0
R>* 192.168.2.0/24 [120/2] via 10.1.1.2, eth0_0, 17:21:48
R>* 192.168.3.0/24 [120/2] via 10.1.1.3, eth0_0, 1d00h47m

There are 6 columns in the display of show routing ip route command

  • in the far left indicates the source of the routing table entry. The codes are indicated in the beginning of the display. When a code is followed by * it means that this routes is also a FIB route.
  • indication of the destination prefix with its subnet mask
  • indicates the administrative distance and the metric of the used dynamic routing protocol. In the example above R>* 192.168.3.0/24 [120/2] via 10.1.1.3, eth0_0, 1d00h47m Indicates that to reach the prefix 192.168.3.0/24, we are using a route acquired by the RIP protocol, which has an administrative distance of 120, and we are using a metric 2.
  • indicates the next hop
  • indicates the local interface to which packet is switched on
  • indicates the age of the route

We can also ask to only display the RIP routes of the FIB table, by typing show routing ip route rip.

router{}show routing ip route rip
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
       B - BGP, D - DEP, > - selected route, * - FIB route

R>* 192.168.2.0/24 [120/2] via 10.1.1.2, eth0_0, 17:21:54
R>* 192.168.3.0/24 [120/2] via 10.1.1.3, eth0_0, 1d00h47m

You can display a specific entry for a given prefix in the FIB by specifying this prefix in the show routing ip route A.B.C.D/M command:

router{}show routing ip route 192.168.2.128/25
Known via "rip", distance 120, metric 2, best
Last update 1d01h30m ago
* 10.1.1.3, via eth0_0