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.
mpls l2vpn pw bfd [ detect-multiplier multiplier | min-rx-interval rx-interval | min-tx-interval tx-interval ] * [ remote-vcid vc-id ] [ secondary ]
mpls l2vpn pw bfd [ detect-multiplier multiplier | min-rx-interval rx-interval | min-tx-interval tx-interval ] * [ remote-vcid vc-id ] [ track-interface ] [ secondary ]
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 ] * } [ secondary ]
undo mpls l2vpn pw bfd { [ remote-vcid vc-id ] [ track-interface ] | [ detect-multiplier | min-rx-interval | min-tx-interval ] * | [ detect-multiplier multiplier | min-rx-interval rx-interval | min-tx-interval tx-interval ] * } [ secondary ]
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. |
secondary |
Indicates dynamic BFD for secondary VPWS PW. |
- |
track-interface |
Associates the BFD status with the interface status. |
- |
100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE Layer 2 sub-interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE Layer 2 sub-interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk Layer 2 sub-interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, GE Layer 2 sub-interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, VE sub-interface view, XGE sub-interface view, XGE interface view, Layer 2 sub-interface view
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.
<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 GigabitEthernet 0/1/0 [*HUAWEI-GigabitEthernet0/1/0] mpls l2vc 1.1.1.1 4 [*HUAWEI-GigabitEthernet0/1/0] mpls l2vpn pw bfd min-rx-interval 100 min-tx-interval 100 detect-multiplier 4