Configuring ECMP Load Balancing
Configuring Universal Id to Randomize Hash Functions for Load Balancing
Configuring Universal Id to Randomize Hash Functions for Load Balancing
POST http://<mgmt0_IP>/api/mo/sys/ipv4/inst.json
{
"ipv4Inst": {
"children": [
{
"ipv4IPLoadSharing": {
"attributes": {
"concatenation": "disabled",
"greOuterHash": "enabled",
"loadShareMode": "srcDest",
"rotate": "43",
"universalID": "1"
}}}]}}
{
imdata:[]
}
<System>
<ipv4-items>
<inst-items>
<iploadsharing-items>
<concatenation>disabled</concatenation>
<greOuterHash>enabled</greOuterHash>
<loadShareMode>srcDest</loadShareMode>
<rotate>43</rotate>
<universalID>1</universalID>
</iploadsharing-items>
</inst-items>
</ipv4-items>
</System>
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
ip load-sharing address source-destination gre-outer rotate 43 universal-id 1
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
---|---|
ipv4Inst | sys/ipv4/inst |
ipv4IPLoadSharing | sys/ipv4/inst/iploadsharing |
ipv4IPLoadSharing Properties
The following table contains information about the ipv4IPLoadSharing properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
---|---|---|---|
concatenation | nw:AdminSt (scalar:Enum8) | Concatenation | SELECTION: 1 - enabled 2 - disabled DEFAULT: disabled |
greOuterHash | nw:AdminSt (scalar:Enum8) | GRE Outer Hash | SELECTION: 1 - enabled 2 - disabled DEFAULT: disabled |
loadShareMode | ip:LoadShareFormat (scalar:Enum8) | Load sharing mode | SELECTION: 1 - disabled 2 - destPort 3 - srcDest 4 - srcDestGre 5 - srcDestPort 6 - source 7 - srcDestGTPU 8 - srcDestSymmetric 9 - srcDestInnerAll 10 - srcDestInnerGre 11 - srcDestInnerGreSymmetric DEFAULT: disabled |
rotate | scalar:Uint16 | Rotate | RANGE: [1 , 63] DEFAULT: 32 |
universalID | scalar:Uint32 | Universal-ID(Random seed) | RANGE: [0 , 4294967295] |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
Deleting Universal Id to Randomize Hash Functions for Load Balancing
Deleting Universal Id to Randomize Hash Functions for Load Balancing
POST http://<mgmt0_IP>/api/mo/sys/ipv4/inst.json
{
"ipv4Inst": {
"children": [
{
"ipv4IPLoadSharing": {
"attributes": {
"status": "deleted"
}}}]}}
{
imdata:[]
}
<System>
<ipv4-items>
<inst-items>
<iploadsharing-items nc:operation="delete">
</iploadsharing-items>
</inst-items>
</ipv4-items>
</System>
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
no ip load-sharing address source-destination gre-outer rotate 43 universal-id 1
Warning: This would disable inner header based hashing for GRE traffic on Port channel and ECMP (if enabled)
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
---|---|
ipv4Inst | sys/ipv4/inst |
ipv4IPLoadSharing | sys/ipv4/inst/iploadsharing |
ipv4IPLoadSharing Properties
The following table contains information about the ipv4IPLoadSharing properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
---|---|---|---|
status | mo:ModificationStatus (scalar:Bitmask32) | Modification status | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide: