Configuring Port Channels
Configuring Port Channels
This chapter describes how to configure port channels and to apply and configure the Link Aggregation
Control Protocol (LACP) for more efficient use of port channels in the Cisco NX-OS devices.
On a single switch, the port-channel compatibility parameters must be the same among all the port-channel
members on the physical switch.
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
1
Configuring Port Channels
Port Channels
You can apply port security to port channels. See the Cisco Nexus 9000 Series NX-OS Security Configuration
Guide for information about port security.
You can also change the port channel from Layer 3 to Layer 2. See the Configuring Layer 2 Interfaces chapter
for information about creating Layer 2 interfaces.
Any configuration changes that you apply to the port channel are applied to each member interface of that
port channel. For example, if you configure Spanning Tree Protocol (STP) parameters on the port channel,
the Cisco NX-OS software applies those parameters to each interface in the port channel.
Note After a Layer 2 port becomes part of a port channel, all switchport configurations must be done on the
port channel; you can no longer apply switchport configurations to individual port-channel members. You
cannot apply Layer 3 configurations to an individual port-channel member either; you must apply the
configuration to the entire port channel.
You can use static port channels, with no associated aggregation protocol, for a simplified configuration.
For more flexibility, you can use the Link Aggregation Control Protocol (LACP), which is defined in IEEE
802.3ad. When you use LACP, the link passes protocol packets. You cannot configure LACP on shared
interfaces.
See the LACP Overview section for information about LACP.
Port Channels
A port channel bundles physical links into a channel group to create a single logical link that provides the
aggregate bandwidth of up to 32 physical links. If a member port within a port channel fails, the traffic
previously carried over the failed link switches to the remaining member ports within the port channel.
However, you can enable the LACP to use port channels more flexibly. Configuring port channels with LACP
and static port channels require a slightly different procedure (see the “Configuring Port Channels” section).
Note The device does not support Port Aggregation Protocol (PAgP) for port channels.
Each port can be in only one port channel. All the ports in a port channel must be compatible; they must use
the same speed and duplex mode (see the “Compatibility Requirements” section). When you run static port
channels with no aggregation protocol, the physical links are all in the on channel mode; you cannot change
this mode without enabling LACP (see the “Port-Channel Modes” section).
You can create port channels directly by creating the port-channel interface, or you can create a channel group
that acts to aggregate individual ports into a bundle. When you associate an interface with a channel group,
the software creates a matching port channel automatically if the port channel does not already exist. In this
instance, the port channel assumes the Layer 2 or Layer 3 configuration of the first interface. You can also
create the port channel first. In this instance, the Cisco NX-OS software creates an empty channel group with
the same channel number as the port channel and takes the default Layer 2 or Layer 3 configuration, as well
as the compatibility configuration (see the “Compatibility Requirements” section).
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
2
Configuring Port Channels
Port-Channel Interfaces
Note The port channel is operationally up when at least one of the member ports is up and that port’s status is
channeling. The port channel is operationally down when all member ports are operationally down.
Port-Channel Interfaces
The following shows port-channel interfaces.
You can classify port-channel interfaces as Layer 2 or Layer 3 interfaces. In addition, you can configure Layer
2 port channels in either access or trunk mode. Layer 3 port-channel interfaces have routed ports as channel
members.
You can configure a Layer 3 port channel with a static MAC address. If you do not configure this value, the
Layer 3 port channel uses the router MAC of the first channel member to come up. See the Cisco Nexus 9000
Series NX-OS Layer 2 Switching Configuration Guide for information about configuring static MAC addresses
on Layer 3 port channels.
See the "Configuring Layer 2 Interfaces" chapter for information about configuring Layer 2 ports in access
or trunk mode and the "Configuring Layer 3 Interfaces" chapter for information about configuring Layer 3
interfaces and subinterfaces.
Basic Settings
You can configure the following basic settings for the port-channel interface:
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
3
Configuring Port Channels
Compatibility Requirements
• Bandwidth—Use this setting for informational purposes only; this setting is to be used by higher-level
protocols.
• Delay—Use this setting for informational purposes only; this setting is to be used by higher-level
protocols.
• Description
• Duplex
• IP addresses
• Maximum Transmission Unit (MTU)
• Shutdown
• Speed
Compatibility Requirements
When you add an interface to a channel group, the software checks certain interface attributes to ensure that
the interface is compatible with the channel group. For example, you cannot add a Layer 3 interface to a Layer
2 channel group. The Cisco NX-OS software also checks a number of operational attributes for an interface
before allowing that interface to participate in the port-channel aggregation.
The compatibility check includes the following operational attributes:
• Network layer
• (Link) speed capability
• Speed configuration
• Duplex capability
• Duplex configuration
• Port mode
• Access VLAN
• Trunk native VLAN
• Tagged or untagged
• Allowed VLAN list
• MTU size
• SPAN—Cannot be a SPAN source or a destination port
• Storm control
• Flow-control capability
• Flow-control configuration
• Media type, either copper or fiber
Use the show port-channel compatibility-parameters command to see the full list of compatibility checks
that the Cisco NX-OS uses.
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
4
Configuring Port Channels
Compatibility Requirements
You can only add interfaces configured with the channel mode set to on to static port channels, and you can
only add interfaces configured with the channel mode as active or passive to port channels that are running
LACP. You can configure these attributes on an individual member port. If you configure a member port with
an incompatible attribute, the software suspends that port in the port channel.
Alternatively, you can force ports with incompatible parameters to join the port channel if the following
parameters are the same:
• (Link) speed capability
• Speed configuration
• Duplex capability
• Duplex configuration
• Flow-control capability
• Flow-control configuration
When the interface joins a port channel, some of its individual parameters are removed and replaced with the
values on the port channel as follows:
• Bandwidth
• Delay
• Extended Authentication Protocol over UDP
• VRF
• IP address
• MAC address
• Spanning Tree Protocol
• NAC
• Service policy
• Access control lists (ACLs)
Many interface parameters remain unaffected when the interface joins or leaves a port channel as follows:
• Beacon
• Description
• CDP
• LACP port priority
• Debounce
• UDLD
• MDIX
• Rate mode
• Shutdown
• SNMP trap
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
5
Configuring Port Channels
Load Balancing Using Port Channels
Note When you delete the port channel, the software sets all member interfaces as if they were removed from
the port channel.
See the “LACP Marker Responders” section for information about port-channel modes.
Non-IP and Layer 3 port channels both follow the configured load-balancing method, using the source,
destination, or source and destination parameters. For example, when you configure load balancing to use the
source IP address, all non-IP traffic uses the source MAC address to load balance the traffic while the Layer
3 traffic load balances the traffic using the source IP address. Similarly, when you configure the destination
MAC address as the load-balancing method, all Layer 3 traffic uses the destination IP address while the non-IP
traffic load balances using the destination MAC address.
You can configure load balancing either by the entire system or by specific modules.
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
6
Configuring Port Channels
Symmetric Hashing
The load-balancing algorithms that use port channels do not apply to multicast traffic. Regardless of the
load-balancing algorithm you have configured, multicast traffic uses the following methods for load balancing
with port channels:
• Multicast traffic with Layer 4 information—Source IP address, source port, destination IP address,
destination port
• Multicast traffic without Layer 4 information—Source IP address, destination IP address
• Non-IP multicast traffic—Source MAC address, destination MAC address
Note Devices that run Cisco IOS can optimize the behavior of the member ports ASICs if a failure of a single
member occurred by running the port-channel hash-distribution command. The Cisco Nexus 9000 Series
device performs this optimization by default and does not require or support this command. Cisco NX-OS
does support the customization of the load-balancing criteria on port channels through the port-channel
load-balance command, either for the entire device or on a per-module basis.
Symmetric Hashing
To be able to effectively monitor traffic on a port channel, it is essential that each interface connected to a
port channel receives both forward and reverse traffic flows. Normally, there is no guarantee that the forward
and reverse traffic flows will use the same physical interface. However, when you enable symmetric hashing
on the port channel, bidirectional traffic is forced to use the same physical interface and each physical interface
in the port channel is effectively mapped to a set of flows.
When symmetric hashing is enabled, the parameters used for hashing, such as the source and destination IP
address, are normalized before they are entered into the hashing algorithm. This process ensures that when
the parameters are reversed (the source on the forward traffic becomes the destination on the reverse traffic),
the hash output is the same. Therefore, the same interface is chosen.
Only the following load-balancing algorithms support symmetric hashing:
• src-dst ip
• src-dst ip-l4port
LACP
LACP allows you to configure up to 16 interfaces into a port channel.
LACP Overview
Note You must enable LACP before you can use LACP. By default, LACP is disabled.
See the “Enabling LACP” section for information about enabling LACP.
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
7
Configuring Port Channels
Port-Channel Modes
The system automatically takes a checkpoint before disabling the feature, and you can roll back to this
checkpoint. See the Cisco Nexus 9000 Series NX-OS System Management Configuration Guide for information
about rollbacks and checkpoints.
The following figure shows how individual links can be combined into LACP port channels and channel
groups as well as function as individual links.
Note When you delete the port channel, the software automatically deletes the associated channel group. All
member interfaces revert to their original configuration.
You cannot disable LACP while any LACP configurations are present.
Port-Channel Modes
Individual interfaces in port channels are configured with channel modes. When you run static port channels
with no aggregation protocol, the channel mode is always set to on.
After you enable LACP globally on the device, you enable LACP for each channel by setting the channel
mode for each interface to active or passive. You can configure either channel mode for individual links in
the LACP channel group when you are adding the links to the channel group.
Note You must enable LACP globally before you can configure an interface in either the active or passive
channel mode.
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
8
Configuring Port Channels
LACP ID Parameters
Both the passive and active modes allow LACP to negotiate between ports to determine if they can form a
port channel based on criteria such as the port speed and the trunking state.The passive mode is useful when
you do not know whether the remote system, or partner, supports LACP.
Ports can form an LACP port channel when they are in different LACP modes if the modes are compatible
as in the following examples:
• A port in active mode can form a port channel successfully with another port that is in active mode.
• A port in active mode can form a port channel with another port in passive mode.
• A port in passive mode cannot form a port channel with another port that is also in passive mode, because
neither port will initiate negotiation.
• A port in on mode is not running LACP and cannot form a port channel with another port that is in
active or passive mode.
LACP ID Parameters
This section describes the LACP parameters.
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
9
Configuring Port Channels
LACP Marker Responders
Note The LACP system ID is the combination of the LACP system priority value and the MAC address.
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
10
Configuring Port Channels
LACP-Enabled and Static Port Channels Differences
Table 2: Port Channels with LACP Enabled and Static Port Channels
Delayed LACP
LACP port-channels exchange LACP PDUs for quick bundling of links when connecting a server and a switch.
However, the links go into suspended state when the PDUs are not received.
The delayed LACP feature enables one port-channel member, the delayed-LACP port, to come up first as a
member of a regular port-channel before LACP PDUs are received. After it is connected in LACP mode,
other members, the auxiliary LACP ports, are brought up. This avoids having the links becoming suspended
when PDUs are not received.
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
11
Configuring Port Channels
LACP Fast Timers
The LACP MaxBundle defines the maximum number of bundled ports allowed in a LACP port channel.
The LACP MaxBundle feature does the following:
• Defines an upper limit on the number of bundled ports in an LACP port channel.
• Allows hot-standby ports with fewer bundled ports. (For example, in an LACP port channel with five
ports, you can designate two of those ports as hot-standby ports.)
Note The minimum links and maxbundle feature works only with LACP port channels. However, the device
allows you to configure this feature in non-LACP port channels, but the feature is not operational.
Virtualization Support
You must configure the member ports and other port channel-related configuration from the virtual device
context (VDC) that contains the port channel and member ports. You can use the numbers from 1 to 4096 in
each VDC to number the port channels.
All ports in one port channel must be in the same VDC. When you are using LACP, all possible 8 active ports
and all possible 8 standby ports must be in the same VDC.
Note The port-channeling load-balancing mode works either for a single module or across the entire device.
You must configure load balancing using port channels in the default VDC. See the “Load Balancing
Using Port Channels” section on page 6-6 for more information about load balancing.
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
12
Configuring Port Channels
High Availability
High Availability
Port channels provide high availability by load balancing traffic across multiple ports. If a physical port fails,
the port channel is still operational if there is an active member in the port channel. You can bundle ports
from different modules and create a port channel that remains operational even if a module fails because the
settings are common across the module.
Port channels support stateful and stateless restarts. A stateful restart occurs on a supervisor switchover. After
the switchover, the Cisco NX-OS software applies the runtime configuration after the switchover.
The port channel goes down if the operational ports fall below the configured minimum links number.
Note See the Cisco Nexus 9000 Series NX-OS High Availability and Redundancy Guide for complete information
about high-availability features.
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
13
Configuring Port Channels
Default Settings
Default Settings
The following table lists the default settings for port-channel parameters.
Parameters Default
Port channel Admin up
Load balancing method for Layer 3 interfaces Source and destination IP address
Load balancing method for Layer 2 interfaces Source and destination MAC address
LACP Disabled
Channel mode on
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
14
Configuring Port Channels
Configuring Port Channels
Parameters Default
Maxbundle 32
Note See the "Configuring Basic Interface Parameters” chapter for information about configuring the maximum
transmission unit (MTU) for the port-channel interface. See the “Configuring Layer 3 Interfaces” chapter
for information about configuring IPv4 and IPv6 addresses on the port-channel interface.
Note If you are familiar with the Cisco IOS CLI, be aware that the Cisco NX-OS commands for this feature
might differ from the Cisco IOS commands that you would use.
Note When the port channel is created before the channel group, the port channel should be configured with
all of the interface attributes that the member interfaces are configured with. Use the switchport mode
trunk {allowed vlan vlan-id | native vlan-id} command to configure the members.
This is required only when the channel group members are Layer 2 ports (switchport) and trunks (switchport
mode trunk).
Note Use the no interface port-channel command to remove the port channel and delete the associated channel
group.
Command Purpose
no interface port-channel channel-number Removes the port channel and deletes the
associated channel group.
Example:
switch(config)# no interface port-channel 1
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
15
Configuring Port Channels
Creating a Port Channel
SUMMARY STEPS
1. configure terminal
2. interface port-channel channel-number
3. show port-channel summary
4. show interface status error policy [detail]
5. no shutdown
6. copy running-config startup-config
DETAILED STEPS
Example:
switch# configure terminal
switch(config)#
Step 2 interface port-channel channel-number Specifies the port-channel interface to configure, and enters the
interface configuration mode. The range is from 1 to 4096. The
Example: Cisco NX-OS software automatically creates the channel group if
switch(config)# interface port-channel 1 it does not already exist.
switch(config-if)
Step 3 show port-channel summary (Optional) Displays information about the port channel.
Example:
switch(config-router)# show port-channel
summary
Step 4 show interface status error policy [detail] (Optional) Displays the interfaces and VLANs that produce an
error during policy programming to ensure that policies are
Example: consistent with hardware policies.
switch# show interface status error policy
detail
Use the detail command to display the details of the interfaces that
produce an error.
Step 5 no shutdown (Optional) Clears the errors on the interfaces and VLANs where
policies correspond with hardware policies. This command allows
Example: policy programming to continue and the port to come up. If policies
switch# configure terminal do not correspond, the errors are placed in an error-disabled policy
switch(config)# int e3/1 state.
switch(config-if)# no shutdown
Step 6 copy running-config startup-config (Optional) Copies the running configuration to the startup
configuration.
Example:
switch(config)# copy running-config
startup-config
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
16
Configuring Port Channels
Adding a Layer 2 Port to a Port Channel
Note Use the no channel-group command to remove the port from the channel group.
Command Purpose
no channel-group Removes the port from the channel group.
Example:
switch(config)# no channel-group
SUMMARY STEPS
1. configure terminal
2. interface type slot/port
3. switchport
4. switchport mode trunk
5. switchport trunk {allowed vlan vlan-id | native vlan-id}
6. channel-group channel-number [force] [mode {on | active | passive}]
7. show interface type slot/port
8. show interface status error policy [detail]
9. no shutdown
10. copy running-config startup-config
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
17
Configuring Port Channels
Adding a Layer 2 Port to a Port Channel
DETAILED STEPS
Example:
switch# configure terminal
switch(config)#
Step 2 interface type slot/port Specifies the interface that you want to add to a channel group, and
enters the interface configuration mode.
Example:
switch(config)# interface ethernet 1/4
switch(config-if)#
Example:
switch(config)# switchport
Step 4 switchport mode trunk (Optional) Configures the interface as a Layer 2 trunk port.
Example:
switch(config)# switchport mode trunk
Step 5 switchport trunk {allowed vlan vlan-id | native (Optional) Configures necessary parameters for a Layer 2 trunk port.
vlan-id}
Example:
switch(config)# switchport trunk native 3
switch(config-if)#
Step 6 channel-group channel-number [force] [mode Configures the port in a channel group and sets the mode. The
{on | active | passive}] channel-number range is from 1 to 4096. This command creates the
port channel associated with this channel group if the port channel
Example: does not already exist. All static port-channel interfaces are set to
mode on. You must set all LACP-enabled port-channel interfaces
• switch(config-if)# channel-group 5
to active or passive. The default mode is on.
• switch(config-if)# channel-group 5
force (Optional) Forces an interface with some incompatible configurations
to join the channel. The forced interface must have the same speed,
duplex, and flow control settings as the channel group.
Note The force option fails if the port has a QoS policy mismatch
with the other members of the port channel.
Step 7 show interface type slot/port (Optional) Displays interface information.
Example:
switch# show interface port channel 5
Step 8 show interface status error policy [detail] (Optional) Displays the interfaces and VLANs that produce an error
during policy programming to ensure that policies are consistent
Example: with hardware policies.
switch# show interface status error policy
detail
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
18
Configuring Port Channels
Adding a Layer 3 Port to a Port Channel
Step 9 no shutdown (Optional) Clears the errors on the interfaces and VLANs where
policies correspond with hardware policies. This command allows
Example: policy programming to continue and the port to come up. If policies
switch# configure terminal do not correspond, the errors are placed in an error-disabled policy
switch(config)# int e3/1 state.
switch(config-if)# no shutdown
Step 10 copy running-config startup-config (Optional) Copies the running configuration to the startup
configuration.
Example:
switch(config)# copy running-config
startup-config
This example shows how to add a Layer 2 Ethernet interface 1/4 to channel group 5:
switch# configure terminal
switch (config)# interface ethernet 1/4
switch(config-if)# switchport
switch(config-if)# channel-group 5
Note Use the no channel-group command to remove the port from the channel group. The port reverts to its
original configuration. You must reconfigure the IP addresses for this port.
Command Purpose
no channel-group Removes the port from the channel group.
Example:
switch(config)# no channel-group
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
19
Configuring Port Channels
Adding a Layer 3 Port to a Port Channel
SUMMARY STEPS
1. configure terminal
2. interface type slot/port
3. no switchport
4. channel-group channel-number [force] [mode {on | active | passive}]
5. show interface type slot/port
6. show interface status error policy [detail]
7. no shutdown
8. copy running-config startup-config
DETAILED STEPS
Example:
switch# configure terminal
switch(config)#
Step 2 interface type slot/port Specifies the interface that you want to add to a channel group, and
enters the interface configuration mode.
Example:
switch(config)# interface ethernet 1/4
switch(config-if)#
Example:
switch(config-if)# no switchport
Step 4 channel-group channel-number [force] [mode Configures the port in a channel group and sets the mode. The
{on | active | passive}] channel-number range is from 1 to 4096. The Cisco NX-OS software
creates the port channel associated with this channel group if the
Example: port channel does not already exist.
• switch(config-if)# channel-group 5 (Optional) Forces an interface with some incompatible
channel-group 5 configurations to join the channel. The forced interface must have
• switch(config-if)#
force the same speed, duplex, and flow control settings as the channel
group.
Example:
switch# show interface ethernet 1/4
Step 6 show interface status error policy [detail] (Optional) Displays the interfaces and VLANs that produce an error
during policy programming to ensure that policies are consistent
Example: with hardware policies.
switch# show interface status error policy
detail
Use the detail command to display the details of the interfaces that
produce an error.
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
20
Configuring Port Channels
Configuring the Bandwidth and Delay for Informational Purposes
Step 8 copy running-config startup-config (Optional) Copies the running configuration to the startup
configuration.
Example:
switch(config)# copy running-config
startup-config
This example shows how to add a Layer 3 Ethernet interface 1/5 to channel group 6 in on mode:
switch# configure terminal
switch (config)# interface ethernet 1/5
switch(config-if)# switchport
switch(config-if)# channel-group 6
This example shows how to create a Layer 3 port-channel interface and assign the IP address:
switch# configure terminal
switch (config)# interface port-channel 4
switch(config-if)# ip address 192.0.2.1/8
SUMMARY STEPS
1. configure terminal
2. interface port-channel channel-number
3. bandwidth value
4. delay value
5. exit
6. show interface port-channel channel-number
7. copy running-config startup-config
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
21
Configuring Port Channels
Configuring the Bandwidth and Delay for Informational Purposes
DETAILED STEPS
Example:
switch# configure terminal
switch(config)#
Step 2 interface port-channel channel-number Specifies the port-channel interface that you want to configure,
and enters the interface mode.
Example:
switch(config)# interface port-channel 2
switch(config-if)#
Step 3 bandwidth value Specifies the bandwidth, which is used for informational
purposes. The range is from 1 to 80,000,000 kbs. The default
Example: value depends on the total active interfaces in the channel
switch(config-if)# bandwidth 60000000 group.
switch(config-if)#
Step 4 delay value Specifies the throughput delay, which is used for informational
purposes. The range is from 1 to 16,777,215 tens of
Example: microseconds. The default value is 10 microseconds.
switch(config-if)# delay 10000
switch(config-if)#
Step 5 exit Exits the interface mode and returns to the configuration mode.
Example:
switch(config-if)# exit
switch(config)#
Step 6 show interface port-channel channel-number (Optional) Displays interface information for the specified
port channel.
Example:
switch# show interface port-channel 2
Step 7 copy running-config startup-config (Optional) Copies the running configuration to the startup
configuration.
Example:
switch(config)# copy running-config
startup-config
This example shows how to configure the informational parameters of the bandwidth and delay for port
channel 5:
switch# configure terminal
switch (config)# interface port-channel 5
switch(config-if)# bandwidth 60000000
switch(config-if)# delay 10000
switch(config-if)#
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
22
Configuring Port Channels
Shutting Down and Restarting the Port-Channel Interface
SUMMARY STEPS
1. configure terminal
2. interface port-channel channel-number
3. shutdown
4. exit
5. show interface port-channel channel-number
6. show interface status error policy [detail]
7. no shutdown
8. copy running-config startup-config
DETAILED STEPS
Example:
switch# configure terminal
switch(config)#
Step 2 interface port-channel channel-number Specifies the port-channel interface that you want to configure, and
enters the interface mode.
Example:
switch(config)# interface port-channel 2
switch(config-if)#
Step 3 shutdown Shuts down the interface. No traffic passes and the interface displays
as administratively down. The default is no shutdown.
Example: Note Use the no shutdown command to open the interface.
switch(config-if)# shutdown
switch(config-if)# The interface displays as administratively up. If there are
no operational problems, traffic passes. The default is no
shutdown.
Step 4 exit Exits the interface mode and returns to the configuration mode.
Example:
switch(config-if)# exit
switch(config)#
Step 5 show interface port-channel channel-number (Optional) Displays interface information for the specified port
channel.
Example:
switch(config-router)# show interface
port-channel 2
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
23
Configuring Port Channels
Configuring a Port-Channel Description
Step 7 no shutdown (Optional) Clears the errors on the interfaces and VLANs where
policies correspond with hardware policies. This command allows
Example: policy programming to continue and the port to come up. If policies
switch# configure terminal do not correspond, the errors are placed in an error-disabled policy
switch(config)# int e3/1 state.
switch(config-if)# no shutdown
Step 8 copy running-config startup-config (Optional) Copies the running configuration to the startup
configuration.
Example:
switch(config)# copy running-config
startup-config
This example shows how to bring up the interface for port channel 2:
switch# configure terminal
switch (config)# interface port-channel 2
switch(config-if)# no shutdown
SUMMARY STEPS
1. configure terminal
2. interface port-channel channel-number
3. description
4. exit
5. show interface port-channel channel-number
6. copy running-config startup-config
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
24
Configuring Port Channels
Configuring the Speed and Duplex Settings for a Port-Channel Interface
DETAILED STEPS
Example:
switch# configure terminal
switch(config)#
Step 2 interface port-channel channel-number Specifies the port-channel interface that you want to
configure, and enters the interface mode.
Example:
switch(config)# interface port-channel 2
switch(config-if)#
Step 4 exit Exits the interface mode and returns to the configuration
mode.
Example:
switch(config-if)# exit
switch(config)#
Step 5 show interface port-channel channel-number (Optional) Displays interface information for the specified
port channel.
Example:
switch# show interface port-channel 2
Step 6 copy running-config startup-config (Optional) Copies the running configuration to the startup
configuration.
Example:
switch(config)# copy running-config
startup-config
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
25
Configuring Port Channels
Configuring the Speed and Duplex Settings for a Port-Channel Interface
SUMMARY STEPS
1. configure terminal
2. interface port-channel channel-number
3. speed {10 | 100 | 1000 | auto}
4. duplex {auto | full | half}
5. exit
6. show interface port-channel channel-number
7. copy running-config startup-config
DETAILED STEPS
Example:
switch# configure terminal
switch(config)#
Step 2 interface port-channel channel-number Specifies the port-channel interface that you want to
configure, and enters the interface mode.
Example:
switch(config)# interface port-channel 2
switch(config-if)#
Step 3 speed {10 | 100 | 1000 | auto} Sets the speed for the port-channel interface. The default
is auto for autonegotiation.
Example:
switch(config-if)# speed auto
switch(config-if)#
Step 4 duplex {auto | full | half} Sets the duplex for the port-channel interface. The default
is auto for autonegotiation.
Example:
switch(config-if)# speed auto
switch(config-if)#
Step 5 exit Exits the interface mode and returns to the configuration
mode.
Example:
switch(config-if)# exit
switch(config)#
Step 6 show interface port-channel channel-number (Optional) Displays interface information for the
specified port channel.
Example:
switch# show interface port-channel 2
Step 7 copy running-config startup-config (Optional) Copies the running configuration to the startup
configuration.
Example:
switch(config)# copy running-config startup-config
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
26
Configuring Port Channels
Configuring Load Balancing Using Port Channels
Note Use the no port-channel load-balance command to restore the default load-balancing algorithm of
source-dest-mac for non-IP traffic and source-dest-ip for IP traffic.
Command Purpose
no port-channel load-balance Restores the default load-balancing
algorithm.
Example:
switch(config)# no port-channel load-balance
SUMMARY STEPS
1. configure terminal
2. port-channel load-balance method {dst ip | dst ip-port-vlan | dst ip-vlan | dst mac | dst port | src-dst
ip [symmetric] | src-dst ip-gre | source-dst mac | source-dst port | src-ip port | src-dst ip-l4port
[symmetric] | src-dst l4port | src-dst mac | src ip | src mac | src-port} [fex {fex-range | all}] [rotate
rotate]
3. show port-channel load-balance
4. copy running-config startup-config
DETAILED STEPS
Example:
switch# configure terminal
switch(config)#
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
27
Configuring Port Channels
Enabling LACP
Step 4 copy running-config startup-config (Optional) Copies the running configuration to the startup
configuration.
Example:
switch(config)# copy running-config startup-config
Enabling LACP
LACP is disabled by default; you must enable LACP before you begin LACP configuration. You cannot
disable LACP while any LACP configuration is present.
LACP learns the capabilities of LAN port groups dynamically and informs the other LAN ports. Once LACP
identifies correctly matched Ethernet links, it group the links into a port channel. The port channel is then
added to the spanning tree as a single bridge port.
To configure LACP, you must do the following:
• Enable LACP globally by using the feature lacp command.
• You can use different modes for different interfaces within the same LACP-enabled port channel. You
can change the mode between active and passive for an interface only if it is the only interface that is
designated to the specified channel group.
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
28
Configuring Port Channels
Configuring LACP Port-Channel Port Modes
SUMMARY STEPS
1. configure terminal
2. feature lacp
3. copy running-config startup-config
DETAILED STEPS
Example:
switch# configure terminal
switch(config)#
Example:
switch(config)# feature lacp
Step 3 copy running-config startup-config (Optional) Copies the running configuration to the
startup configuration.
Example:
switch(config)# copy running-config startup-config
SUMMARY STEPS
1. configure terminal
2. interface type slot/port
3. channel-group number mode {active | on | passive}
4. show port-channel summary
5. copy running-config startup-config
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
29
Configuring Port Channels
Configuring LACP Port-Channel Minimum Links
DETAILED STEPS
Example:
switch# configure terminal
switch(config)#
Step 2 interface type slot/port Specifies the interface that you want to add to a channel group,
and enters the interface configuration mode.
Example:
switch(config)# interface ethernet 1/4
switch(config-if)#
Step 3 channel-group number mode {active | on | passive} Specifies the port mode for the link in a port channel. After
LACP is enabled, you configure each link or the entire channel
Example: as active or passive.
switch(config-if)# channel-group 5 mode active
When you run port channels with no associated aggregation
protocol, the port-channel mode is always on.
The default port-channel mode is on.
Step 4 show port-channel summary (Optional) Displays summary information about the port
channels.
Example:
switch(config-if)# show port-channel summary
Step 5 copy running-config startup-config (Optional) Copies the running configuration to the startup
configuration.
Example:
switch(config)# copy running-config
startup-config
This example shows how to set the LACP-enabled interface to the active port-channel mode for Ethernet
interface 1/4 in channel group 5:
switch# configure terminal
switch (config)# interface ethernet 1/4
switch(config-if)# channel-group 5 mode active
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
30
Configuring Port Channels
Configuring LACP Port-Channel Minimum Links
Note Use the no lacp min-links command to restore the default port-channel minimum links configuration.
Command Purpose
no lacp min-links Restores the default port-channel minimum
links configuration.
Example:
switch(config)# no lacp min-links
SUMMARY STEPS
1. configure terminal
2. interface port-channel number
3. lacp min-links number
4. show running-config interface port-channel number
DETAILED STEPS
Example:
switch# configure terminal
switch(config)#
Step 2 interface port-channel number Specifies the interface to configure, and enters the
interface configuration mode.
Example:
switch(config)# interface port-channel 3
switch(config-if)#
Step 3 lacp min-links number Specifies the port-channel interface to configure the
number of minimum links and enters the interface
Example: configuration mode. The range is from 1 to 16.
switch(config-if)# lacp min-links 3
Step 4 show running-config interface port-channel number (Optional) Displays the port-channel minimum links
configuration.
Example:
switch(config-if)# show running-config interface
port-channel 3
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
31
Configuring Port Channels
Configuring the LACP Port-Channel MaxBundle
This example shows how to configure the minimum number of port-channel interfaces on module 3:
switch# configure terminal
switch (config)# lacp min-links 3
Note Use the no lacp max-bundle command to restore the default port-channel max-bundle configuration.
Command Purpose
no lacp max-bundle Restores the default port-channel max-bundle
configuration.
Example:
switch(config)# no lacp max-bundle
SUMMARY STEPS
1. configure terminal
2. interface port-channel number
3. lacp max-bundle number
4. show running-config interface port-channel number
DETAILED STEPS
Example:
switch# configure terminal
switch(config)#
Step 2 interface port-channel number Specifies the interface to configure, and enters the interface
configuration mode.
Example:
switch(config)# interface port-channel 3
switch(config-if)#
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
32
Configuring Port Channels
Configuring the LACP Fast Timer Rate
Example:
switch(config-if)# show running-config
interface port-channel 3
This example shows how to configure the port channel interface max-bundle on module 3:
switch# configure terminal
switch (config)# lacp max-bundle 3
Note We do not recommend changing the LACP timer rate. HA and SSO are not supported when the LACP
fast rate timer is configured.
SUMMARY STEPS
1. configure terminal
2. interface type slot/port
3. lacp rate fast
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
33
Configuring Port Channels
Configuring the LACP System Priority
DETAILED STEPS
Example:
switch# configure terminal
switch(config)#
Step 2 interface type slot/port Specifies the interface to configure and enters the interface
configuration mode.
Example:
switch(config)# interface ethernet 1/4
switch(config-if)#
Step 3 lacp rate fast Configures the fast rate (one second) at which LACP control
packets are sent to an LACP-supported interface.
Example: To reset the timeout rate to its default, use the no form of the
switch(config-if)# lacp rate fast
command.
This example shows how to configure the LACP fast rate on Ethernet interface 1/4:
switch# configure terminal
switch (config)# interface ethernet 1/4
switch(config-if)# lacp rate fast
This example shows how to restore the LACP default rate (30 seconds) on Ethernet interface 1/4.
switch# configure terminal
switch (config)# interface ethernet 1/4
switch(config-if)# no lacp rate fast
SUMMARY STEPS
1. configure terminal
2. lacp system-priority priority
3. show lacp system-identifier
4. copy running-config startup-config
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
34
Configuring Port Channels
Configuring the LACP Port Priority
DETAILED STEPS
Example:
switch# configure terminal
switch(config)#
Step 2 lacp system-priority priority Configures the system priority for use with LACP. Valid values
are from 1 through 65535, and higher numbers have a lower
Example: priority. The default value is 32768.
switch(config)# lacp system-priority 40000
Note Each VDC has a different LACP system ID because
the software adds the MAC address to this configured
value.
Step 3 show lacp system-identifier (Optional) Displays the LACP system identifier.
Example:
switch(config-if)# show lacp system-identifier
Step 4 copy running-config startup-config (Optional) Copies the running configuration to the startup
configuration.
Example:
switch(config)# copy running-config
startup-config
This example shows how to set the LACP system priority to 2500:
switch# configure terminal
switch(config)# lacp system-priority 2500
SUMMARY STEPS
1. configure terminal
2. interface type slot/port
3. lacp port-priority priority
4. copy running-config startup-config
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
35
Configuring Port Channels
Disabling LACP Graceful Convergence
DETAILED STEPS
Example:
switch# configure terminal
switch(config)#
Step 2 interface type slot/port Specifies the interface that you want to add to a channel
group, and enters the interface configuration mode.
Example:
switch(config)# interface ethernet 1/4
switch(config-if)#
Step 3 lacp port-priority priority Configures the port priority for use with LACP. Valid values
are from 1 through 65535, and higher numbers have a lower
Example: priority. The default value is 32768.
switch(config-if)# lacp port-priority
40000
Step 4 copy running-config startup-config (Optional) Copies the running configuration to the startup
configuration.
Example:
switch(config-if)# copy running-config
startup-config
This example shows how to set the LACP port priority for Ethernet interface 1/4 to 40000:
switch# configure terminal
switch (config)# interface ethernet 1/4
switch(config-if)# lacp port-priority 40000
Note The port channel has to be in the administratively down state before the command can be run.
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
36
Configuring Port Channels
Disabling LACP Graceful Convergence
SUMMARY STEPS
1. configure terminal
2. interface port-channel number
3. shutdown
4. no lacp graceful-convergence
5. no shutdown
6. copy running-config startup-config
DETAILED STEPS
Example:
switch# configure terminal
switch(config)#
Step 2 interface port-channel number Specifies the port channel interface to configure and
enters the interface configuration mode.
Example:
switch(config)# interface port-channel 1
switch(config-if)#
Example:
switch(config-if) shutdown
Example:
switch(config-if) no shutdown
Step 6 copy running-config startup-config (Optional) Copies the running configuration to the
startup configuration.
Example:
switch(config)# copy running-config startup-config
This example shows how to disable LACP graceful convergence on a port channel:
switch# configure terminal
switch (config)# interface port-channel 1
switch(config-if)# shutdown
switch(config-if)# no lacp graceful-convergence
switch(config-if)# no shutdown
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
37
Configuring Port Channels
Disabling LACP Graceful Convergence
SUMMARY STEPS
1. configure terminal
2. interface port-channel number
3. shutdown
4. lacp graceful-convergence
5. no shutdown
6. copy running-config startup-config
DETAILED STEPS
Example:
switch# configure terminal
switch(config)#
Step 2 interface port-channel number Specifies the port channel interface to configure and
enters the interface configuration mode.
Example:
switch(config)# interface port-channel 1
switch(config-if)#
Example:
switch(config-if) shutdown
Example:
switch(config-if) no shutdown
Step 6 copy running-config startup-config (Optional) Copies the running configuration to the
startup configuration.
Example:
switch(config)# copy running-config startup-config
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
38
Configuring Port Channels
Disabling LACP Suspend Individual
This example shows how to enable LACP graceful convergence on a port channel:
switch# configure terminal
switch (config)# interface port-channel 1
switch(config-if)# shutdown
switch(config-if)# lacp graceful-convergence
switch(config-if)# no shutdown
Note You should only enter the lacp suspend-individual command on edge ports. The port channel has to be
in the administratively down state before you can use this command.
SUMMARY STEPS
1. configure terminal
2. interface port-channel number
3. shutdown
4. no lacp suspend-individual
5. no shutdown
6. copy running-config startup-config
DETAILED STEPS
Example:
switch# configure terminal
switch(config)#
Step 2 interface port-channel number Specifies the port channel interface to configure and
enters the interface configuration mode.
Example:
switch(config)# interface port-channel 1
switch(config-if)#
Example:
switch(config-if) shutdown
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
39
Configuring Port Channels
Reenabling LACP Suspend Individual
Example:
switch(config-if) no shutdown
Step 6 copy running-config startup-config (Optional) Copies the running configuration to the
startup configuration.
Example:
switch(config)# copy running-config startup-config
This example shows how to disable LACP individual port suspension on a port channel:
switch# configure terminal
switch (config)# interface port-channel 1
switch(config-if)# shutdown
switch(config-if)# no lacp suspend-individual
switch(config-if)# no shutdown
SUMMARY STEPS
1. configure terminal
2. interface port-channel number
3. shutdown
4. lacp suspend-individual
5. no shutdown
6. copy running-config startup-config
DETAILED STEPS
Example:
switch# configure terminal
switch(config)#
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
40
Configuring Port Channels
Configuring Delayed LACP
Example:
switch(config-if) shutdown
Example:
switch(config-if) no shutdown
Step 6 copy running-config startup-config (Optional) Copies the running configuration to the
startup configuration.
Example:
switch(config)# copy running-config startup-config
This example shows how to reenable the LACP individual port suspension on a port channel:
switch# configure terminal
switch (config)# interface port-channel 1
switch(config-if)# shutdown
switch(config-if)# lacp suspend-individual
switch(config-if)# no shutdown
Note For vPC, you must enable the delayed LACP on both vPC switches.
Note Delayed LACP is not supported on Layer 3 port channels, FEX modules, or the Cisco Nexus 9500 Series
switch.
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
41
Configuring Port Channels
Configuring Delayed LACP
Note For vPC, when the delayed LACP port is on the primary switch and the primary switch fails to boot, you
need to remove the vPC configuration on the delayed LACP port-channel of the acting primary switch
and flap the port-channel for a new port to be chosen as the delayed LACP port on the existing port-channel.
Note When no lacp suspend-individual and the delayed LACP feature are configured on the same port, the
non-delayed LACP ports belonging to the port are in individual state. When LACP is established, the
member should be moved to up state.
As a best practice, do not use no lacp suspend-individual together with the delayed LACP feature on the
same port channel.
SUMMARY STEPS
1. configure terminal
2. interface port-channel number
3. lacp mode delay
DETAILED STEPS
Step 2 interface port-channel Specifies the port channel interface to configure and enters the interface configuration mode.
number
Step 3 lacp mode delay Enables delayed LACP.
Note To disable delayed LACP, use the no lacp mode delay command.
Complete the configuration of the delayed LACP by configuring the LACP port priority. See
the "Configuring the LACP Port Priority" section for details.
The priority of a LACP port determines the election of the delayed LACP port. The port with
the lowest numerical priority is elected.
When two or more ports have the same best priority, the VDC system MAC is used to determine
which vPC is used. Then within a non-vPC switch or the elected vPC switch, the smallest of
the ethernet port names is used.
When the delayed LACP feature is configured and made effective with a port channel flap, the
delayed LACP port operates as a member of a regular port channel, allowing data to be
exchanged between the server and switch. After receiving the first LACP PDU, the delayed
LACP port transitions from a regular port member to a LACP port member.
Note The election of the delayed LACP port is not complete or effective until the port
channel flaps on the switch or at a remote server.
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
42
Configuring Port Channels
Configuring Port Channel Hash Distribution
SUMMARY STEPS
1. configure terminal
2. no port-channel hash-distribution {adaptive | fixed}
3. copy running-config startup-config
DETAILED STEPS
Example:
switch# configure terminal
switch(config)#
Step 2 no port-channel hash-distribution {adaptive | fixed} Specifies the port-channel hash distribution at the global level.
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
43
Configuring Port Channels
Configuring Port Channel Hash Distribution
Step 3 copy running-config startup-config (Optional) Copies the running configuration to the startup
configuration.
Example:
switch(config)# copy running-config
startup-config
This example shows how to configure hash distribution at the global level:
switch# configure terminal
switch(config)# no port-channel hash-distribution fixed
SUMMARY STEPS
1. configure terminal
2. interface port-channel {channel-number | range}
3. no port-channel port hash-distribution {adaptive | fixed}
4. copy running-config startup-config
DETAILED STEPS
Example:
switch# configure terminal
switch(config)#
Step 2 interface port-channel {channel-number | range} Specifies the interface to configure, and enters the interface
configuration mode.
Example:
switch# interface port-channel 4
switch(config-if)#
Step 3 no port-channel port hash-distribution {adaptive | Specifies the port-channel hash distribution at the port
fixed} channel level.
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
44
Configuring Port Channels
Verifying the Port-Channel Configuration
Step 4 copy running-config startup-config (Optional) Copies the running configuration to the startup
configuration.
Example:
switch(config)# copy running-config
startup-config
Command Purpose
show interface port-channel channel-number Displays the status of a port-channel interface.
load- interval {interval seconds {1 | 2 | 3}} Sets three different sampling intervals to bit-rate and
packet-rate statistics.
show port-channel compatibility-parameters Displays the parameters that must be the same among
the member ports in order to join a port channel.
show port-channel database [interface Displays the aggregation state for one or more
port-channel channel-number] port-channel interfaces.
show port-channel load-balance Displays the type of load balancing in use for port
channels.
show port-channel traffic Displays the traffic statistics for port channels.
show port-channel usage Displays the range of used and unused channel
numbers.
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
45
Configuring Port Channels
Monitoring the Port-Channel Interface Configuration
Command Purpose
show lacp {counters [interface port-channel Displays information about LACP.
channel-number] | [interface type/slot] | neighbor
[interface port-channel channel-number] |
port-channel [interface port-channel
channel-number] | system-identifier]]}
show running-config interface port-channel Displays information about the running configuration
channel-number of the port-channel.
Command Purpose
clear counters interface port-channel Clears the counters.
channel-number
load- interval {interval seconds {1 | 2 | 3}} Sets three different sampling intervals to bit-rate and
packet-rate statistics.
show interface counters [module module] Displays input and output octets unicast packets,
multicast packets, and broadcast packets.
show interface counters detailed [all] Displays input packets, bytes, and multicast and
output packets and bytes.
show interface counters errors [module module] Displays information about the number of error
packets.
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
46
Configuring Port Channels
Related Documents
This example shows how to add two Layer 3 interfaces to a channel group. The Cisco NX-OS software
automatically creates the port channel:
Related Documents
Related Topic Document Title
System management Cisco Nexus 9000 Series NX-OS System Management
Configuration Guide
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
47
Configuring Port Channels
Related Documents
Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x
48