no-mac-learning
Syntax
no-mac-learning;
Hierarchy Level (QFX Series and EX4600)
For QFX Series and EX4600 platforms without ELS:
[edit ethernet-switching-options interfaces interface-name]
For QFX Series and EX4600 platforms with ELS:
[edit vlans vlan-name switch-options]
For QFX5130 and QFX5700:
[edit vlans vlan-name switch-options], [edit vlans vlan-name switch-options interface interface-name]
Hierarchy Level (QFX Series per VLAN)
[edit vlans vlan-name], [edit vlans vlan-name switch-options]
Hierarchy Level (EX Series Q-in-Q Interfaces)
[edit ethernet-switching-options interfaces interface-name]
Hierarchy Level (EX Series and SRX Series Q-inQ Vlans)
[edit vlans vlan-name]
Hierarchy Level (ACX Series, MX Series, EX Series with ELS support, M Series, PTX Series, T Series)
[edit bridge-domains bridge-domain-name bridge-options], [edit bridge-domains bridge-domain-name bridge-options interface interface-name], [edit logical-systems logical-system-name bridge-domains bridge-domain-name bridge-options], [edit logical-systems logical-system-name bridge-domains bridge-domain-name bridge-options interface interface-name], [edit logical-systems logical-system-name routing-instances routing-instance-name bridge-domains bridge-domain-name bridge-options], [edit logical-systems logical-system-name routing-instances routing-instance-name bridge-domains bridge-domain-name bridge-options interface interface-name], [edit logical-systems logical-system-name routing-instances routing-instance-name switch-options], [edit logical-systems logical-system-name switch-options], [edit bridge-domains bridge-domain-name bridge-options interface interface-name], [edit routing-instances routing-instance-name bridge-domains bridge-domain-name bridge-options], [edit routing-instances routing-instance-name bridge-domains bridge-domain-name bridge-options interface interface-name], [edit routing-instances routing-instance-name protocols evpn], [edit routing-instances routing-instance-name protocols evpn interface interface-name], [edit routing-instances routing-instance-name switch-options], [edit routing-instances routing-instance-name vlans vlan-name switch-options], [edit switch-options], [edit switch-options], [edit switch-options interface interface-name], [edit vlans vlan-name switch-options]
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 QFX5130 and QFX5700, disable MAC learning for a VLAN or for a specific logical interface. Disabling MAC address learning on an interface disables learning for all the VLANs on that interface.
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.
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.
Support for QFX5130 and QFX5700 added in Junos OS Evolved Release 25.4R1.