default (OSPFv3 view)

Function

The default command sets the default cost of the external routes that are imported by OSPFv3.

The undo default command restores the default value.

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

Format

default { cost costvalue | tag tagvalue | type typevalue } *

undo default { cost [ costvalue ] | tag [ tagvalue ] | type [ typevalue ] } *

Parameters

Parameter Description Value
cost costvalue

Specifies the default cost of the external route that is imported by OSPFv3.

  • The cost of a Type 1 external route equals the cost of the route from the Router to the related ASBR plus the cost of the route from the ASBR to the destination.
  • The cost of a Type 2 external route equals the cost of the route from the ASBR to the destination.

The value is an integer ranging from 0 to 16777214.

tag tagvalue

Specifies the tag of the imported VPN routes.

The value is an integer ranging from 0 to 4294967295.

type typevalue

Specifies the type of the external routes.

The value is 1 or 2.

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

Views

OSPFv3 view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ospf write

Usage Guidelines

Usage Scenario

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 OSPFv3 processes are started, the command is valid only for this process.

Example

# Specify the default cost of the external routes that are imported by OSPFv3 as 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 >