RIP Configuration

Basic elements for configuration

Starting RIP can be done by using a very simple configuration. Example below illustrates a basic configuration setup with one network configured. Automatically, RIP will operate over all the interfaces where an IP address is defined, whose network address is included in the provided network prefix. Network addresses included in this prefix and defined on these interfaces will be advertised.

vrf main
    routing rip
      network 10.125.0.0/30
      ..
    ..
    commit

As mentioned in above config, RIP is activated, with providing network prefix. It is also possible to provide interface name. If an interface name is provided, RIP will then be activated on this interface and all IPv4 network prefixes defined on this interface will be advertised.

vrf main
    routing rip
      interface eth1_0

RIP can be stopped by using following command:

vrf main
    del routing rip
    commit

Alternatively, it is also possible to just disable RIP without having to remove the whole configuration.

vrf main
    routing rip enabled false
    commit

Currently, only one RIP instance is supported for the whole Virtual Service Router. However, it is possible to store the configuration and set it to false. Below example illustrates that only rip instance from VRF vrf1 is available on the Virtual Service Router.

vrf main
    routing rip enabled false
    routing rip network 1.2.3.0/24
    commit
    ..
    ..
vrf vrf1
    routing rip network 5.5.5.0/24
    commit
    ..
    ..

Verifying RIP configuration

The following commands can be used to verify RIP operation.

show rip

This command displays the RIB of the RIP protocol.

vsr> show rip
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.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 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 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 rip status

This command displays Virtual Service Router running state of RIP.

vsr> show 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 any version
  Interface      Send Recv Key-chain
   eth0_0        2    1 2
   eth1_0        2    1 2
  Routing for Networks:
   10.1.1.0/28
   192.168.2.0/24
   eth1_0
  Routing Information Sources:
   Gateway       BadPackets BadRoutes Distance Last Update
   10.125.0.2            0         0      120   00:00:07
  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.