DGS-6604
mm
distance
CLI Reference Guide
160
distance
Use the command
distance
to define an administrative distance for a protocol
(RIP, OSPF, etc) or the routes that fall in the range of the specified networks-
prefix. Use the no form of the command to remove the distance configuration and
then the distance will go back to the default.
distance
DISTANCE [NETWORK-PREFIX/PREFIX-LENGTH]
no distance
DISTANCE [NETWORK-PREFIX/PREFIX-LENGTH]
Default
No static routes are established.
The table below shows the default distance of protocols:
Command Mode
Router configuration
Usage Guideline
This command is only used for routing protocols (RIP, OSPF). The
distance
command of a static route uses the
ip route command on page 319
with the
distance option. The distance of local interface can not be configured.
Numerically, an administrative distance is an integer from 1 to 255. In general,
the higher the value is, the lower the trust rating is. An administrative distance of
255 means that the routing information source cannot be trusted at all and should
be ignored.
Use the
distance
command to set the administrative distance for all the routes
that fall in the range of the specified networks-prefix. That is, if the route is in the
range of the networks-prefix, the distance specified for the network prefix will be
applied to this route.
Syntax Description
DISTANCE
An administrative distance. The default administrative distance for a static route
is 1. The range of distance is 1 to 255. The lower value represents a better route.
NETWORK-PREFIX/
PREFIX-LENGTH
(Optional) The network prefix and the prefix length specify the destination
network. The Network-Prefix/Prefix-Length parameter is not supported for OSPF.
Connected interface
0
The administrative distance of a
Connected interface.
Static route
1
The administrative distance of a
Static route.
Open Shortest Path First
(OSPF)/OSPF6
110
The administrative distance of an
OSPF route.
Routing Information Protocol
(RIP)/RIPng
120
The administrative distance of a RIP
route.
Unknown
255
The administrative distance of an
unknown protocol route.
Summary of Contents for DGS-6600-48TS
Page 1: ...0 9 3...