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 .
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.
2020-08-17: Removed EOS series EX3200, EX2500.