Cisco Nexus 5000 Series Switch CLI Software Configuration Guide, NX-OS 4.0(1a)N1 (OL-16597-01, January 2009)

Send feedback to nx5000-docfeedback@cisco.com
11-9
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 11 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.
Note If you want LACP-based port channels, you need to enable LACP (see the “Enabling LACP” section on
page 11-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
Step 4
switch(config-if)# switchport trunk
{allowed vlan vlan-id | native vlan
vlan-id}
(Optional) Configures necessary parameters for a trunk
port.
Step 5
switch(config-if)# channel-group
channel-number
Configures the port in a channel group and sets the mode.
The channel-number range is from 1 to 4096. Cisco
NX-OS creates the port channel associated with this
channel group if the port channel does not already exist
1
.
1. This is called implicit port channel creation.
Command Purpose
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.