D-Link DGS-6600-48T Product Manual - Page 161
distance
View all D-Link DGS-6600-48T manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 161 highlights
DGS-6604 mm distance 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 networksprefix. 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] 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/ (Optional) The network prefix and the prefix length specify the destination PREFIX-LENGTH network. The Network-Prefix/Prefix-Length parameter is not supported for OSPF. Default No static routes are established. The table below shows the default distance of protocols: Connected interface Static route Open Shortest Path First (OSPF)/OSPF6 Routing Information Protocol (RIP)/RIPng Unknown 0 The administrative distance of a Connected interface. 1 The administrative distance of a Static route. 110 The administrative distance of an OSPF route. 120 The administrative distance of a RIP route. 255 The administrative distance of an unknown protocol route. Command Mode Usage Guideline Router configuration This command is only used for routing protocols (RIP, OSPF). The distance command of a static route uses the ip route command on page 309 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. CLI Reference Guide 151