Send feedback to nx5000-docfeedback@cisco.com
1-9
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 1 Configuring Port Channels
Configuring Port Channels
To remove the port from the channel group, perform this task:
This example shows how to add an Ethernet interface 1/4 to channel group 1:
switch# configure terminal
switch (config)# interface ethernet 1/4
switch(config-if)# switchport mode trunk
switch(config-if)# channel-group 1
Configuring Load Balancing Using Port Channels
You can configure the load-balancing algorithm for port channels that applies to the entire device.
Enable LACP if you want LACP-based port channels (see the “Enabling LACP” section on page 1-10).
To configure load balancing using port channels, perform this task:
This example shows how to configure source IP load balancing for port channels:
switch# configure terminal
switch (config)# port-channel load-balance ethernet source-ip
To restore the default load-balancing algorithm of source-dest-mac for non-IP traffic and source-dest-ip
for IP traffic, perform this task:
1. This is called implicit port channel creation.
Command Purpose
switch(config)# no channel-group
Removes the port from the channel group. The port
reverts to its original configuration.
Command Purpose
Step 1
switch# configure terminal
Enters configuration mode.
Step 2
switch(config)# port-channel
load-balance ethernet {destination-ip
| destination-mac | destination-port
| source-dest-ip | source-dest-mac |
source-dest-port | source-ip |
source-mac | source-port}
Specifies the load-balancing algorithm for the device.
The range depends on the device. The default is
source-dest-mac.
Step 3
switch(config-router)# show
port-channel load-balance
(Optional) Displays the port-channel load-balancing
algorithm.
Command Purpose
switch(config)# no port-channel
load-balance ethernet
Restores the default load-balancing algorithm.