Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

no-mac-learning

Syntax

QFX Series and EX4600

For QFX Series and EX4600 platforms without ELS:

For QFX Series and EX4600 platforms with ELS:

QFX Series per VLAN

EX Series Q-in-Q Interfaces

EX Series and SRX Series Q-inQ Vlans

ACX Series, MX Series, EX Series with ELS support, M Series, PTX Series, T Series

Description

For QFX Series, EX Series switches and SRX Series Firewalls, disables MAC address learning for the specified VLAN.

For QFX Series and EX4600, disable MAC address learning for the specified interface. Disabling MAC address learning on an interface disables learning for all the VLANs of which that interface is a member.

For EX Series switches’ Q-in-Q interfaces, disables MAC address learning for the specified interface. Disabling MAC address learning on an interface disables learning for all the VLANs of which that interface is a member.

For MX Series routers and EX Series switches with ELS support, disables MAC learning for a virtual switch, for a bridge domain or VLAN, for a specific logical interface in a bridge domain or VLAN, or for a set of bridge domains or VLANs associated with a Layer 2 trunk port. On platforms that support EVPNs, you can disable MAC learning on an EVPN.

Note:

When MAC learning is disabled for a VPLS routing instance, traffic is not load-balanced and only one of the equal-cost next hops is used.

Default

MAC learning is enabled.

Required Privilege Level

system—To view this statement in the configuration.

system–control—To add this statement to the configuration.

routing—To view this statement in the configuration.

routing-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 8.4.

Support for the switch-options statement added in Junos OS Release 9.2.

Support for top-level configuration for the virtual-switch type of routing instance added in Junos OS Release 9.2. In Junos OS Release 9.1 and earlier, the routing instances hierarchy supported this statement only for a VPLS instance or bridge domain configured within a virtual switch.

Support for logical systems added in Junos OS Release 9.6.

[edit switch-options], [edit switch-options interface interface-name], [edit vlans vlan-name switch-options], and [edit vlans vlan-name switch-options interface interface-name] hierarchy levels introduced in Junos OS Release 12.3 R2 for EX Series switches.

Support for EVPNs added in Junos OS Release 13.2 for MX 3D Series routers.

Hierarchy levels [edit switch-options interface interface-name] and [edit vlans vlan-name switch-options] introduced in Junos OS Release 13.2X50-D10 for EX Series switches.

Support for EVPN-MPLS on PTX Series routers added in Junos OS Evolved Release 23.1R1.