link-aggregation selected-port maximum
Use link-aggregation selected-port maximum to configure the maximum number of Selected ports allowed in an aggregation group.
Use undo link-aggregation selected-port maximum to restore the default.
Syntax
link-aggregation selected-port maximum number
undo link-aggregation selected-port maximum
Default
The maximum number of Selected ports allowed in an aggregation group is 32.
Views
Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
number: Specifies the maximum number of Selected ports allowed in an aggregation group, in the range of 1 to 32.
Usage guidelines
Executing this command might cause some of the Selected ports in an aggregation group to become Unselected ports.
The maximum number of Selected ports allowed in the aggregation groups of the local and peer ends must be consistent.
The maximum number of Selected ports allowed in an aggregation group is limited by one of the following values, whichever is smaller:
Maximum number configured by using the link-aggregation selected-port maximum command.
Hardware limitation.
You can configure backup between two ports by performing the following tasks:
Assigning two ports to an aggregation group.
Setting the maximum number of Selected ports to 1 for the aggregation group.
Then, only one Selected port is allowed in the aggregation group at any point in time, while the Unselected port acts as a backup port.
Examples
# Set the maximum number of Selected ports to 5 for Layer 2 aggregation group 1.
<Sysname> system-view [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] link-aggregation selected-port maximum 5
Related commands
link-aggregation irf-enhanced
link-aggregation selected-port minimum