< Home

default (OSPFv3)

Function

The default command sets the default parameters of the external routes that are imported by OSPFv3, The default parameters include cost, tag and type.

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

By default, the default cost of the external routes is 1; the default tag value is 1; the type of the imported external routes is Type 2 external route.

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 ranging from 1 to 16777214. By default, it is 1.
tag tag Specifies the tag value of the imported routes. The value is an integer that ranges from 0 to 4294967295. By default, the value is 1.
type type Indicates the type of the external route.

The value is an integer ranging from 1 to 2.

  • 1: Type 1 external route
  • 2: Type 2 external route

By default, it is 2.

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

Since OSPFv3 can import external routing information and advertise it to the entire AS, it is necessary to specify the default cost of the external route that is imported by the protocol.

If multiple OSPFv3s are enabled, the command is valid only for this process.

Example

# Specify the default cost of the external routes that are imported by OSPFv3 as 10.

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