(Optional) Configuring the Working Mode of an Eth-Trunk in an E-Trunk
Context
You can configure the working mode for only the Eth-Trunks that have been added to an E-Trunk. The working mode of an Eth-Trunk can be automatic, forced master, or forced backup.
Procedure
- Run:
system-view
The system view is displayed.
- Run:
interface eth-trunk trunk-id
The Eth-Trunk interface view is displayed.
Only Eth-Trunks in LACP mode can be added to an E-Trunk.
- Run:
e-trunk mode { auto | force-master | force-backup }
A working mode of the Eth-Trunk in the E-Trunk is configured.
By default, an Eth-Trunk in an E-Trunk works in automatic mode.
The e-trunk mode command is valid only for the Eth-Trunk in an E-Trunk. When the Eth-Trunk is deleted from the E-Trunk, the configuration is deleted automatically.
When an Eth-Trunk is in auto mode, its master/backup status depends on the E-Trunk status of the local device and fault information of the remote Eth-Trunk.If the local E-Trunk is the master, the local Eth-Trunk works in master state.
If the local E-Trunk is the backup and the remote Eth-Trunk fails, the local Eth-Trunk works in master state. When the local Eth-Trunk receives a notification that the remote Eth-Trunk has recovered, the local Eth-Trunk becomes the backup again.
While the E-Trunk is running, changing the hello packet sending interval or timeout interval will cause the E-Trunk to alternate between the master and the backup. Before changing the hello packet sending interval or timeout interval, you are advised to configure member Eth-Trunks to work in forced master/backup state. After the new configuration takes effect, restore the working mode to auto.