router ripcommand is necessary to enable RIP. To disable RIP, use the
no router ripcommand. RIP must be enabled before carrying out any of the RIP commands.
RIP can be configured to process either Version 1 or Version 2 packets, the default mode is Version 2. If no version is specified, then the RIP daemon will default to Version 2. If RIP is set to Version 1, the setting "Version 1" will be displayed, but the setting "Version 2" will not be displayed whether or not Version 2 is set explicitly as the version of RIP being used. The version can be specified globally, and also on a per-interface basis (see below).
Set the RIP enable interface by network. The interfaces which have addresses matching with network are enabled.
This group of commands either enables or disables RIP interfaces between certain numbers of a specified network address. For example, if the network for 10.0.0.0/24 is RIP enabled, this would result in all the addresses from 10.0.0.0 to 10.0.0.255 being enabled for RIP. The
no networkcommand will disable RIP for the specified network.
Set a RIP enabled interface by ifname. Both the sending and receiving of RIP packets will be enabled on the port specified in the
network ifnamecommand. The
no network ifnamecommand will disable RIP on the specified interface.
Specify RIP neighbor. When a neighbor doesn't understand multicast, this command is used to specify neighbors. In some cases, not all routers will be able to understand multicasting, where packets are sent to a network or a group of addresses. In a situation where a neighbor cannot process multicast packets, it is necessary to establish a direct link between routers. The neighbor command allows the network administrator to specify a router as a RIP neighbor. The
no neighbor a.b.c.dcommand will disable the RIP neighbor.
Below is very simple RIP configuration. Interface
interface which address match to
10.0.0.0/8 are RIP enabled.
! router rip network 10.0.0.0/8 network eth0 !
This command sets the specified interface to passive mode. On passive mode interface, all receiving packets are processed as normal and ripd does not send either multicast or unicast RIP packets except to RIP neighbors specified with
neighborcommand. The interface may be specified as default to make ripd default to passive on all interfaces.
The default is to be passive on all interfaces.
RIP version handling
version can be `1', `2', `1 2'. This configuration command overrides the router's rip version setting. The command will enable the selected interface to send packets with RIP Version 1, RIP Version 2, or both. In the case of '1 2', packets will be both broadcast and multicast.
The default is to send only version 2.
Version setting for incoming RIP packets. This command will enable the selected interface to receive packets in RIP Version 1, RIP Version 2, or both.
The default is to receive both versions.