Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Supported Platforms

Disabling MAC Learning

By default, MAC learning is globally enabled on all node. This topic describes how to disable MAC learning, as well as how to reenable and verify that MAC learning has been enabled or disabled.

Note: This task supports the Enhanced Layer 2 Software (ELS) configuration style. For ELS details, see Getting Started with Enhanced Layer 2 Software If your switch runs software that does not support ELS, see Disabling MAC Learning.

Disabling dynamic MAC learning prevents a node from learning source and destination MAC addresses.

  • To disable MAC learning:
    [edit vlans vlan-name switch-options interface interface-name]
    user@switch# set no-mac-learning
  • To enable MAC learning:
    [edit vlans vlan-name switch-options interface interface-name]
    user@switch# delete no-mac-learning
    user@switch# deactivate no-mac-learning
  • To verify the status of MAC learning, view the Ethernet MAC learning statistics in operational mode.
    user@switch> show ethernet-switching table
    Ethernet-switching table: 2 entries, 1 learned
      VLAN              MAC address       Type         Age Interfaces
      default           *                 Flood          - All-members
      default           00:1f:12:39:90:80 Learn         29 xe-/0/0.0
    

Published: 2014-07-23

Supported Platforms

Published: 2014-07-23