< Home

default (OSPFv3)

Function

The default command sets default parameters for the external routes that are imported by OSPFv3. The default parameters include the cost, tag and type (Type 1 or Type 2).

The undo default command restores the default values of the parameters of the external routes that are imported by OSPFv3.

By default, the cost, tag value, and type of the external routes is 1, 1, and Type 2, respectively.

Format

default { cost cost | tag tag | type type } *

undo default { cost [ cost ] | tag [ tag ] | type [ type ] } *

Parameters

Parameter Description Value
cost cost Specifies the default cost of the external route that is imported by OSPFv3. The value is an integer that ranges from 1 to 16777214. By default, the value is 1.
tag tag Specifies the tag value of the external route that is imported by OSPFv3. The value is an integer that ranges from 0 to 4294967295. By default, the value is 1.
type type Specifies the type of the external route that is imported by OSPFv3.
The value is an integer that ranges from 1 to 2. By default, it is 2.
  • 1: Type 1 external route
  • 2: Type 2 external route

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

Since OSPFv3 can import external routes and advertise them to the entire AS, it is necessary to specify a default cost for these external routes.

If multiple OSPFv3 processes are enabled, the default command takes effect only on the present process.

Example

# Set the default cost of the external routes that are imported by OSPFv3 to 10.

<HUAWEI> system-view
[HUAWEI] ospfv3 1
[HUAWEI-ospfv3-1] default cost 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >