(Optional) Setting the Timeout Interval of Hello Packets
Context
If the backup device in an E-Trunk does not receive any hello packet from the master device within the timeout interval, the backup device becomes the master. The timeout interval is the one specified in the hello packets sent by the remote device, not the timeout interval configured on the local device.
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.
Procedure
- Run:
system-view
The system view is displayed.
- Run:
e-trunk e-trunk-id
The E-Trunk view is displayed.
- Run:
timer hello hello-times
The interval for sending hello packets is set.
By default, the value of hello-times is 10. The unit is 100 ms, so the default interval is 1s.
- Run:
timer hold-on-failure multiplier multiplier
The time multiplier for detecting hello packets is set.
The remote device checks the timeout interval in the received hello packet to determine whether the local device times out. If the remote device is the backup and does not receive hello packets from the local device within the timeout interval, the remote device becomes the master.
The timeout interval is calculated using the following formula:
Timeout interval = Interval for sending hello packets x Time multiplier
The default time multiplier is 20. It is recommended that you set the time multiplier to 3 or more.