This command selects the load-balancing option used on a port-channel (LAG). Traffic is balanced on a port-channel LAG) by selecting one of the links in the channel over which to transmit specific packets. The link is selected by creating a binary pattern from selected fields in a packet, and associating that pattern with a particular link.
Load-balancing is not supported on every device. The range of options for load-balancing may vary per device.
This command can be configured for a single interface, a range of interfaces, or all interfaces. Instead of unit/slot/port, lag lag-intf-num can be used as an alternate way to specify the LAG interface. lag lag-intf-num can also be used to specify the LAG interface where lag-intf-num is the LAG port number.
| Default | 3 |
| Format | port-channel load-balance {1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10} {unit/slot/port | all} |
| Mode |
|
| Term | Definition |
|---|---|
| 1 | Source MAC, VLAN, EtherType, and incoming port associated with the packet |
| 2 | Destination MAC, VLAN, EtherType, and incoming port associated with the packet |
| 3 | Source/Destination MAC, VLAN, EtherType, and incoming port associated with the packet |
| 4 | Source IP and Source TCP/UDP fields of the packet |
| 5 | Destination IP and Destination TCP/UDP Port fields of the packet |
| 6 | Source/Destination IP and source/destination TCP/UDP Port fields of the packet |
| 7 | Enhanced hashing mode |
| 8 | Dynamic Load Balancing (DLB) Spray Mode |
| 9 | DLB Eligibility Mode |
| 10 | DLB Fixed Assignment Mode |
| unit/slot/port | all | Global Config Mode only: The interface is a logical unit/slot/port number of a configured port- channel. all applies the command to all currently configured port-channels. |
- In Global Config mode, currently there is no option available for the user to specify an aggregate member in fixed assignment mode.
- In Interface Config mode, Dynamic Load Balancing (DLB) decides on the member in fixed assignment mode and continues with that.
- Between Global and Interface-level commands to configure DLB mode (or any other hashing mode), the last executed value takes effect.