117
Cisco Nexus 3548 Switch NX-OS Unicast Routing Command Reference
OL-27852-01
Chapter Unicast Routing Commands
distance (OSPF)
distance (OSPF)
To define the Open Shortest Path First (OSPF) route administrative distance, use the distance command.
To restore the default, use the no form of this command.
distance distance
no distance
Syntax Description
Command Default 110
Command Modes Router configuration mode
Command History
Usage Guidelines Use this command to set a distance for an entire group of routes or when you configure multiple routing
protocols and you want to choose one set of routes over the other.
This command requires the LAN Base Services license.
Examples This example shows how to set the distance to 200, making the route less reliable:
switch# configure terminal
switch(config)# router ospf 1
switch(config-router)# distance 200
switch(config-router)#
Related Commands
distance Administrative distance for all routes local to this OSPF process. The range is
from 1 to 255.
Release Modification
5.0(3)A1(1) This command was introduced.
Command Description
show ip ospf Displays OSPF information.
copy running-config
startup-config
Saves this configuration change to the startup configuration file.