bfd all-interfaces enable (OSPFv3 view)

Function

The bfd all-interfaces incr-cost command enables an OSPFv3 process to adjust the cost based on BFD.

The undo bfd all-interfaces incr-cost command disables an OSPFv3 process from adjusting the cost based on BFD.

The bfd all-interfaces enable command enables BFD for OSPFv3.

The undo bfd all-interfaces enable command disables BFD for OSPFv3.

By default, an OSPFv3 process does not adjust the cost based on BFD.

By default, BFD is not enabled for OSPFv3.

Format

bfd all-interfaces enable

bfd all-interfaces incr-cost { cost | max-reachable }

undo bfd all-interfaces enable

undo bfd all-interfaces incr-cost [ cost | max-reachable ]

Parameters

Parameter Description Value
incr-cost cost

Specifies a cost adjustment value.

The value is an integer ranging from 1 to 65534.

max-reachable

Adjusts the link cost of an OSPFv3 interface to the maximum link cost 65535.

-

enable

Enables BFD for OSPFv3.

-

Views

OSPFv3 view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ospf write

Usage Guidelines

Usage Scenario

When BFD detects a fault and the system recovers quickly, the interface is disconnected due to BFD Down. As a result, the link is unstable and traffic is lost.To ensure network reliability and solve the preceding problem, you can run the bfd all-interfaces incr-cost command to adjust the link cost. When an OSPFv3 process detects BFD Down, it automatically increases the cost of the interface so that the link is no longer selected and traffic can be transmitted through other links. When BFD Up is detected, the cost of this process is automatically restored to the original cost.

Prerequisites

An OSPFv3 process has been created and started using the ospfv3 command.

BFD has been enabled in the OSPFv3 process using the bfd all-interfaces enable command.

Precautions

The interface-specific BFD-associated cost value has a higher priority than the process-specific BFD-associated cost value.

After BFD is enabled, OSPFv3 establishes BFD sessions only with the neighbors in the Full state.

The preference of BFD configured on an interface is higher than that configured in the process.

The bfd all-interfaces (OSPFv3) command and the ospfv3 bfd block command are mutually exclusive.

Example

# Enable BFD for an OSPFv3 process.
<HUAWEI> system-view
[~HUAWEI] ospfv3 1
[*HUAWEI-ospfv3-1] bfd all-interfaces enable
# Configure an OSPFv3 process to adjust the link cost to 5 based on BFD.
<HUAWEI> system-view
[~HUAWEI] ospfv3 100
[*HUAWEI-ospfv3-100] bfd all-interfaces incr-cost 5
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >