lacp port-role

Function

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.

Format

lacp port-role { master | slave | none }

undo lacp port-role [ master | slave | none ]

Parameters

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.

-

Views

100GE interface view, 10GE interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE interface view, FlexE interface view, Layer 2 GE interface view, GE optical interface view, GE interface view, GE electrical interface view, Interface group view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
trunk write

Usage Guidelines

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.

Example

# Set the master role for GE 0/1/1 of Eth-Trunk 10 in static LACP mode.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >