To display RIP configuration information and statistics, see Overview of RIP. For more information on configuring RIP, see Viewing RIP information.
Use the following procedures to configure RIP parameters on a system-wide and individual VLAN interface basis.
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:
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: IP routing must be enabled prior to enabling RIP. The first command in the preceding sequence enables IP routing. |
|
|
Syntax:
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.
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.
Example
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 [
in the VLAN context and enter a specific IP address. If you want RIP enabled on all IP addresses, you can specify ip-addr
| all]all
in the command instead of a specific IP address.
Configures a RIP authentication key. There is a maximum of 16 characters.
Syntax:
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
is prompted for interactively. For more information, see the Access Security Guide for your switch.
key-string
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:
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: 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. |
|
|