Multicast and Routing Guide K/KA/KB.15.15

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: 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.
Configuring for redistribution
To configure for redistribution, define the redistribution tables with "restrict" redistribution filters.
In the CLI, use the restrict command for RIP at the RIP router level.
Syntax:
restrict [ ip-addr ip-mask | ip-addr prefix length ]
This command prevents any routes with a destination address that is included in
the range specified by the address/mask pair from being redistributed by RIP.
NOTE: Do not enable redistribution until you have configured the redistribution filters. Otherwise,
the network might become overloaded with routes that you did not intend to redistribute.
Example:
To configure the switch to filter out redistribution of static, connected, or OSPF routes
on network 10.0.0.0, enter the following commands:
HP Switch(config)# router rip
HP Switch(rip)# restrict 10.0.0.0 255.0.0.0
HP Switch(rip)# write memory
NOTE: The default configuration permits redistribution for all default connected routes only.
Configuring for redistribution 131