Configuring Link Aggregation 831
Configuring Link Aggregation Groups
Beginning in Privileged EXEC mode, use the following commands to add 
ports as LAG members and to configure the LAG hashing mode.
Command Purpose
configure Enter global configuration mode.
interface 
interface
Enter interface configuration mode for the specified port. 
The 
interface
 variable includes the interface type and 
number, for example gigabitethernet 1/0/3.
You can also specify a range of ports with the interface 
range command, for example, interface range 
gigabitethernet 1/0/8-12 configures interfaces 8, 9, 10, 11, 
and 12.
channel-group 
port-
channel-number
 mode 
{on | auto}
Add the port(s) to the LAG specified with the 
port-
channel-number
 value. Use the auto keyword to add the 
port(s) as dynamic members, or use on to specify that the 
LAG membership is static.
•
port-channel-number
 — Number of a valid port-channel 
for the current port to join.
•
on
 — Forces the port to join a channel without LACP.
•
auto
 — Forces the port to join a channel with LACP.
exit Exit to Global Config mode.
interface port-channel 
number
Enter interface configuration mode for the specified LAG.
You can also specify a range of LAGs to configure with the 
interface range port-channel command, for example, 
interface range port-channel 1-3,10 configures LAGs 1, 2, 
3, and 10.