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.

MODN
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 NameData TypeDescriptionValues
concatenationnw:AdminSt
(scalar:Enum8)
ConcatenationSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled
greOuterHashnw:AdminSt
(scalar:Enum8)
GRE Outer HashSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled
loadShareModeip:LoadShareFormat
(scalar:Enum8)
Load sharing modeSELECTION:
1 - disabled
2 - destPort
3 - srcDest
4 - srcDestGre
5 - srcDestPort
6 - source
7 - srcDestGTPU
8 - srcDestSymmetric
9 - srcDestInnerAll
10 - srcDestInnerGre
11 - srcDestInnerGreSymmetric
DEFAULT: disabled
rotatescalar:Uint16
Rotate
RANGE: [1 , 63]
DEFAULT: 32
universalIDscalar:Uint32
Universal-ID(Random seed)
RANGE: [0 , 4294967295]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

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:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

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.

MODN
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 NameData TypeDescriptionValues
statusmo:ModificationStatus
(scalar:Bitmask32)
Modification statusSELECTION:
2 - created
4 - modified
8 - deleted
16 - replaced


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

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:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html