Reference Guide

For packets without a L3 header, OS10 automatically uses the load-balancing mac—selection destination-mac command
for hash algorithms by default.
Do not congure IP hashing or MAC hashing at the same time. If you congure an IP and MAC hashing scheme at the same time, the MAC
hashing scheme takes precedence over the IP hashing scheme.
1 Select one or more methods of load balancing and replace the default IP 4-tuple method of balancing trac over a port-channel in
CONFIGURATION mode.
load-balancing {ingress-port [enable] | tcp-udp-selection [l4–destination-port 14–source-
port] | [l4–source-port 14–destination-port ] | ip-selection [destination-ip | source-ip |
protocol | vlan-id | l4–destination-port | l4–source-port] | mac—selection [destination-mac
| source-mac | ethertype | vlan-id]}
ingress-port [enable] — Enables the ingress port conguration.
tcp-upd-selection [l4–destination-port | l4–source-port] — Uses the Layer 4 destination IP address, or
Layer 4 source IP address in the hash calculation.
ip-selection [destination-ip | source-ip | protocol | vlan-id | l4–destination-port | l4–
source-port] — Uses the destination IP address, source IP address, protocol, VLAN ID, Layer 4 destination IP address, or
Layer 4 source IP address in the hash calculation.
mac—selection [destination-mac | source-mac | ethertype | vlan-id] — Uses the destination MAC
address, source MAC address, ethertype, or VLAN ID in the hash calculation.
2 Save the conguration.
do commit
Congure load balancing
OS10(config)# load-balancing ip-selection destination-ip source-ip
OS10(config)# do commit
Change hash algorithm
The load-balancing command selects the hash criteria applied to port-channels. If you do not obtain even trac distribution, use the
hash-algorithm command to select the hash scheme for LAG. Rotate or shift the L2-bit LAG hash until the desired trac distribution
is achieved.
1 Change the default (0) to another algorithm and apply it to LAG hashing in CONFIGURATION mode.
hash-algorithm lag [crc | xor | seed]
2 Save the conguration.
do commit
Change hash algorithm
OS10(config)# hash-algorithm lag xor
OS10(config)# do commit
Congure interface ranges
Bulk interface conguration allows you to determine if interfaces are present for physical interfaces or congured for logical interfaces. An
interface range is a set of interfaces to which other commands may be applied and may be created if there is at least one valid interface
within the range.
Bulk conguration excludes from conguration any non-existing interfaces from an interface range. You can congure a default VLAN only
if the interface range being congured consists of only VLAN ports.
The interface range command allows you to create an interface range allowing other commands to be applied to that range of
interfaces. The interface range prompt oers the interface (with slot and port information) for valid interfaces. The maximum size of an
interface range prompt is 32. If the prompt size exceeds this maximum, it shows (...) at the end of the output.
70
Interfaces