mac-limit
Syntax
Hierarchy Level
Release Information
Statement introduced in JUNOS Release 9.0 for EX Series switches.
Description
Configure the number of MAC addresses allowed on a VLAN.
Default
MAC limit is disabled.
Options
number—Maximum number of MAC addresses.
- Range: 1 through 32768
![]() | Note: Do not set the mac-limit to 1. The first learned MAC address is often inserted into the forwarding database automatically (for instance, for Routed VLAN Interfaces the first MAC address inserted into the forwarding database is the MAC address of the RVI. For Aggregated Ethernet bundles using LACP, the first MAC address inserted into the forwarding database in the forwarding table is the source address of the protocol packet). The switch will therefore not learn MAC addresses other than the automatic addresses when the mac-limit is set to 1, and this will cause problems with MAC learning and forwarding. |
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.


