distance <distance>

Syntax

distance <distance>

no distance

Description

Defines an administrative distance for OSPFv3. Administrative distance is used as a criteria to select the best route when the same route is learned by multiple routing protocols.

The no form of this command sets the OSPFv3 administrative distance to the default of 110.

Command context

config-ospfv3

Parameters

<distance>

Specifies OSPFv3 administrative distance. Range: 1 to 255. Default: 110.

Authority

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

Examples

Setting OSPF administrative distance:

switch(config)# router ospfv3 1
switch(config-ospfv3-1)# distance 100

Setting OSPF administrative distance to the default:

switch(config)# router ospfv3 1
switch(config-ospfv3-1)# no distance