The lacp track interface command associates the secondary member interface of an Eth-Trunk interface in LACP mode with its primary member interface and dynamically changes the priority of the secondary member interface.
The undo lacp track interface command restores the default configuration.
By default, the secondary member interface of an Eth-Trunk interface in LACP mode is not associated with its primary member interface.
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.
lacp track interface interface-type interface-number priority-reduced value
undo lacp track interface interface-type interface-number priority-reduced value
Parameter | Description | Value |
---|---|---|
interface-type interface-number | Specifies the type and number of an associated physical interface. |
- |
priority-reduced value | Specifies a value by which the priority is reduced. NOTE:
The new priority of the secondary member interface is the configured priority minus the value specified by priority-reduced value. The new priority of the secondary member interface must be less than the priority of the primary member interface. |
The value is an integer ranging from 0 to 65535. |
Usage Scenario
As shown in Figure 1, when no service is bound to the MA, an Eth-Trunk interface in LACP mode is configured on two devices. interface1 where the MEP 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.
Prerequisites
An Eth-Trunk interface has been configured to work in LACP mode using the mode lacp command in the Eth-Trunk interface view.
Precautions
An Eth-Trunk interface can have only two member interfaces. The maximum number of active links must be 1.
The lacp track interface command must be configured on the secondary member interface of an Eth-Trunk interface's Actor.
The secondary member interface must not be associated with another interface.
If the lacp track interface command has been run and the primary link has poor quality, the primary interface is triggered to go ETHOAM down. If the secondary link also has poor quality, a primary/secondary switchover is also performed because Y.1731 performance detection is not configured for the secondary link.
If the lacp track interface command has been run and the primary link has poor quality, the primary interface is triggered to go ETHOAM down. If the undo lacp track interface command is run to delete the configuration, two links cannot be selected within the timeout period. As a result, traffic is interrupted. Services can be restored only after the timeout period elapses.
<HUAWEI> system-view [HUAWEI] interface eth-trunk 1 [HUAWEI-Eth-Trunk1] mode lacp [HUAWEI-Eth-Trunk1] trunkport GigabitEthernet 0/0/1 to 0/0/2 [HUAWEI-Eth-Trunk1] max active-linknumber 1 [HUAWEI-Eth-Trunk1] quit [HUAWEI] interface GigabitEthernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] lacp track interface GigabitEthernet 0/0/2 priority-reduced 100