距离

Syntax

距离没有距离

描述

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没有form of this command sets the OSPF administrative distance to the default of 110.

Command context

config-ospf -

Parameters

Specifies OSPF administrative distance. Range: 1-255. Default: 110.

权威

Administrators or local user group members with execution rights for this command.

Examples

Setting OSPF administrative distance:

switch(config)#router ospf 1switch(config-ospf-1)#距离100

Setting OSPF administrative distance to the default:

switch(config)#router ospf 1switch(config-ospf-1)#没有距离