Command Reference RIP Commands
The following example enables the RIP routing protocol to redistribute the routes learned by the
OSPF routing protocol, whose initial RIP metric value is set to 3.
Ruijie (config)# router rip
Ruijie (config-router)# default-metric 3
Ruijie (config-router)# redistribute ospf 100
Redistributes the routes from one routing
domain to another routing domain.
Use this command to set the management distance of the RIP route. Use the no form of this
command to restore the default setting.
distance distance [ ip-address wildcard ]
no distance [ distance ip-address wildcard ]
Sets the management distance of a RIP route, an integer in the range
from 1 to 255.
Indicates the prefix of the source IP address of the route.
Defines the comparison bit of the IP address, where 0 means
accurate matching and 1 means no comparison.
Routing process configuration mode
Use this command to set the management distance of the RIP route.
You can use this command to create several management distances with source address prefixes.
When the source address of the RIP route is within the range specified by the prefixes, the
corresponding management distance is applied; otherwise, the route uses the management distance
configured by the RIP.
The following example sets the management distance of the RIP route to 160, and specifies the
management distance of the route learned from 192.168.2.1 as 123.
Ruijie(config)# router rip