Routing Information Protocol

To display RIP configuration information and statistics, see Overview of RIP. For more information on configuring RIP, see Viewing RIP information.

Configuring RIP parameters

Use the following procedures to configure RIP parameters on a system-wide and individual VLAN interface basis.

Enabling RIP

RIP is disabled by default. To enable it, use one of the following methods. When you enable RIP, the default RIP version is RIPv2-only. You can change the RIP version on an individual interface basis to RIPv1 or RIPv1-or-v2, if needed.

Syntax:

[no] router rip

To enable RIP on a routing switch, enter the following commands:

HP Switch(config)# ip routing
HP Switch(config)# router rip
HP Switch(rip)# exit
HP Switch(config)# write memory

[NOTE: ]

NOTE: IP routing must be enabled prior to enabling RIP. The first command in the preceding sequence enables IP routing.


Enabling RIP on the routing switch and entering the RIP router context

Syntax:

[no] router rip [[enable] | [disable]] [auto-summary]

Executed at the global configuration level to enable RIP on the routing switch and to enter the RIP router context. This enables you to proceed with assigning RIP areas and to modify RIP global parameter settings as needed. Global IP routing must be enabled before the RIP protocol can be enabled.

enable

Enables RIP routing.

disable

Disables RIP routing.

Default: Disabled

The no form of the command deletes all protocol-specific information from the global context and interface context. All protocol parameters are set to default values.


[NOTE: ]

NOTE: The no router rip command also disables RIP routing.

If you disable RIP, the switch retains all the configuration information for the disabled protocol in flash memory. If you subsequently restart RIP, the existing configuration will be applied.

The auto-summary form of the command enables advertisement of the summarized routes. When used with the no form of the command, auto-summary disables the advertisement of the summarized routes.


Example

Enter RIP router context

HP Switch(config)# router rip
HP Switch(rip)#

Enable RIP routing

HP Switch(config)# router rip enable
HP Switch(rip)#

Disable RIP routing

HP Switch(config)# router rip disable
HP Switch(rip)#

Delete all protocol-specific information from the global context and interface context and set all protocol parameters to default values

HP Switch(config)# no router rip
HP Switch(rip)#

Enabling IP RIP on a VLAN

To enable RIP on all IP addresses in a VLAN, use ip rip in the VLAN context. When the command is entered without specifying any IP address, it is enabled in all configured IP addresses of the VLAN.

To enable RIP on a specific IP address in a VLAN, use ip rip [ ip-addr | all] in the VLAN context and enter a specific IP address. If you want RIP enabled on all IP addresses, you can specify all in the command instead of a specific IP address.

Configuring a RIP authentication key

Configures a RIP authentication key. There is a maximum of 16 characters.

Syntax:

[no] ip rip [ip-addr]authentication-key key-string


[NOTE: ]

NOTE: For the 5400zl and 8200zl switches, when the switch is in enhanced secure mode, commands that take a secret key as a parameter have the echo of the secret typing replaced with asterisks. The input for key-string is prompted for interactively. For more information, see the Access Security Guide for your switch.


Changing the RIP type on a VLAN interface

When you enable RIP on a VLAN interface, RIPv2-only is enabled by default. You can change the RIP type to one of the following on an individual VLAN interface basis:

  • Version 1 only

  • Version 2 only (the default)

  • Version 1 - or - version 2

Syntax:

[no] ip rip [ v1-only | v1-or-v2 | v2-only ]

To change the RIP type supported on a VLAN interface, enter commands such as the following:

HP Switch(config)# vlan 1
HP Switch(vlan-1)# ip rip v1-only
HP Switch(vlan-1)# exit
HP Switch(config)# write memory

Changing the cost of routes learned on a VLAN interface

By default, the switch interface increases the cost of an RIP route that is learned on the interface. The switch increases the cost by adding one to the route's metric before storing the route.

You can change the amount that an individual VLAN interface adds to the metric of RIP routes learned on the interface.


[NOTE: ]

NOTE: RIP considers a route with a metric of 16 to be unreachable. Use this metric only if you do not want the route to be used. In fact, you can prevent the switch from using a specific interface for routes learned though that interface by setting its metric to 16.


Syntax:

ip rip metric 1-16

To increase the cost a VLAN interface adds to RIP routes learned on that interface, enter commands such as the following:

HP Switch(config)# vlan 1
HP Switch(vlan-1)# ip rip metric 5

These commands configure vlan-1 to add 5 to the cost of each route learned on the interface.