< Home

assign trunk

Function

The assign trunk command sets the maximum number of link aggregation groups (LAGs) and the maximum number of member interfaces in each LAG.

The undo assign trunk command restores the default maximum number of LAGs and the default maximum number of member interfaces in each LAG.

Table 1 describes the default maximum numbers of LAGs and member interfaces in each LAG on a device.

Table 1 Default maximum numbers of LAGs and member interfaces in each LAG

Model

Default Maximum Number of LAGs

Default Maximum Number of Member Interfaces in each LAG

S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6730-H, S6730S-H, S6730-S, and S6730S-S

128

32

S6720-EI and S6720S-EI

128

8

This command is supported only on the S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6730-H, S6730S-H, S6730-S, S6730S-S, S6720-EI and S6720S-EI.

Format

assign trunk { trunk-group group-number | trunk-member member-number }*

undo assign trunk

Parameters

Parameter Description Value

trunk-groupgroup-number

Specifies the number of LAGs.

The value is an integer ranging 32 to 256 for the S5732-H, S6730-H, S6730S-H, S6730-S, and S6730S-S, and 32 to 128 for other models.

The value multiplied by member-number cannot exceed 2048 on the S6720-EI and S6720S-EI. The value multiplied by member-number cannot exceed 8192 on the S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6730-H, S6730S-H, S6730-S, and S6730S-S.

trunk-membermember-number

Specifies the maximum number of member interfaces in each LAG.

The value is an integer that can be 8, 16, 32, or 64.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In most cases, a switch supports a fixed maximum number of LAGs and a fixed maximum number of member interfaces in each LAG. On the S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6730-H, S6730S-H, S6730-S, S6730S-S, S6720-EI, and S6720S-EI, you can run the assign trunk command to set the maximum number of LAGs and the maximum number of member interfaces in each LAG, implementing flexible networking and meeting various service requirements.

Precautions

  • By default, if the value of member-number configured for an Eth-Trunk using the assign trunk { trunk-group group-number | trunk-member member-number }* command is larger than 16 on the S6720-EI and S6720S-EI or larger than 32 on the S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6730-H, S6730S-H, S6730-S, and S6730S-S, known unicast packets are load balanced using the enhanced mode, and broadcast, unknown-unicast, and multicast (BUM) packets are load balanced based on their source and destination MAC addresses. Known unicast packets must be load balanced using the enhanced mode (the load balancing mode can be configured using the load-balance command). Otherwise, packet loss or uneven load balancing may occur.
  • After the Eth-Trunk specifications are modified, save the configuration and restart the switch to make the modification take effect.

  • If you use the assign trunk command to modify Eth-Trunk specifications, the existing Eth-Trunk configuration will become invalid or be lost. Exercise caution when you run the assign trunk command. When the configured Eth-Trunk specifications are reduced and the Eth-Trunks that exceed the specifications are configured, the configuration of excess Eth-Trunks is invalid.

Example

# Set the maximum number of LAGs to 64 and the maximum number of member interfaces in each LAG to 16.

<HUAWEI> system-view
[HUAWEI] assign trunk trunk-group 64 trunk-member 16
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >