Different hierarchy
user@switch# set switch-options interface interface-name persistent-learning
set interface interface-nameinterface-mac-limitlimit packet-action <action>
Better yet
Limiting the Number of MAC Addresses Learned by a VLAN
To limit the number of MAC addresses learned by a VLAN, perform both of the following steps:
- Set the maximum number of MAC addresses that can be learned by a VLAN, and specify an action that the switch takes after the specified limit is exceeded:
[edit vlans]
user@switch# set vlan-name switch-options mac-table-sizelimitpacket-actionaction - Set the maximum number of MAC addresses that can be learned by one or all interfaces in the VLAN, and specify an action that the switch takes after the specified limit is exceeded:
[edit vlans]
user@switch# set vlan-name switch-options interface interface-nameinterface-mac-limitlimitpacket-actionaction[edit vlans]
user@switch# set vlan-name switch-options interface-mac-limitlimitpacket-actionaction***********************
Be sure to mark solutions as as resolved if they resolve the issue!