Command Line Reference
Layer 3 Configuration
ECMP
7 min
load balance hash key load balance hash key table 1 load balance hash key table 1 load balance hash key command purpose hash mode { ipv4 | ipv6|non ip|ipv4 rdma|ipv6 rdma } hash key set load balance mode and hash key hash mode {ipv4|ipv6|non ip|ipv4 rdma|ipv6 rdma} hash mode {ipv4|ipv6|non ip|ipv4 rdma|ipv6 rdma} hash key \[command] hash mode { ipv4|ipv6|non ip|ipv4 rdma|ipv6 rdma } hash key \[purpose] set load balance and hash key \[parameters] parameter description hash key the configurable hash key varys in different modes keys vlan id/ip protocol/src ip/dst ip/l4 src port/l4 dst port/in port are supported for type ipv4 keys vlan id/src ipv6/dst ipv6/l4 src port/l4 dst port/in port/nextheader/flow label are supported for type ipv6 keys src mac/dst mac/ethertype/vlan id/in port are supported for non ip type keys vlan id/ip protocol/src ip/dst ip/l4 src port/l4 dst port/in port/bth dest qp supported for ipv4 rdma type keys vlan id/src ipv6/dst ipv6/l4 src port/l4 dst port/in port/nextheader/ flow label/bth dest qp supported for ipv6 rdma type \[view] global configuration view \[notes] set this parameter to modify the lag and ecmp hash key cx308p 48y n v2, cx532p n v2 and cx732q n v2 devices currently do not support configuring flow label fields for ipv6 types, which is enabled by default only cx864e n device currently supports ipv4 rdma and ipv6 rdma type run command no hash mode { ipv4|ipv6|non ip|ipv4 rdma|ipv6 rdma } to delete the configured custom load balancing and restore it to the default configuration \[use cases] sonic# configure terminal sonic(config)# hash mode ipv4 src ip dst ip sonic(config)# hash mode ipv6 src ipv6 nextheader in port sonic(config)# hash mode non ip src mac dst mac vlan id hash configuration hash configuration table 2 hash configuration table 2 hash configuration command purpose hash seed value set hash seed hash enhancement enable hash enhancement hash outer fields gre enable enable hash based on the outer fields of gre packets hash seed hash seed value \[command] hash seed value \[purpose] set hash seed \[parameters] parameter description value the range is 0 4294967295 \[view] global configuration view \[notes] configure this parameter to modify the lag and ecmp hash seed run command no hash seed to restore to default value 10 \[use cases] sonic# configure terminal sonic(config)# hash seed 1000 hash enhancement hash enhancement \[command] hash enhancement \[purpose] enable hash enhancements \[view] global configuration view \[notes] configure this parameter to automatically modify the hash seed of lag and ecmp, eliminating ecmp polarization phenomenon run command hash enhancement to disable hash enhancement \[use cases] sonic# configure terminal sonic(config)# hash enhancement hash outer fields gre enable hash outer fields gre enable \[command] hash outer fields gre enable \[purpose] enable hash based on the outer fields of gre messages \[view] global configuration view \[notes] by default, the switch performs hashing based on the inner field of gre packets after this configuration, the switch will hash based on the outer field of gre packets instead of the inner field run command no hash outer fields gre enable to disable the outer field hash function of gre messages \[use cases] sonic# configure terminal sonic(config)# hash outer fields gre enable
