Configuring a MAC Address Limitation

For more information, see the Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide:

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

Configuring Restriction of MAC Addresses Learned System Wide

Configuring Restriction of MAC Addresses Learned System Wide 
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "l2Macs": {
          "attributes": {
            "systemLimit": "125978"
}}}]}}
{
    imdata:[]
}
<System>
  <mac-items>
    <systemLimit>125978</systemLimit>
  </mac-items>
</System>

Note: This example was added in Release 9.3(3).


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.

mac address-table limit system 125978


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
topSystem sys
l2Macs sys/mac


l2Macs Properties

The following table contains information about the l2Macs 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
systemLimitscalar:Uint32
System-wide limit for learnt MAC addresses
RANGE: [100 , 196000]
DEFAULT: 196000


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 Restriction of MAC Addresses Learned System Wide

Deleting Restriction of MAC Addresses Learned System Wide 
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "l2Macs": {
          "attributes": {
            "systemLimit": "196000"
}}}]}}
{
    imdata:[]
}
<System>
  <mac-items>
    <systemLimit>196000</systemLimit>
  </mac-items>
</System>

Note: This example was added in Release 9.3(3).


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 mac address-table limit system 125978


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
topSystem sys
l2Macs sys/mac


l2Macs Properties

The following table contains information about the l2Macs 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
systemLimitscalar:Uint32
System-wide limit for learnt MAC addresses
RANGE: [100 , 196000]
DEFAULT: 196000


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

Configuring Restriction of MAC Addresses Learned for a VLAN

Configuring Restriction of MAC Addresses Learned for a VLAN 
POST http://<mgmt0_IP>/api/mo/sys/mac.json
{
  "l2Macs": {
    "children": [
      {
        "l2MacVlan": {
          "attributes": {
            "id": "vlan-920",
            "vlanLimit": "125978"
}}}]}}
{
    imdata:[]
}
<System>
  <mac-items>
    <vlan-items>
      <MacVlan-list>
        <id>vlan-920</id>
        <vlanLimit>125978</vlanLimit>
      </MacVlan-list>
    </vlan-items>
  </mac-items>
</System>

Note: This example was added in Release 9.3(3).


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.

mac address-table limit vlan 920 125978


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
l2Macs sys/mac
l2MacVlan sys/mac/vlan-[vlan-920]


l2MacVlan Properties

The following table contains information about the l2MacVlan 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
idbase:Encap
Vlan ID for per-VLAN configuration and managementSELECTION: unknown, vlan-%d or vxlan-%d
vlanLimitscalar:Uint32
Per-VLAN limit for learnt MAC addresses
RANGE: [100 , 196000]
DEFAULT: 196000


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 Restriction of MAC Addresses Learned for a VLAN

Deleting Restriction of MAC Addresses Learned for a VLAN 
POST http://<mgmt0_IP>/api/mo/sys/mac.json
{
  "l2Macs": {
    "children": [
      {
        "l2MacVlan": {
          "attributes": {
            "id": "vlan-920",
            "vlanLimit": "196000"
}}}]}}
{
    imdata:[]
}
<System>
  <mac-items>
    <vlan-items>
      <MacVlan-list>
        <id>vlan-920</id>
        <vlanLimit>196000</vlanLimit>
      </MacVlan-list>
    </vlan-items>
  </mac-items>
</System>

Note: This example was added in Release 9.3(3).


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 mac address-table limit vlan 920 125978


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
l2Macs sys/mac
l2MacVlan sys/mac/vlan-[vlan-920]


l2MacVlan Properties

The following table contains information about the l2MacVlan 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
idbase:Encap
Vlan ID for per-VLAN configuration and managementSELECTION: unknown, vlan-%d or vxlan-%d
vlanLimitscalar:Uint32
Per-VLAN limit for learnt MAC addresses
RANGE: [100 , 196000]
DEFAULT: 196000


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

Configuring Restriction of MAC Addresses Learned for an Interface

Configuring Restriction of MAC Addresses Learned for an Interface
POST http://<mgmt0_IP>/api/mo/sys/mac.json
{
  "l2Macs": {
    "children": [
      {
        "l2MacIf": {
          "attributes": {
            "id": "eth1/2",
            "ifLimit": "125978"
}}}]}}
{
    imdata:[]
}
<System>
  <mac-items>
    <if-items>
      <MacIf-list>
        <id>eth1/2</id>
        <ifLimit>125978</ifLimit>
      </MacIf-list>
    </if-items>
  </mac-items>
</System>

Note: This example was added in Release 9.3(3).


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.

mac address-table limit interface ethernet 1/2 125978


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
l2Macs sys/mac
l2MacIf sys/mac/if-[eth1/2]


l2MacIf Properties

The following table contains information about the l2MacIf 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
idnw:IfId
(base:IfIndex)
Interface ID for per-interface configuration and managementMust match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100
ifLimitscalar:Uint32
Per-interface limit for learnt MAC addresses
RANGE: [100 , 196000]
DEFAULT: 196000


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 Restriction of MAC Addresses Learned for an Interface

Deleting Restriction of MAC Addresses Learned for an Interface
POST http://<mgmt0_IP>/api/mo/sys/mac.json
{
  "l2Macs": {
    "children": [
      {
        "l2MacIf": {
          "attributes": {
            "id": "eth1/2",
            "ifLimit": "196000"
}}}]}}
{
    imdata:[]
}
<System>
  <mac-items>
    <if-items>
      <MacIf-list>
        <id>eth1/2</id>
        <ifLimit>196000</ifLimit>
      </MacIf-list>
    </if-items>
  </mac-items>
</System>

Note: This example was added in Release 9.3(3).


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 mac address-table limit interface ethernet 1/2 125978


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
l2Macs sys/mac
l2MacIf sys/mac/if-[eth1/2]


l2MacIf Properties

The following table contains information about the l2MacIf 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
idnw:IfId
(base:IfIndex)
Interface ID for per-interface configuration and managementMust match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100
ifLimitscalar:Uint32
Per-interface limit for learnt MAC addresses
RANGE: [100 , 196000]
DEFAULT: 196000


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