Configuring MAC Limiting (J-Web Procedure)
MAC limiting protects against flooding of the Ethernet switching table on an EX-series switch. MAC limiting sets a limit on the number of MAC addresses that can be learned on a single Layer 2 access interface (port).
JUNOS software provides two MAC limiting methods:
- Maximum number of dynamic MAC addresses allowed per interface—As soon as the limit is reached, incoming packets with new MAC addresses are dropped.
- Specific “allowed” MAC addresses for the access interface—Any MAC address that is not in the list of configured addresses is not learned.
You configure MAC limiting for each interface, not for each VLAN. In the default configuration, the limit for dynamically learned MAC addresses for each interface is 5 and the action that the switch will take if that limit is exceeded is none.
To enable MAC limiting on one or more interfaces using the J-Web interface:
- Select Configure>Security>Port Security.
- Select one or more interfaces from the Port list.
- Click the Edit button. If a message appears asking if you want to enable port security, click Yes.
- To set a dynamic MAC limit:
- Type a limit value in the MAC Limit box.
- Select an action from the MAC Limit Action box. The switch takes this action when the limit is exceeded.
- To set allowed MAC addresses:
- Click Add.
- Type the allowed MAC address and click OK.
Repeat this step to add more allowed MAC addresses.
- Click OK when you have finished setting MAC limits.
- Click OK after the command has been successfully delivered.
![]() |
Note: You can enable or disable port security on the switch at any time by clicking the Activate or Deactivate button on the Port Security Configuration page. If security status is shown as Disabled when you try to edit settings for any VLANs or interfaces (ports), the message asking if you want to enable port security appears. |