bfd enable (Segment routing view)

Function

The bfd enable command enables bidirectional forwarding detection (BFD) for SR-MPLS BE tunnels created by the SEGR module.

The undo bfd enable command disables BFD for SR-MPLS BE tunnels created by the SEGR module.

By default, this function is disabled.

Format

bfd enable mode tunnel [ [ filter-policy ip-prefix ip-prefix-name ] | [ effect-sr-lsp ] | [ nil-fec ] ] *

undo bfd enable mode tunnel [ [ filter-policy ip-prefix ip-prefix-name ] | [ effect-sr-lsp ] | [ nil-fec ] ] *

Parameters

Parameter Description Value
filter-policy

Indicates a filter policy.

-

ip-prefix ip-prefix-name

Specifies an IP prefix list.

The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

effect-sr-lsp

Specifies whether to affect the SR LSP.

If the effect-sr-lsp parameter is specified, if BFD Down, SEGR module cancels the SR LSP.

-

nil-fec

Specifies whether to use nil FEC.

In an SR and LDP interworking scenario, the ingress node cannot detect whether LDP LSPs are stitched to SR LSPs in the LDP to SR direction. In the LSP ping packet triggered by BFD, the encapsulated FEC type is LDP. When the packet arrives at the egress node (SR node), the FEC type fails to be verified, preventing BFD from going Up. To resolve this issue, configure the nil-fec parameter.

-

mode

Indicates BFD mode.

-

tunnel

Indicates SR-MPLS BE tunnels.

-

Views

Segment routing view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
segr write

Usage Guidelines

Usage Scenario

To enable BFD for SR-MPLS BE tunnels created by the SEGR module, run the bfd enable command, which improves reliability.

Prerequisites

BFD has been enabled using the bfd command.

Example

# Enable BFD for SR-MPLS BE tunnels created using the SEGR module.
<HUAWEI> system-view
[~HUAWEI] bfd
[*HUAWEI-bfd] quit
[*HUAWEI] segment-routing
[*HUAWEI-segment-routing] bfd enable mode tunnel
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >