If the master device in an E-Trunk fails, to ensure that the backup device promptly detects the failure and takes over traffic, bind the E-Trunk to a Bidirectional Forwarding Detection (BFD) session for fast failure detection.
Manually create a BFD session and bind it to an E-Trunk.
Enable a device to automatically create a BFD session and bind the session to an E-Trunk.
After a device is enabled to create a dynamic BFD session, the device automatically creates a BFD session and binds it to an E-Trunk.
Run system-view
The system view is displayed.
Run e-trunk e-trunk-id
The E-Trunk view is displayed.
Run e-trunk track bfd-session session-name bfd-session-name
A BFD session is bound to the E-Trunk.
Run commit
The configuration is committed.
Run system-view
The system view is displayed.
Run e-trunk e-trunk-id
The E-Trunk view is displayed.
Run e-trunk bfd enable [ track interface { interface-name | interface-type interface-number } ]
The device is enabled to create a dynamic BFD session. The device automatically creates a BFD session and binds it to an E-Trunk.
For example, an E-Trunk is deployed on PE1 and PE2. To enable a dynamic BFD session to rapidly detect the changes in the user-side interface on a PE, run the e-trunk bfd enable track interface interface-type interface-number command to associate the dynamic BFD session with the interface.
(Optional) Run e-trunk bfd { detect-multiplier multiplier | min-rx-interval mintx | min-tx-interval imintx }*
The local detection multiplier, minimum interval between receiving BFD packets, and minimum interval between sending BFD packets are set for the dynamic BFD session.
You can set proper BFD session parameters as required.
If a device does not receive BFD packets from its peer within a specified detection period, the device considers the link faulty and sets the BFD session to Down. To reduce system resource consumption, the device automatically changes the local receive interval to a random value greater than 1000 ms after detecting that the BFD session goes Down. When the BFD session goes Up again, the device restores the configured receive interval.
Run commit
The configuration is committed.