This article explains how we can configure mac limiting on ELS devices.
[edit switch-options] user@switch# set interface <interface-name> interface-mac-limit <limit> packet-action <action>
[edit routing-instances] user@switch# set <routing-instance-name> switch-options interface interface-name interface-mac-limit <limit> You can choose to have one of the following actions performed when the MAC limit or the MAC move limit is exceeded:
drop -
drop-and-log
log
none
shutdown
vlan-member-shutdown
[edit switch-options] user@switch# set interface-mac-limit <limit>
[edit routing-instances] user@switch# set <routing-instance-name> switch-options interface-mac-limit <limit>
[edit vlans] user@switch# set <vlan-name> switch-options interface-mac-limit <limit> packet-action <action>
[edit vlans] user@switch# set <vlan-name> switch-options interface <interface-name> interface-mac-limit <limit> packet-action <action>
https://www.juniper.net/documentation/us/en/software/junos/security-services/topics/topic-map/configuring-mac-limiting.html
https://www.juniper.net/documentation/us/en/software/junos/security-services/topics/concept/port-security-mac-limiting-and-mac-move-limiting.html