138
otherwise, the group will be deleted.
Parameters:
<port-group-number>
is the group number of a port channel from 1 to 8, if
the group number is already exist, an error message will be given.
dst-mac
performs
load balancing according to destination MAC;
src-mac
performs load balance according
to source MAC;
dst-src-mac
performs load balancing according to source and
destination MAC;
dst-ip
performs load balancing according to destination IP;
src-ip
performs load balancing according to source IP;
dst-src-ip
performs load balancing
according to destination and source IP. If a port group has formed a port-channel, the
load balance setting cannot be modified, please set the load balance mode before
port-channel.
Default:
Switch ports do not belong to a port channel by default; LACP not enabled by
default.
Command mode:
Global Mode
Example:
Creating a port group and setting the default load balance method.
Switch(C
onfig)# port-group 1
Delete a port group.
Switch(C
onfig)#no port-group 1
4.3.3 port-group mode
Command: port-group <port-group-number> mode {active|passive|on}
no port-group <port-group-number>
Function:
Adds a physical port to port channel, the “
no port-group
<port-group-number>
“ removes specified port from the port channel.
Parameters:
<port-group-number>
is the group number of port channel, from 1 to 8;
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:
Interface 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, a group will be created first to
add the ports. 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 there are 2 or more ports in the group
and 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