port-channel load-balance ethernet
To configure the load-balancing method among the interfaces in the channel-group bundle, use the port-channel load-balance ethernet command. To return the system priority to the default value, use the no form of this command.
port-channel load-balance ethernet method [hash-polynomial]
no port-channel load-balance ethernet [method]
Syntax Description
method |
Load-balancing method. See the “Usage Guidelines” section for a list of valid values. |
||
hash-polynomial |
(Optional) Hash polynomial that is used to determine the egress port selected for a port channel. See the “Usage Guidelines” section for a list of valid values.
|
Command Default
Loads distribution on the source and destination IP address. The default hash polynomial is CRC8a.
Command Modes
Global configuration mode
Command History
Release |
Modification |
---|---|
7.0(1)N1(1) |
This command was introduced. |
Usage Guidelines
The valid load-balancing method values are as follows:
- destination-ip —Loads distribution on the destination IP address.
- destination-mac —Loads distribution on the destination MAC address.
- destination-port —Loads distribution on the destination port.
- source-destination-ip —Loads distribution on the source and destination IP address.
- source-destination-mac —Loads distribution on the source and destination MAC address.
- source-destination-port —Loads distribution on the source and destination port.
- source-ip —Loads distribution on the source IP address.
- source-mac —Loads distribution on the source MAC address.
- source-port —Loads distribution on the source port.
Use the option that provides the balance criteria with the greatest variety in your configuration. For example, if the traffic on an EtherChannel is going only to a single MAC address and you use the destination MAC address as the basis of EtherChannel load balancing, the EtherChannel always chooses the same link in that EtherChannel; using source addresses or IP addresses might result in better load balancing.
The Cisco Nexus 5548 switch and Cisco Nexus 5596 switch support 8 hash polynomials that can be used for compression on the hash-parameters (software-configurable selection of source and destination MAC addresses, source and destination IP addresses, and source and destination TCP and UDP ports). Depending on variations in the load-balancing method for egress traffic flows from a port channel, different polynomials could provide different load distribution results.
The valid load-balancing hash-polynomial values are as follows:
- CRC8a —Hash polynomial CRC8a.
- CRC8b —Hash polynomial CRC8b.
- CRC8c —Hash polynomial CRC8c.
- CRC8d —Hash polynomial CRC8d.
- CRC8e —Hash polynomial CRC8e.
- CRC8f —Hash polynomial CRC8f.
- CRC8g —Hash polynomial CRC8g.
- CRC8h —Hash polynomial CRC8h.
Note |
The hash polynomial that you choose affects both the multicast and unicast traffic egressing from all the local port channels. The hash polynomial does not affect the port channels whose member ports are on a Cisco Nexus 2148T Fabric Extender, Cisco Nexus 2232P Fabric Extender, or Cisco Nexus 2248T Fabric Extender. |
Examples
This example shows how to set the load-balancing method to use the source IP:
switch(config)#port-channel load-balance ethernet source-ip
This example shows how to set the load-balancing method to use the source IP and the CRC8c polynomial to hash a flow to obtain a numerical value that can be used to choose the egress physical interface on a Cisco Nexus 5548 switch:
switch(config)#port-channel load-balance ethernet source-ip CRC8c