port-channel-rangeList of port-channels to configure. Separate non-consecutive port-channels with a comma and no spaces. A hyphen designates a range of port-channels.
allAll the channel-ports
Default Configuration
This command has no default configuration.
Command Mode
Global Configuration Mode
User Guidelines
Commands under the interface range context are executed independently on each interface in the range. If the command returns an error on one of the interfaces, it stops the execution of the command on subsequent interfaces.
Example
The following example groups port-channel 1, 2, and 6 to receive the same command.
Console(config)# interface range port-channel 1-2, 6
Console(config-if)#
channel-group
The channel-group interface configuration command associates a port with a port-channel. To remove a port from a port-channel, use the no form of this command.
Syntax
channel-groupport-channel-numbermode {on | auto}
no channel-group
port_channel_numberThe port-channel number for the current port to join.
onForces the port to join a channel.
autoAllows the port to join a channel as a result of an LACP operation.
Default Configuration
The port is not assigned to any port-channel.
Command Mode
Interface Configuration (Ethernet) Mode
User Guidelines
There are no user guidelines for this command.
Example
The following example configures port 1/e5 to port-channel number 1 without LACP.
(config)# interface ethernet 1/e5
(config-if)# channel-group 1 mode on
show interfaces port-channel
Use the show interfaces port-channel privileged EXEC command to display port-channel information (which ports are members of that port-channel, and whether they are currently active or not).
Syntax
show interfaces port-channel [port-channel-number]
port_channel_numberThe port-channel to display.
Default Configuration
This command has no default configuration.
Command Mode
Privileged EXEC Mode
User Guidelines
There are no user guidelines for this command.
Example
The following example displays all port-channel information.