distance
Syntax
distance <DISTANCE>
no distance
Description
Defines an administrative distance for OSPF. Administrative distance is used as a criteria to select the best route when multiple routes are present from different routing protocols.
The
no
form of this command sets the OSPF administrative distance to the default of 110.
Command context
config-ospf
Parameters
<DISTANCE>
Specifies OSPF administrative distance. Default: 110. Range: 1-255.
Authority
Administrators or local user group members with execution rights for this command.
Examples
Setting OSPF administrative distance:
switch(config)# router ospf 1 switch(config-ospf-1)# distance 100
Setting OSPF administrative distance to the default:
switch(config)# router ospf 1 switch(config-ospf-1)# no distance