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
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
Syntax:
[no] ip rip <v1-only | v1-or-v2 | v2-only>
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: 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.
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.
Syntax:
ip rip metric <1-16>
Configuring RIP redistribution
You can configure the routing switch to redistribute connected, static, and OSPF routes into RIP.
When you redistribute a route into RIP, the routing switch can use RIP to advertise the route to its
RIP neighbors.
To configure redistribution, perform the following tasks:
1. Configure redistribution filters to permit or deny redistribution for a route based on the
destination network address or interface. (optional)
2. Enable redistribution.
Defining RIP redistribution filters
Route redistribution imports and translates different protocol routes into a specified protocol type.
On the switches covered in this guide, redistribution is supported for static and directly connected
routes. Redistribution of any other routing protocol into RIP is not currently supported. When you
configure redistribution for RIP, you can specify that static or connected routes are imported into
RIP routes.
54 IP Routing Features