port link-aggregation group
Use port link-aggregation group to assign an interface to an aggregation group.
Use undo port link-aggregation group to remove an interface from the aggregation group to which it belongs.
Syntax
port link-aggregation group group-id [ force ]
undo port link-aggregation group
Default
An interface does not belong to any aggregation group.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Predefined user roles
network-admin
mdc-admin
Parameters
group-id: Specifies an aggregation group by its aggregate interface number. The value range for the number argument is 1 to 1024.
force: Enables the current interface to synchronize the attribute configurations from the aggregate interface. If you do not specify this keyword, the current interface does not synchronize attribute configurations from the aggregate interface when it joins the aggregation group. This keyword is supported only on Layer 2 Ethernet interfaces.
Usage guidelines
A Layer 2 Ethernet interface can be assigned to a Layer 2 aggregation group only. A Layer 3 Ethernet interface can be assigned to a Layer 3 aggregation group only.
An interface can belong to only one aggregation group.
The force keyword takes effect only when you assign the interface to an aggregation group. It cannot be saved in the running configuration or a configuration file.
Examples
# Assign Layer 2 Ethernet interface Ten-GigabitEthernet 1/0/1 to Layer 2 aggregation group 1.
<Sysname> system-view [Sysname] interface ten-gigabitethernet 1/0/1 [Sysname-Ten-GigabitEthernet1/0/1] port link-aggregation group 1
# Assign Layer 3 Ethernet interface Ten-GigabitEthernet 1/0/2 to Layer 3 aggregation group 2.
<Sysname> system-view [Sysname] interface ten-gigabitethernet 1/0/2 [Sysname-Ten-GigabitEthernet1/0/2] port link-aggregation group 2