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: ]

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: ]

NOTE: The default configuration permits redistribution for all default connected routes only.


Modifying default metric for redistribution

The default metric is a global parameter that specifies the cost applied to all RIP routes by default. The default value is 1. You can assign a cost from 1 to 15.

Syntax:

default-metric value

The value can be from 1 to 15. The default is 1.

Example:

To assign a default metric of 4 to all routes imported into RIP, enter the following commands:

HP Switch(config)# router rip
HP Switch(rip)# default-metric 4

Enabling RIP route redistribution

The basic form of the redistribute command redistributes all routes of the selected type. For finer control over route selection and modification of route properties, you can specify the route-map parameter and the name of a route map. (For general information on route policy and route maps, see Route Policy. For examples of using route maps in route redistribution, see Using route policy in route redistribution.)


[NOTE: ]

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.


Syntax:

[no] router rip redistribute [ connected | static | ospf ] [route-map name]

Enables redistribution of the specified route type to the RIP domain.

static

Redistribute from manually configured routes.

connected

Redistribute from locally connected networks.

ospf

Redistribute from OSPF routes.

route-map name

Optionally specify the name of a route-map to apply during redistribution.

The no form of the command disables redistribution for the specified route type.

Example

To enable redistribution of all connected, static, and OSPF routes into RIP, enter the following commands.

HP Switch(config)# router rip
HP Switch(rip)# redistribute connected
HP Switch(rip)# redistribute static
HP Switch(rip)# redistribute ospf
HP Switch(rip)# write memory