mac
Commands for Port Channel
136
8.7 port-group
Command: port-group <port-group-number>
no port-group <port-group-number>
Function: Creates a port group. The no command deletes that group.
Parameters: <port-group-number> is the group number of a port channel from 1~14.
Default: There is no port-group.
Command mode: Global Mode
Example: Creating a port group.
Switch(config)# port-group 1
Delete a port group.
Switch(config)#no port-group 1
8.8 port-group mode
Command: port-group <port-group-number> mode {active | passive | on}
no port-group
Function: Add a physical port to port channel, the no operation removes specified port
from the port channel.
Parameters: <port-group-number> is the group number of port channel, from 1~14;
active enables LACP on the port and sets it in Active mode; passive enables LACP on
the port and sets it in Passive mode; on forces the port to join a port channel without
enabling LACP.
Command mode: Port Mode.
Default: Switch ports do not belong to a port channel by default; LACP not enabled by
default.
Usage Guide: If the specified port group does not exist, then print a error message. All
ports in a port group must be added in the same mode, i.e., all ports use the mode used
by the first port added. Adding a port in “on” mode is a “forced” action, which means the
local end switch port aggregation does not rely on the information of the other end, port
aggregation will succeed as long as all ports have consistent VLAN information. Adding
a port in “active” or “passive” mode enables LACP. Ports of at least one end must be
added in “active” mode, if ports of both ends are added in “passive” mode, the ports will
never aggregate.
Example: Under the Port Mode of Ethernet1/1, add current port to “port-group 1” in
“active” mode.
Switch(Config-If-Ethernet1/1)#port-group 1 mode active










