mpls l2vpn pw bfd (Loopback interface view)

Function

The mpls l2vpn pw bfd command enables dynamic BFD for VPWS PW and sets BFD detection parameters on an AC interface.

The undo mpls l2vpn pw bfd command deletes dynamic BFD for VPWS PW from an AC interface.

By default, dynamic BFD for VPWS PW is not configured on AC interfaces.

Format

mpls l2vpn pw bfd [ detect-multiplier multiplier | min-rx-interval rx-interval | min-tx-interval tx-interval ] * [ remote-vcid vc-id ]

mpls l2vpn pw bfd [ detect-multiplier multiplier | min-rx-interval rx-interval | min-tx-interval tx-interval ] * [ remote-vcid vc-id ] [ track-interface { interface-name | interface-type interface-number } ]

undo mpls l2vpn pw bfd { [ remote-vcid vc-id ] | [ detect-multiplier | min-rx-interval | min-tx-interval ] * | [ detect-multiplier multiplier | min-rx-interval rx-interval | min-tx-interval tx-interval ] * }

undo mpls l2vpn pw bfd { [ remote-vcid vc-id ] [ track-interface { interface-name | interface-type interface-number } ] | [ detect-multiplier | min-rx-interval | min-tx-interval ] * | [ detect-multiplier multiplier | min-rx-interval rx-interval | min-tx-interval tx-interval ] * }

Parameters

Parameter Description Value
detect-multiplier multiplier

Specifies a local dynamic BFD detection multiplier.

The value is an integer ranging from 3 to 50. The default value is 3.

min-rx-interval rx-interval

Specifies the minimum interval at which dynamic BFD packets are received.

The value is an integer ranging from 3 to 20000, in milliseconds. The default value is 10.

min-tx-interval tx-interval

Specifies the minimum interval at which dynamic BFD packets are sent.

The value is an integer ranging from 3 to 20000, in milliseconds. The default value is 10.

remote-vcid vc-id

Specifies the remote VC ID of a VPWS PW.

This parameter must be specified if the VPWS PW to be detected is a multi-segment PW.

The value is an integer ranging from 1 to 4294967295.

track-interface interface-type interface-number

Specifies the type and number of the interface monitored by a BFD session.

-

track-interface interface-name

Specifies the name of the interface monitored by a BFD session.

-

Views

Loopback interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2vpn write

Usage Guidelines

Usage Scenario

A large number of BFD sessions consume lots of system resources. To reduce the number of BFD sessions, run the mpls l2vpn pw bfd command to configure dynamic BFD for VPWS PW on an AC interface. If the VPWS PW to be detected goes Up, the system informs the BFD module of neighbor information and detection parameters so that the BFD module can establish a BFD session. After the BFD session is established, BFD starts VPWS PW detection. After the BFD session goes Down, the system automatically sets the local send and receive intervals to a random value greater than 1000 ms. If the BFD session goes Up again, the system restores the configured send and receive intervals.

Prerequisites

BFD has been globally enabled using the bfd command.

BFD sessions depend on the control word function. The control word function has been enabled using the mpls l2vc or control-word command.

Precautions

Static BFD for VPWS PW and dynamic BFD for VPWS PW are mutually exclusive. A VPWS PW can have either a static or dynamic BFD session configured.

Example

# Configure dynamic BFD for VPWS PW and set the minimum send and receive intervals to 100 ms and the detection multiplier to 4 on AC interface loopback1.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] bfd
[*HUAWEI-bfd] quit
[*HUAWEI] pw-template pw1
[*HUAWEI-pw-template-pw1] control-word
[*HUAWEI-pw-template-pw1] quit
[*HUAWEI] interface loopback1
[*HUAWEI-loopback1] mpls l2vc 1.1.1.1 4
[*HUAWEI-loopback1] mpls l2vpn pw bfd min-rx-interval 100 min-tx-interval 100 detect-multiplier 4
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >