Support Support Downloads Knowledge Base Juniper Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[EX] Mac-limit value for VLAN



Article ID: KB26462 KB Last Updated: 17 Aug 2020Version: 3.0
This article describes the issue of the switch not learning MAC addresses, other than the automatic MAC addresses, when mac-limit is set to 1.
  • MAC limiting protects against flooding of the Ethernet switching table on the EX Series switch.

  • MAC limiting sets a limit on the number of MAC addresses that can be learned.
Junos allows the configuration of mac-limit on a VLAN. Based on the following default behavior, pay attention to setting mac-limit as 1:

When a RVI (Routed VLAN Interfaces) is assigned for the VLAN, the first MAC address that is inserted into the forwarding database is the MAC address of the RVI. If any LAG (Aggregated Ethernet bundles) js using LACP, the first MAC address that is inserted into the forwarding database is the source address of the protocol packet.

So, the switch will not learn the MAC addresses, other than the automatic addresses, when mac-limit is set to 1.
If a RVI (Routed VLAN Interfaces) or LAG (Aggregated Ethernet bundles) interface that uses LACP is already present in a VLAN, the mac-limit should be set to at least 2. Otherwise, MAC addresses will not be learnt on the VLAN, as expected.
Modification History:
2020-08-17: Removed EOS series EX3200, EX2500.
Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search