Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Example: Disabling MAC Learning on Devices with ELS Support

 

By default, MAC learning is enabled on the QFX Series. This topic provides examples for disabling, enabling, and verifying the operation of MAC learning on the QFX Series. These examples require that you be logged in as the root user to the switch on which you wish to modify MAC learning.

Note

This task uses Junos OS for QFX3500, QFX3600, EX4600, QFX5100, and QFX10002 switches with support for the Enhanced Layer 2 Software (ELS) configuration style. If your switch runs software that does not support ELS, see Example: Disabling MAC Learning on a Switch. For ELS details, see Using the Enhanced Layer 2 Software CLI.

  • To disable MAC learning in a VLAN:

    [edit]

    user@switch# set vlans vlan10 switch-options interface xe-0/0/0.0 no-mac-learning
  • To reenable MAC learning:

    [edit] vlans vlan10 switch-options interface xe-0/0/0.0

    user@switch# delete no-mac-learning
  • To verify the status of MAC learning on the QFX Series:

    user@switch> show ethernet-switching table