mpls bgp bfd-trigger-tunnel (MPLS-BGP-VPN instance view)

Function

The mpls bgp bfd-trigger-tunnel command configures a policy used to establish BGP BFD sessions.

The undo mpls bgp bfd-trigger-tunnel command deletes a policy used to establish BGP BFD sessions.

By default, no policy used to establish BGP BFD sessions is configured.

Format

mpls bgp bfd-trigger-tunnel { host | ip-prefix ip-prefix-name }

undo mpls bgp bfd-trigger-tunnel

Parameters

Parameter Description Value
host

Allows a device to use host addresses to establish BGP BFD sessions.

-

ip-prefix ip-prefix-name

Allows a device to use a specified IP prefix list to establish BGP BFD sessions.

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.

Views

MPLS-BGP-VPN instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

BFD for BGP tunnel rapidly detects faults in E2E BGP tunnels. Before a BGP BFD session is established, the mpls bgp bfd enable command must be run to enable MPLS to dynamically establish BGP BFD sessions on the ingress of a BGP tunnel. To specify a policy used to establish BGP BFD sessions, run the mpls bgp bfd-trigger-tunnel command.

Either of the following policies can be used:

  • Host address-based policy: used when all host addresses can be used to establish BGP BFD sessions.
  • IP prefix list-based policy: used when only some host addresses can be used to establish BFD sessions.

Prerequisites

BFD has been globally enabled using the bfd command.

Precautions

If the mpls bgp bfd-trigger-tunnel command is run more than once, the latest configuration overrides the previous one.

Example

# Allow a device to use host addresses to dynamically establish BGP BFD sessions.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpna
[*HUAWEI-vpn-instance-vpna] quit
[*HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] bfd
[*HUAWEI-bfd] quit
[*HUAWEI] mpls bgp vpn-instance vpna
[*HUAWEI-mpls-bgp-vpn-instance-vpna] mpls bgp bfd-trigger-tunnel host
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >