3.15. Hash load-banlance Commands
3.15.1. hash field
Command Purpose
Use this command to set hash field or create a new hash field, and enter hash field configure view;use the no command to delete user-defined hash field.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
hash-field ( port-channel | ecmp | NAME )
no hash-field NAME
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
port-channel |
Port-channel of system default hash field |
- |
ecmp |
Ecmp of system default hash field |
- |
NAME |
Hash field name string |
The initial character of name should be a-z, A-Z, or 0-9, character only can be 0-9A-Za-z.-_ and the max length is 64 |
Command Mode
Global Config
Default
port-channel, ecmp
Usage
AQ-N3000, AQ-N5000
The system support the max number of hash field is 4, including 2 system default hash fields named port-channel and ecmp and 2 user-defined hash fields.when applied to the hash value,it can’t be deleted.
AQ-N6000
The system support the max number of hash field is 8, including 2 system default hash fields named port-channel and ecmp and 6 user-defined hash fields.when applied to the hash value,it can’t be deleted.
Examples
The following example shows how to create a new hash field named user:
Switch# configure terminal
Switch(config)# hash-field user
Switch(config-hash-field)#
The following example shows how to delete the user-defined hash field named user:
Switch# configure terminal
Switch(config)# no hash-field user
3.15.2. l2
Command Purpose
Use this command to set l2 packet hash field; use the no command to set the l2 packet field to default.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
l2 ( macda | macsa | vlan | eth-type | src-interface )
no l2
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
macda |
MAC Destination Address |
- |
macsa |
MAC Source Address |
- |
vlan |
Vlan |
- |
eth-type |
Ethernet Type |
- |
src-interface |
Source Interface |
- |
Command Mode
Config-hash-field
Default
l2 macsa macda
Usage
None
Examples
The following example shows how to select macsa for l2 packet load balance in port-channel:
Switch# configure terminal
Switch(config)# hash-field port-channel
Switch(config-hash-field)# l2 macsa
The following example shows how to select default l2 packet load balance in port-channel:
Switch# configure terminal
Switch(config)# hash-field port-channel
Switch(config-hash-field)# no l2
Related Commands
show hash-field
3.15.3. ip
Command Purpose
Use this command to set ip packet hash field; use the no command to set the ip packet field to default.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
ip ( ipda | ipsa | ip-protocol | sourceport | destport | src-interface )
no ip
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
ipda |
IP Destination Address |
- |
ipsa |
IP Source Address |
- |
ip-protocol |
IP Header protocol |
- |
sourceport |
Layer4 Source Port |
- |
destport |
Layer4 Destination Port |
- |
src-interface |
Source Interface |
- |
Command Mode
Config-hash-field
Default
ip ipsa ipda sourceport destport ip-protocol
Usage
None
Examples
The following example shows how to select ipsa for ip packet load balance in port-channel:
Switch# configure terminal
Switch(config)# hash-field port-channel
Switch(config-hash-field)# ip ipsa
The following example shows how to select default ip packet load balance in port-channel:
Switch# configure terminal
Switch(config)# hash-field port-channel
Switch(config-hash-field)# no ip
Related Commands
show hash-field
3.15.4. ipv6
Command Purpose
Use this command to set ipv6 packet hash field; use the no command to set the ipv6 field to default.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
ipv6 ( ipda | ipsa | ip-protocol | sourceport | destport | src-interface )
no ipv6
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
ipda |
IP Destination Address |
- |
ipsa |
IP Source Address |
- |
ip-protocol |
IP Header protocol |
- |
sourceport |
Layer4 Source Port |
- |
destport |
Layer4 Destination Port |
- |
src-interface |
Source Interface |
- |
Command Mode
Config-hash-field
Default
ipv6 ipsa ipda sourceport destport ip-protocol
Usage
Only when the system is in ipv6 mode, the ipv6 packet hash field can work normally.
Examples
The following example shows how to select ipsa for ipv6 packet load balance in port-channel:
Switch# configure terminal
Switch(config)# hash-field port-channel
Switch(config-hash-field)# ipv6 ipsa
The following example shows how to select default ipv6 packet load balance in port-channel:
Switch# configure terminal
Switch(config)# hash-field port-channel
Switch(config-hash-field)# no ipv6
Related Commands
show hash-field
3.15.5. vxlan
Command Purpose
Use this command to set vxlan packet hash field.
To return the configuration to default value use the no form of this command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
vxlan { vni | src-interface }
vxlan ( { vni | src-interface } | ) outer { ipsa | ipda | sourceport | destport | vlan }
vxlan ( { vni | src-interface } | ) inner-layer2 { macsa | macda | eth-type }
vxlan ( { vni | src-interface } | ) inner-layer3 { ipsa | ipda | sourceport | destport | ip-protocol }
no vxlan
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
vni |
VXLAN VNI |
- |
src-interface |
Source Interface |
- |
outer ipsa |
Outer header`s IP Source Address |
- |
outer ipda |
Outer header`s IP Destination Address |
- |
outer sourceport |
Outer header`s Layer4 Source Port |
- |
outer destport |
Outer header`s Layer4 Destination Port |
- |
outer vlan |
Outer header`s Vlan ID |
- |
inner macsa |
Inner header`s MAC Source Address |
- |
inner macda |
Inner header`s MAC Destination Address |
- |
inner eth-type |
Inner header`s Ethernet Type |
- |
inner ipsa |
Inner header`s IP Source Address |
- |
inner ipda |
Inner header`s IP Destination Address |
- |
inner sourceport |
Inner header`s Layer4 Source Port |
- |
inner destport |
Inner header`s Layer4 Destination Port |
- |
inner ip-protocol |
Inner header`s IP Header protocol |
- |
Command Mode
Config-hash-field
Default
vxlan vni outer ipsa ipda sourceport
Usage
Outer configuration and inner configuration cannot take effect at the same time.
Examples
The following example shows how to select outer ipsa and vni for vxlan packet load balance in port-channel:
Switch# configure terminal
Switch(config)# hash-field port-channel
Switch(config-hash-field)# vxlan vni outer ipda
The following example shows how to select default vxlan packet load balance in port-channel:
Switch# configure terminal
Switch(config)# hash-field port-channel
Switch(config-hash-field)# no vxlan
Related Commands
show hash-field
3.15.6. nvgre
Command Purpose
Use this command to set nvgre packet hash field.
To return the configuration to default value use the no form of this command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
nvgre { vsid | src-interface }
nvgre ( { vsid | src-interface } | ) outer { ipsa | ipda }
nvgre ( { vsid | src-interface } | ) inner-layer2 { macsa | macda | eth-type }
nvgre ( { vsid | src-interface } | ) inner-layer3 { ipsa | ipda | sourceport | destport | ip-protocol }
no nvgre
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
vsid |
NVGRE VSID |
- |
src-interface |
Source Interface |
- |
outer ipsa |
Outer header`s IP Source Address |
- |
outer ipda |
Outer header`s IP Destination Address |
- |
inner macsa |
Inner header`s MAC Source Address |
- |
inner macda |
Inner header`s MAC Destination Address |
- |
inner eth-type |
Inner header`s Ethernet Type |
- |
inner ipsa |
Inner header`s IP Source Address |
- |
inner ipda |
Inner header`s IP Destination Address |
- |
inner sourceport |
Inner header`s Layer4 Source Port |
- |
inner destport |
Inner header`s Layer4 Destination Port |
- |
inner ip-protocol |
Inner header`s IP Header protocol |
- |
top-label |
Mpls Top Lable |
- |
Command Mode
Config-hash-field
Default
nvgre vsid outer ipsa ipda
Usage
Outer configuration and inner configuration cannot take effect at the same time.
Examples
The following example shows how to select outer ipsa and vsid for nvgre packet load balance in port-channel:
Switch# configure terminal
Switch(config)# hash-field port-channel
Switch(config-hash-field)# nvgre vsid outer ipda
The following example shows how to select default nvgre packet load balance in port-channel:
Switch# configure terminal
Switch(config)# hash-field port-channel
Switch(config-hash-field)# no nvgre
The following example shows how to select inner ipsa and top-label for mpls packet load balance in port-channel:
Switch# configure terminal
Switch(config)# hash-field port-channel
Switch(config-hash-field)# mpls top-label inner ipsa
Related Commands
show hash-field
3.15.7. show hash-value
Command Purpose
Use this command to display the configurations of a hash value or all hash value.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show hash-value ( NAME | )
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following example shows how to display the relationship between hash value paorfile and interface:
Switch# show hash-value interface-applied
eth-0-1
hash-value aaa input
Related Commands
None
3.15.8. show hash-value interface-applied
Command Purpose
Use this command to display the relationship between hash value and interface.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show hash-value interface-applied
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
NAME |
Hash value name |
- |
Command Mode
Interface Configuration
Default
None
Usage
Physical port only can select input direction linkagg port can select input direction and output direction. Agg member port can’t configure the command.
Examples
The following example shows how to apply a hash value to eth-0-1:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# load-balance hash-value aaa input
Related Commands
show hash-value interface-applied
3.15.9. hash-value global
Command Purpose
Use this command to enter hash value global configure view.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
hash-value global
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
NAME |
Hash field name string |
- |
Command Mode
Config-hash-value-global
Default
port-channel
Usage
Compared with hash value configuration, this command has lower priority
Examples
The following example shows how to select hash field for linkagg in hash value global :
Switch# configure terminal
Switch(config)# hash-value global
Switch(config-hash-value-global)# port-channel select user
Related Commands
show hash-value global
3.15.10. show hash-value global
Command Purpose
Use this command to display the configurations of hash value global.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show hash-value global
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following example shows how to display the configurations of hash value global:
Switch# show hash-value global
LBT:load balance type LBM :load balance mode
PT :packet type HF :hash field
HA :hash arithmetic
hash-value global
LBT LBM PT HF HA
----------------------------------------------------------------------
port-channel - all port-channel xor
ecmp - all ecmp xor
ecmp flow id all ecmp xor
entropy - all ecmp xor
----------------------------------------------------------------------
Efd hash field select:
macsa macda
ipsa ipda
sourceport destport
ip-protocol
Related Commands
None
3.15.11. disable ecmp round-robin
Command Purpose
Use this command to disable ecmp round robin load balance as a acl action.
To remove the configuration,use the no form of this command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
ecmp load-balance round-robin disable
no ecmp load-balance round-robin disable
Command Mode
Config-pmap-c
Default
None
Usage
None
Examples
The following example shows how to disable ecmp round-robin as a acl action:
Switch# configure terminal
Switch(config)# policy-map map1
Switch(config-pmap)# class class-default
Switch(config-pmap-c)# ecmp load-balance round-robin disable
The following example shows how to enable ecmp round-robin as a acl action:
Switch# configure terminal
Switch(config)# policy-map map1
Switch(config-pmap)# class class-default
Switch(config-pmap-c)# no ecmp load-balance round-robin disable
Related Commands
None
3.15.12. disable port-channel round-robin
Command Purpose
Use this command to disable linkagg round robin load balance as a acl action.
To remove the configuration,use the no form of this command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
port-channel load-balance round-robin disable
no port-channel load-balance round-robin disable
Command Mode
Config-pmap-c
Default
None
Usage
None
Examples
The following example shows how to disable linkagg round-robin as a acl action:
Switch# configure terminal
Switch(config)# policy-map map1
Switch(config-pmap)# class class-default
Switch(config-pmap-c)# port-channel load-balance round-robin disable
The following example shows how to enable linkagg round-robin as a acl action:
Switch# configure terminal
Switch(config)# policy-map map1
Switch(config-pmap)# class class-default
Switch(config-pmap-c)# no port-channel load-balance round-robin disable
Related Commands
None