BFD for PW helps quickly detect faults on public network links.
On an MPLS L2VPN, if PWs exist between PEs, you can configure BFD for PW for rapid link fault detection, so that upper-layer applications can quickly switch to another link when a link experiences a fault.
A BFD session can be either static or dynamic. Determine which one to use as needed.
The system view is displayed.
BFD is enabled globally, and the global BFD view is displayed.
The system view is displayed.
BFD configuration items are created.
If the PW to be detected is a secondary PW, be sure to configure secondary.
The PW to be detected can be either an SS-PW or an MS-PW.
Run discriminator local discr-value
A local BFD session discriminator is configured.
Run discriminator remote discr-value
A remote BFD session discriminator is configured.
The local BFD session discriminator on one end must be the same as the remote BFD session discriminator on the other end.
The configuration is committed.
If the status of a PW is Down, the BFD session can be established but cannot go Up.
To modify BFD session parameters after creating a BFD session, run the min-tx-interval, min-rx-interval, and detect-multiplier commands as required.
The system view is displayed.
BFD is enabled globally, and the global BFD view is displayed.
The system view is displayed.
Run pw-template pw-template-name
The PW template view is displayed.
Run control-word
The control word function is enabled.
Run bfd-detect [ detect-multiplier multiplier | min-rx-interval rx-interval | min-tx-interval tx-interval ] *
BFD detection parameters are configured.
detect-multiplier multiplier indicates the BFD detection multiplier.
min-rx-interval rx-interval indicates the Required Min Rx Interval (RMRI), which is the supported minimum interval at which the local device receives BFD control packets.
min-tx-interval tx-interval indicates the Desired Min Tx Interval (DMTI), which is the desired minimum interval at which the local device sends BFD control packets.
Actual local detection interval = Actual interval at which the local device receives BFD packets x Configured remote BFD detection multiplier
Actual interval at which the local device receives BFD packets = Max { Configured remote DMTI, Configured local RMRI }
Actual interval at which the local device transmits BFD packets = Max { Configured local DMTI, Configured remote RMRI }
Run quit
The system view is displayed.
Run interface interface-type interface-number
The AC interface view is displayed.
Run mpls l2vpn pw bfd [ detect-multiplier multiplier | min-rx-interval rx-interval | min-tx-interval tx-interval ] * [ remote-vcid vc-id ] [ track-interface ] [ secondary ]
Dynamic BFD for PW is enabled to trigger the establishment of a dynamic BFD session to detect the VPWS PW connectivity.
If the PW to be detected is a secondary PW, be sure to configure secondary.
The configuration is committed.