Supported Platforms
Related Documentation
- EX, MX Series
- Layer 2 Learning and Forwarding for VLANs Overview
- Layer 2 Learning and Forwarding for VLANs Acting as a Switch for a Layer 2 Trunk Port
- MX Series
- Layer 2 Learning and Forwarding for Bridge Domains Overview
- Layer 2 Learning and Forwarding for Bridge Domains Functioning as Switches with Layer 2 Trunk Ports
no-mac-learning
Syntax
Hierarchy Level
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.3R2 for EX Series switches.
Description
(MX Series routers and EX Series switches only) Disable 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.
![]() | 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. Use no-mac-learning to disable MAC learning.
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.
Related Documentation
- EX, MX Series
- Layer 2 Learning and Forwarding for VLANs Overview
- Layer 2 Learning and Forwarding for VLANs Acting as a Switch for a Layer 2 Trunk Port
- MX Series
- Layer 2 Learning and Forwarding for Bridge Domains Overview
- Layer 2 Learning and Forwarding for Bridge Domains Functioning as Switches with Layer 2 Trunk Ports
Published: 2013-04-03
Supported Platforms
Related Documentation
- EX, MX Series
- Layer 2 Learning and Forwarding for VLANs Overview
- Layer 2 Learning and Forwarding for VLANs Acting as a Switch for a Layer 2 Trunk Port
- MX Series
- Layer 2 Learning and Forwarding for Bridge Domains Overview
- Layer 2 Learning and Forwarding for Bridge Domains Functioning as Switches with Layer 2 Trunk Ports