This section describes the commands you use to view and configure RIP, which is a distance vector routing protocol that you use to route traffic within a small network.
router rip
Use this command to enter Router RIP mode.
Format: router rip
Mode: Global Config
enable (RIP)
This command resets the default administrative mode of RIP in the router (active).
Default: enabled
Format: enable
Mode: Router RIP Config
no enable (RIP)
This command sets the administrative mode of RIP in the router to inactive.
Format: no enable
Mode: Router RIP Config
ip rip
This command enables RIP on a router interface.
Default: disabled
Format: ip rip
Mode: Interface Config
no ip rip
This command disables RIP on a router interface.
Format: no ip rip
Mode: Interface Config
auto-summary
This command enables the RIP auto-summarization mode.
Default: disabled
Format: auto-summary
Mode: Router RIP Config
no auto-summary
This command disables the RIP auto-summarization mode.
Format: no auto-summary
Mode: Router RIP Config
default-information originate (RIP)
This command is used to control the advertisement of default routes.
Format: default-information originate
Mode: Router RIP Config
no default-information originate (RIP)
This command is used to control the advertisement of default routes.
Format: no default-information originate
Mode: Router RIP Config
default-metric (RIP)
This command is used to set a default for the metric of distributed routes.
Format: default-metric <0-15>
Mode: Router RIP Config
no default-metric (RIP)
This command is used to reset the default metric of distributed routes to its default value.
Format: no default-metric
Mode: Router RIP Config
distance rip
This command sets the route preference value of RIP in the router. Lower route preference values are preferred when determining the best route. A route with a preference of 255 cannot be used to forward traffic.
Default: 15
Format: distance rip <1-255>
Mode: Router RIP Config
no distance rip
This command sets the default route preference value of RIP in the router.
Format: no distance rip
Mode: Router RIP Config
distribute-list out (RIP)
This command is used to specify the access list to filter routes received from the source protocol.
This command is used to specify the access list to filter routes received from the source protocol.
Format: no distribute-list <1-199> out {ospf | static | connected}
Mode: Router RIP Config
ip rip authentication
This command sets the RIP Version 2 Authentication Type and Key for the specified interface. The value of <type> is either none, simple, or encrypt. The value for authentication key [key] must be 16 bytes or less. The [key] is composed of standard displayable, non-control keystrokes from a Standard 101/102-key keyboard. If the value of <type> is encrypt, a keyid in the range of 0 and 255 must be specified. Unauthenticated interfaces do not need an authentication key or authentication key ID.
This command sets the default RIP Version 2 Authentication Type for an interface.
Format: no ip rip authentication
Mode: Interface Config
ip rip receive version
This command configures the interface to allow RIP control packets of the specified version(s) to be received. The value for <mode> is one of: rip1 to receive only RIP version 1 formatted packets, rip2 for RIP version 2, both to receive packets from either format, or none to not allow any RIP control packets to be received.
Default: both
Format: ip rip receive version {rip1 | rip2 | both | none}
Mode: Interface Config
no ip rip receive version
This command configures the interface to allow RIP control packets of the default version(s) to be received.
Format: no ip rip receive version
Mode: Interface Config
ip rip send version
This command configures the interface to allow RIP control packets of the specified version to be sent. The value for <mode> is one of: rip1 to broadcast RIP version 1 formatted packets, rip1c (RIP version 1 compatibility mode) which sends RIP version 2 formatted packets via broadcast, rip2 for sending RIP version 2 using multicast, or none to not allow any RIP control packets to be sent.
Default: rip2
Format: ip rip send version {rip1 | rip1c | rip2 | none}
Mode: Interface Config
no ip rip send version
This command configures the interface to allow RIP control packets of the default version to be sent.
Format: no ip rip send version
Mode: Interface Config
hostroutesaccept
This command enables the RIP hostroutesaccept mode.
Default: enabled
Format: hostroutesaccept
Mode: Router RIP Config
no hostroutesaccept
This command disables the RIP hostroutesaccept mode.
Format: no hostroutesaccept
Mode: Router RIP Config
split-horizon
This command sets the RIP split horizon mode. Split horizon is a technique for avoiding problems caused by including routes in updates sent to the router from which the route was originally learned. The options are: None - no special processing for this case. Simple - a route will not be included in updates sent to the router from which it was learned. Poisoned reverse - a route will be included in updates sent to the router from which it was learned, but the metric will be set to infinity.
Default: simple
Format: split-horizon {none | simple | poison}
Mode: Router RIP Config
no split-horizon
This command sets the default RIP split horizon mode.
Format: no split-horizon
Mode: Router RIP Config
redistribute (RIP)
This command configures RIP protocol to redistribute routes from the specified source protocol/routers. There are five possible match options. When you submit the command redistribute ospf match <match-type> the match-type or types specified are added to any match types presently being redistributed. Internal routes are redistributed by default.
Default: metric—not-configured; match—internal
Format for OSPF as source protocol:redistribute ospf [metric <0-15>] [match [internal] [external 1] [external 2] [nssa-external 1] [nssa-external 2]]
Format for other source protocol: redistribute {bgp | static | connected} [metric <0-15>]
Mode: Router RIP Config
no redistribute
This command de-configures RIP protocol to redistribute routes from the specified source protocol/routers.
This command displays information relevant to the RIP router.
Format: show ip rip
Modes: Privileged EXEC/User EXEC
RIP Admin Mode: Enable or disable.
Split Horizon Mode: None, simple or poison reverse.
Auto Summary Mode: Enable or disable. If enabled, groups of adjacent routes are summarized into single entries, in order to reduce the total number of entries The default is enable.
Host Routes Accept Mode: Enable or disable. If enabled the router accepts host routes. The default is enable.
Global Route Changes: The number of route changes made to the IP Route Database by RIP. This does not include the refresh of a route's age.
Global queries: The number of responses sent to RIP queries from other systems.
Default Metric: The default metric of redistributed routes if one has already been set, or blank if not configured earlier. The valid values are 1 to 15.
Default Route Advertise: The default route.
show ip rip interface brief
This command displays general information for each RIP interface. For this command to display successful results routing must be enabled per interface (i.e. ip rip).
Format: show ip rip interface brief
Modes: Privileged EXEC/User EXEC
Interface: Valid slot and port number separated by a forward slash.
IP Address: The IP source address used by the specified RIP interface.
Send Version: The RIP version(s) used when sending updates on the specified interface. The types are none, RIP-1, RIP-1c, RIP-2.
Receive Version: The RIP version(s) allowed when receiving updates from the specified interface. The types are none, RIP-1, RIP-2, Both.
RIP Mode: The administrative mode of router RIP operation (enabled or disabled).
Link State: The mode of the interface (up or down).
show ip rip interface
This command displays information related to a particular RIP interface.
Format: show ip rip interface <unit/slot/port>
Modes: Privileged EXEC/User EXEC
Interface: Valid slot and port number separated by a forward slash. This is a configured value.
IP Address: The IP source address used by the specified RIP interface. This is a configured value.
Send version: The RIP version(s) used when sending updates on the specified interface. The types are none, RIP-1, RIP-1c, RIP-2. This is a configured value.
Receive version: The RIP version(s) allowed when receiving updates from the specified interface. The types are none, RIP-1, RIP-2, Both. This is a configured value.
RIP Admin Mode: RIP administrative mode of router RIP operation; enable activates, disable de-activates it. This is a configured value.
Link State: Indicates whether the RIP interface is up or down. This is a configured value.
Authentication Type: The RIP Authentication Type for the specified interface. The types are none, simple, and encrypt. This is a configured value.
Default Metric: A number which represents the metric used for default routes in RIP updates originated on the specified interface. This is a configured value.
The following information will be invalid if the link state is down.
Bad Packets Received: The number of RIP response packets received by the RIP process which were subsequently discarded for any reason.
Bad Routes Received: The number of routes contained in valid RIP packets that were ignored for any reason.
Updates Sent: The number of triggered RIP updates actually sent on this interface.