Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Disabling MAC Learning in a VLAN

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

    Disabling dynamic MAC learning in a VLAN on a QFX Series product prevents a node from learning source and destination MAC addresses.

    • To disable MAC learning in a VLAN:
      [edit vlans vlan-name]
      user@switch# set no-mac-learning
    • To reenable MAC learning in a VLAN, use either of the following two commands:
      [edit vlans vlan-name]
      user@switch# delete no-mac-learning
      user@switch# deactivate no-mac-learning
    • To verify the status of MAC learning on the QFX series:
      user@switch> show ethernet-switching table

    Published: 2013-08-15