Disabling dynamic MAC learning on an MX-series router prevents all the logical interfaces on the router from learning source and destination MAC addresses.
To disable MAC learning for an MX-series router, include the global-no-mac-learning statement at the [edit protocols l2-learning] hierarchy level.
- [edit protocols l2-learning]
-
global-no-mac-learning;
For more information about how to disable MAC learning for a bridge domain or a specific logical interface, see Disabling MAC Learning for a Bridge Domain or Logical Interface. For more information about how to configure a virtual switch, see Configuring a Layer 2 Virtual Switch and Configuring Integrated Routing and Bridging for a Bridge Domain Within a Layer 2 Virtual Switch.