The e-trunk bfd enable command enables a device to create a dynamic Bidirectional Forwarding Detection (BFD) session. After the command is run, the device automatically creates a BFD session and binds it to an E-Trunk.
The undo e-trunk bfd enable command disables a device from creating a dynamic BFD session and deletes created dynamic BFD sessions.
By default, a device is disabled from creating a dynamic BFD session.
Usage Scenario
Assume that an E-Trunk is deployed on PE1 and PE2. PE1 is the master device, and PE2 is the backup device. If PE1 fails, to enable PE2 to rapidly detect the fault and change its status for proper traffic forwarding, run the e-trunk track bfd-session command to bind a static BFD session to the E-Trunk.
After the static BFD session is bound to the E-Trunk, BFD can rapidly detect the link protocol status of PE1 and PE2. If the link protocol status changes, the BFD session goes Down. PE2 can use the BFD mechanism to rapidly detect the fault and change its status, ensuring proper traffic forwarding. A static BFD session must be manually created, and its type must be BFD for IP. To simplify configurations and reduce maintenance costs, run the e-trunk bfd enable command to enable a device to create a dynamic BFD session. After the command is run, the device automatically creates a BFD session and binds it to an E-Trunk. If the status of the user-side interface on a PE changes, to enable a dynamic BFD session to rapidly detect the change, run the e-trunk bfd enable track interface interface-type interface-number command to associate the dynamic BFD session with the interface.Prerequisites
BFD has been globally enabled using the bfd command in the system view.
Precautions
To ensure that the created dynamic BFD session can be successfully bound to an E-Trunk: