(Optional) Setting the Maximum Number of LAGs and the Maximum Number of Member Interfaces in Each LAG
Context
Generally, a switch supports a fixed maximum number of LAGs and a fixed maximum number of member interfaces in each LAG. When the modular device is equipped only with the following cards and the eth-trunk load-balance hash-mode has been used to set the hash mode to advanced, 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. Involved models and cards are as follows:
S12700: SC series, EE series, X series, and ET1D2X48SEC0 cards
Cards are classified into cards with and without Eth-Trunk specification extension.
Procedure
- Run:
system-view
The system view is displayed.
- Run:
assign trunk { trunk-group group-number | trunk-member member-number }*
The maximum number of LAGs and the maximum number of member interfaces in each LAG are set.
By default, the device supports a maximum of 128 LAGs and 8 member interfaces in each LAG. member-number can be 2, 4, 8, 16, or 32, and member-number multiplied by group-number cannot exceed 2048.
When this command is used to change Eth-Trunk specifications on a switch of V200R003, V200R005, or V200R006, you need to restart the switch to make the configuration take effect.
When this command is used to change Eth-Trunk specifications on a switch of V200R007 or later, you need to save the configuration and restart the switch to make the configuration take effect.
When this command is used to change Eth-Trunk specifications, there is no configuration on the switch. You can run the display trunk configuration command to check the configuration.
When the switch is equipped with all cards with Eth-Trunk specification extension and this command takes effect, if a card with Eth-Trunk specification extension is installed on this switch and the index of the Eth-Trunk is larger than 127, the card with Eth-Trunk specification extension works in advanced mode and the corresponding configuration is generated.
When the switch is equipped with all cards with Eth-Trunk specification extension and this command takes effect, if a card with Eth-Trunk specification extension is installed on this switch and the index of the Eth-Trunk is not larger than 127, the card with Eth-Trunk specification extension works in normal mode.
When the switch is configured with all cards with Eth-Trunk specification extension and this command takes effect, if a card without Eth-Trunk specification extension is installed on this switch and the value of member-number is larger than 8, the alarm IFPDT_1.3.6.1.4.1.2011.5.25.157.2.247_hwBoardNotSupportAssignTrunk is triggered.
- When the switch is configured with all cards with Eth-Trunk specification extension, this command takes effect. When a card without Eth-Trunk specification extension is installed on this switch, the index of the Eth-Trunk cannot be larger than 127. If the index of the Eth-Trunk is larger than 127, the card without Eth-Trunk specification extension fails to be registered and the switch generates the alarm L2IFPPI_1.3.6.1.4.1.2011.5.25.219.2.2.13_hwBoardPowerOff.
You can run the display reset-reason command to check the registration failure cause. The system displays the message "This LPU only supports the trunks with index 127 or smaller than 127." If the card without Eth-Trunk specification extension must be used, you must delete the Eth-Trunk with the index larger than 127.
The index is the internal number that the switch allocates to each Eth-Trunk, and is different from the Eth-Trunk ID. If the configured number of Eth-Trunks supported by the switch is larger than 128 and many Eth-Trunks are created on the switch, the index larger than 127 may be occupied. The card without Eth-Trunk specification extension can only use the index of 127 or smaller, the system checks the index and limits its registration. If the non-registered card without Eth-Trunk specification extension is reserved, this card cannot be registered even if the switch restarts.
The card without Eth-Trunk specification extension and the card with Eth-Trunk specification extension working in normal mode do not support Eth-Trunk specification extensions. If the switch that is configured with Eth-Trunk specification extensions is equipped with these cards, a maximum of eight Eth-Trunk member interfaces are allowed on these cards.
If incoming traffic enters the Eth-Trunk on the card without Eth-Trunk specification extension, outgoing traffic goes out of the card with Eth-Trunk specification extension, and the Eth-Trunk on the card with Eth-Trunk specification extension has more than eight member interfaces, traffic may be unevenly load balanced on the Eth-Trunk of the card with Eth-Trunk specification extension and known unicast traffic can be only sent out from the eight Eth-Trunk member interfaces.
On the switch used as the WLAN AC, when the X1E or X2E card is deployed at the user side and connects to downstream APs through an inter-card Eth-Trunk, if the X1E or X2E card is used at the network side, the number of used Eth-Trunks cannot reach the value specified by this command and the minimum of used Eth-Trunks may be half of the value specified by this command.
- If you use this command to modify Eth-Trunk specifications, the existing Eth-Trunk configuration will be invalid or lost. Exercise caution when you run this 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.
When the configured value of group-number is larger than 128 or the configured value of member-number is larger than 16, the switch can only use the enhanced mode to load balance known unicast packets. The common mode is invalid for the known unicast packets.