The lacp port-role command sets a role for a member interface of an Eth-Trunk interface in static LACP mode.
The undo lacp port-role command restores the default setting.
By default, the role is set to none for the member interfaces of an Eth-Trunk interface in static LACP mode, indicating that no role is set.
Parameter | Description | Value |
---|---|---|
master |
Sets the master role for a member interface of an Eth-Trunk interface in static LACP mode. |
- |
slave |
Sets the backup role for a member interface of an Eth-Trunk interface in static LACP mode. |
- |
none |
Sets no role for a member interface of an Eth-Trunk interface in static LACP mode. |
- |
Usage Scenario
When member interfaces of an Eth-Trunk interface in static LACP mode do not all reside on the same traffic manager (TM) but you want those on the same TM to negotiate first, run the lacp port-role master command in the views of the member interfaces on the same TM to set the master role for them. These member interfaces then negotiate first.If the member interfaces with the master role fail to meet the condition for the Eth-Trunk interface to go Up, the member interfaces with the backup role begin to negotiate. Those without any role do not participate in LACP negotiation.
Prerequisites
An Eth-Trunk interface has been enabled to work in static LACP master/backup negotiation mode using the lacp backup-mode enable command.
<HUAWEI> system-view [~HUAWEI] interface eth-trunk 10 [*HUAWEI-Eth-Trunk10] mode lacp-static [*HUAWEI-Eth-Trunk10] lacp backup-mode enable [*HUAWEI-Eth-Trunk10] quit [*HUAWEI] interface GigabitEthernet 0/1/1 [*HUAWEI-GigabitEthernet0/1/1] eth-trunk 10 [*HUAWEI-GigabitEthernet0/1/1] lacp port-role master