DGS-6604
mm
distance
CLI Reference Guide
161
If the distances for specific routes are not specified, the distances of the routes
learned by a routing protocol follows the distance of the routing protocol.
In the current configuration, there is a difference between RIP and RIPng.
1. The specified network prefix means the interface address for RIP.
2. The specified network prefix means the specific routes for RIPng.
If the distances for specific routes are specified, the distances of the routes are
set to the specified value.
If the switch is operated at multi-path disabled mode, then the route with the
lowest distance will be established as the active route. If the route that is found
has failed, then this route will be automatically deactivated and the route with the
next lower distance will be the active route.
If the switch is operated in the multi-path enabled mode, then routes with the
same distances will be active at the same time.
Note 1:
BGP Protocol does not support this command.
Note 2:
OSPF does not support the parameter:
[NETWORK-PREFIX/PREFIX-
LENGTH]
.
Examples
This example shows how to set rip distance as 100, and route 30.0.0.0/8 with
distance 90
This example shows how to remove the distance configuration of RIP (set to
default distance of RIP, 120) and network 30.0.0.0/8
Verify the settings by entering the
show ip protocols
command.
Switch(config)# router rip
Switch(config-router)# distance 100
Switch(config-router)# distance 90 30.0.0.0/8
Switch(config)# router rip
Switch(config-router)# no distance 100
Switch(config-router)# no distance 90 30.0.0.0/8