Example:
To assign a default metric of 4 to all routes imported into RIP, enter the following commands:
switch(config)# router rip
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
on page 266. For
examples of using route maps in route redistribution, see
Using route policy in route redistribution
277.)
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.
switch(config)# router rip
switch(rip)# redistribute connected
switch(rip)# redistribute static
switch(rip)# redistribute ospf
switch(rip)# write memory
Changing the route loop prevention method
For more information about Poison reverse and Split horizon, see
Changing the route loop prevention method
on page 180.
Syntax:
[no] ip rip poison-reverse
Chapter 8 Routing Information Protocol (RIP)
173