Previous Topic

Next Topic

Book Contents

Routing Information Protocol (RIP) Commands

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.

enable (RIP)

This command resets the default administrative mode of RIP in the router (active).

no enable (RIP)

This command sets the administrative mode of RIP in the router to inactive.

ip rip

This command enables RIP on a router interface.

no ip rip

This command disables RIP on a router interface.

auto-summary

This command enables the RIP auto-summarization mode.

no auto-summary

This command disables the RIP auto-summarization mode.

default-information originate (RIP)

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

no default-information originate (RIP)

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

default-metric (RIP)

This command is used to set a default for the metric of distributed routes.

no default-metric (RIP)

This command is used to reset the default metric of distributed routes to its default value.

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.

no distance rip

This command sets the default route preference value of RIP in the router.

distribute-list out (RIP)

This command is used to specify the access list to filter routes received from the source protocol.

no distribute-list out

This command is used to specify the access list to filter routes received from the source protocol.

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.

no ip rip authentication

This command sets the default RIP Version 2 Authentication Type for an interface.

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.

no ip rip receive version

This command configures the interface to allow RIP control packets of the default version(s) to be received.

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.

no ip rip send version

This command configures the interface to allow RIP control packets of the default version to be sent.

hostroutesaccept

This command enables the RIP hostroutesaccept mode.

no hostroutesaccept

This command disables the RIP hostroutesaccept mode.

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.

no split-horizon

This command sets the default RIP split horizon mode.

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.

no redistribute

This command de-configures RIP protocol to redistribute routes from the specified source protocol/routers.

show ip rip

This command displays information relevant to the RIP router.

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).

show ip rip interface

This command displays information related to a particular RIP interface.

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

See also

Routing Commands

Address Resolution Protocol (ARP) Commands

IP Routing Commands

Router Discovery Protocol Commands

Virtual LAN Routing Commands

Virtual Router Redundancy Protocol Commands

DHCP and BOOTP Relay Commands

IP Helper Commands

Open Shortest Path First (OSPF) Commands

ICMP Throttling Commands