distance
Use this command to set the administrative distance. The administrative distance is a feature used by the routers to select the path when there are two or more different routes to the same destination from two different routing protocols. A smaller administrative distance indicating a more reliable protocol.
Use the no parameter with this command to disable this function.
Command Syntax
distance <1-255>
distance <1-255> A.B.C.D/M (WORD|)
no distance
no distance A.B.C.D/M
Parameters
<1-255>
Specify the administrative distance value.
A.B.C.D./M
Specify the network prefix and length
WORD
Specify the access list name.
Default
By default, the administrative distance is 120.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3 and modified in OcNOS version 6.1.0..
Examples
#configure terminal
(config)#router rip
(config-router)#distance 8 10.0.0.0/8 mylist
Last modified date: 08/28/2023