Routing Information Protocol Commands

Use these commands to view and configure Routing Information Protocol (RIP), which is a distance-vector routing protocol that you use to route traffic within a small network.

router rip

M4250

M4350

Use this command to enter Router RIP Config mode.

Format router rip
Mode Global Config

enable (Router RIP Config)

M4250

M4350

This command sets the default administrative mode of RIP on the switch to active.

Default enabled
Format enable
Mode Router RIP Config

no enable (Router RIP Config)

This command sets the administrative mode of RIP on the switch to inactive.

Format no enable
Mode Router RIP Config

ip rip

M4250

M4350

This command enables RIP on a router interface or range of interfaces.

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 (Router RIP Config)

M4250

M4350

This command enables the RIP auto-summarization mode.

Default disabled
Format auto-summary
Mode Router RIP Config

no auto-summary (Router RIP Config)

This command disables the RIP auto-summarization mode.

Format no auto-summary
Mode Router RIP Config

default-information originate (Router RIP Config)

M4250

M4350

This command is used to control the advertisement of default routes.

Format default-information originate
Mode Router RIP Config

no default-information originate (Router RIP Config)

This command is used to control the advertisement of default routes.

Format no default-information originate
Mode Router RIP Config

default-metric (Router RIP Config)

M4250

M4350

This command is used to set a default for the metric of distributed routes. The value for the metric argument can be from 0–15.

Format default-metric metric
Mode Router RIP Config

no default-metric (Router RIP Config)

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 (Router RIP Config)

M4250

M4350

This command sets the route preference value of RIP on the switch. Lower route preference values are preferred when determining the best route. A route with a preference of 255 cannot be used to forward traffic. The value for the preference argument can be from 1–255.

Default 15
Format distance rip preference
Mode Router RIP Config

no distance rip (Router RIP Config)

This command sets the default route preference value of RIP on the switch.

Format no distance rip
Mode Router RIP Config

distribute-list out (Router RIP Config)

M4250

M4350

This command is used to specify the access list to filter routes received from the source protocol. The value for the access-list argument can be from 1–199.

Default 0
Format distribute-list access-list out {static | connected}
Mode Router RIP Config

no distribute-list out (Router RIP Config)

This command is used to specify the access list to filter routes received from the source protocol. The value for the access-list argument can be from 1–199.

Format no distribute-list access-list out {static | connected}
Mode Router RIP Config

ip rip authentication

M4250

M4350

This command sets the RIP version 2 authentication type and key for the interface or range of interfaces. The type of authentication can be either none, simple, or encrypt. If you select simple or encrypt, the key parameter is composed of standard displayable, noncontrol keystrokes from a standard 101/102-key keyboard. The authentication key must be 8 bytes or less if the authentication type is simple. If the type is encrypt, the key can be up to 16 bytes. Unauthenticated interfaces do not need an authentication key. If the type is encrypt, a keyid in the range of 0 and 255 must be specified. The default value for the authentication type is none. Neither the default password key nor the default key id are configured.

Default none
Format ip rip authentication {none | {simple key} | {encrypt key keyid}}
Mode Interface Config

no ip rip authentication

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

M4250

M4350

This command configures an interface or range of interfaces to allow RIP control packets of the specified version or versions to be received.

The options are: 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

M4250

M4350

This command configures an interface or range of interfaces to allow RIP control packets of the specified version to be sent.

The options are: rip1 to send only RIP version-1 formatted packets; rip2 for RIP version 2; rip-1c to send RIP version-2 formatted packets through a broadcast; 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 (Router RIP Config)

M4250

M4350

This command enables the RIP hostroutesaccept mode.

Default enabled
Format hostroutesaccept
Mode Router RIP Config

no hostroutesaccept (Router RIP Config)

This command disables the RIP hostroutesaccept mode.

Format no hostroutesaccept
Mode Router RIP Config

split-horizon (Router RIP Config)

M4250

M4350

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; simple, a route is not included in updates sent to the router from which it was learned; poison, a route is included in updates sent to the router from which it was learned, but the metric is set to infinity.

Default simple
Format split-horizon {none | simple | poison}
Mode Router RIP Config

no split-horizon (Router RIP Config)

This command sets the default RIP split horizon mode.

Format no split-horizon
Mode Router RIP Config

redistribute (Router RIP Config)

M4250

M4350

This command configures RIP protocol to redistribute static or connected routes. The metric argument is in the range from 0–15.

Default 0
Format redistribute {static | connected} [metric metric]
Mode Router RIP Config

no redistribute (Router RIP Config)

This command disables RIP protocol to redistribute static or connected routes. The metric argument is in the range from 0–15.

Format no redistribute {static | connected} [metric metric]
Mode Router RIP Config

redistribute ospf (Router RIP Config)

M4350

This command configures RIP protocol to redistribute routes from OSPF and the specified routes. The metric argument is in the range from 0–15. The options for the match keyword specify the types of internal or external routes that must be redistributed (you can specify more than one type).

Default

metric: 0

match: internal

Format redistribute ospf [metric metric] [match [internal] [external 1] [external 2] [nssa-external 1] [nssa-external-2]]
Mode Router RIP Config

no redistribute ospf (Router RIP Config)

This command disables RIP protocol to redistribute routes from OSPF and the specified routes. The metric argument is in the range from 0–15.

Format no redistribute ospf [metric metric] [match [internal] [external 1] [external 2] [nssa-external 1] [nssa-external-2]]
Mode Router RIP Config

show ip rip

M4250

M4350

This command displays information relevant to RIP on the switch.

Format show ip rip
Modes

Privileged EXEC

User EXEC

Term Definition
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

M4250

M4350

This command displays general information for each RIP interface. For this command to display successful results, routing must be enabled per interface (for example, through the ip rip command).

Format show ip rip interface brief
Modes

Privileged EXEC

User EXEC

Term Definition
Interface The interface.
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

M4250

M4350

This command displays information related to a particular RIP interface. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command description and format.

The argument unit/slot/port corresponds to a physical routing interface or VLAN routing interface. The vlan keyword and vlan-id parameter are used to specify the VLAN ID of the routing VLAN. The vlan-id can be a number from 1–4093.

Format show ip rip interface {unit/slot/port | vlan vlan-id}
Modes

Privileged EXEC

User EXEC

Term Definition
Interface The interface.
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.

The following information will be invalid if the link state is down.

Term Definition
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.