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 true 330,331#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type 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] true 177,484#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content 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 true 237,424#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type hash seed hash seed value \[command] hash seed value \[purpose] set hash seed \[parameters] true 330,331#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type \[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
