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.
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.
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. |
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
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.