< Home

lacp force-switch

Function

The lacp force-switch command enables forcible switching when no preemption is configured for an Eth-Trunk interface in LACP mode or preemption is enabled but the delay is not reached.

By default, the switch does not enable forcible switching.

Only the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this command.

Format

lacp force-switch

Parameters

None

Views

Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Figure 1 Eth-Trunk interface in LACP mode

As shown in Figure 1, when no service is bound to the MA (Maintenance Association), an Eth-Trunk interface in LACP mode is configured on two devices. interface1 where the MEP (Maintenance End Point) resides is the interface of the Eth-Trunk interface's primary link. When the delay-measure two-way trigger if-down or loss-measure single-ended-synthetic trigger if-down command is configured on interface1, interface1 is triggered to go ETHOAM down if Y.1731 detects that the primary link has poor quality. To ensure that services are not interrupted, run the lacp track interface command in the Eth-Trunk member interface view to increase the priority of the secondary member interface interface2. The secondary link then preempts the primary state, implementing an automatic primary/secondary link switchover.

When the primary link's quality recovers, run the lacp force-switch command to enable forcible switching if no preemption is configured or preemption is enabled but the delay is not reached.

Prerequisites

The lacp track interface command has been run to associate the secondary member interface of an Eth-Trunk interface in LACP mode with its primary member interface and to dynamically change the priority of the secondary member interface.

Precautions

An Eth-Trunk interface can have only two member interfaces. The maximum number of active links must be 1.

Example

# Enable forcible switching on Eth-Trunk 1.

<HUAWEI> system-view
[HUAWEI] interface eth-trunk 1
[HUAWEI-Eth-Trunk1] lacp force-switch
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >