Cisco Nexus 5000 Series Switch CLI Software Configuration Guide (OL-16597-01, July 2009)
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Specifies the port-channel interface to configure, and
enters the interface configuration mode. The range is
switch(config)# interface port-channel
channel-number
Step 2
from 1 to 4096. Cisco NX-OS automatically creates
the channel group if it does not already exist.
Removes the EtherChannel and deletes the associated
channel group.
switch(config)# no interface
port-channel channel-number
Step 3
This example shows how to create an EtherChannel:
switch# configure terminal
switch (config)# interface port-channel 1
Adding a Port to an EtherChannel
You can add a port to a new channel group or to a channel group that already contains ports. Cisco NX-OS
creates the EtherChannel associated with this channel group if the EtherChannel does not already exist.
If you want LACP-based EtherChannels, you need to enable LACP.Note
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Specifies the interface that you want to add to a channel
group and enters the interface configuration mode.
switch(config)# interface type
slot/port
Step 2
(Optional)
Configures the interface as a trunk port.
switch(config-if)# switchport mode
trunk
Step 3
(Optional)
Configures necessary parameters for a trunk port.
switch(config-if)# switchport trunk
{allowed vlan vlan-id | native vlan
vlan-id}
Step 4
Configures the port in a channel group and sets the
mode. The channel-number range is from 1 to 4096.
switch(config-if)# channel-group
channel-number
Step 5
Cisco NX-OS creates the EtherChannel associated with
this channel group if the EtherChannel does not already
exist. This is called implicit EtherChannel creation.
(Optional)
Removes the port from the channel group. The port
reverts to its original configuration.
switch(config-if)# no channel-group
Step 6
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
118 OL-16597-01
Configuring EtherChannels
Adding a Port to an EtherChannel