Related Documentation
Configuring MAC Move Limiting (CLI Procedure)
![]() | Note: This topic uses Junos OS for EX Series switches with support for the Enhanced Layer 2 Software (ELS) configuration style. If your switch runs software that does not support ELS, see Configuring MAC Move Limiting (CLI Procedure). For ELS details, see Getting Started with Enhanced Layer 2 Software. |
When MAC move limiting is configured, MAC address movements are tracked by the switch and, if a MAC address changes more than the configured number of times within one second, the changes to MAC addresses are dropped, logged or ignored, or the interface is shut down.
![]() | Note: Although you enable this feature on VLANs, the MAC move limitation pertains to the number of movements for each individual MAC address rather than the total number of MAC address moves in the VLAN. For example, If the MAC move limit is set to 1, the switch allows an unlimited number of MAC address movements within the VLAN as long as the same MAC address does not change more than once. |
You configure MAC move limiting per VLAN, not per interface (port). In the default configuration, the number of MAC moves permitted is unlimited.
You can choose to have one of the following actions performed when the MAC move limit is exceeded:
![]() | Note: There is no default action. |
- drop—Drop the packet and do not generate an alarm.
- drop-and-log—Drop the packet and generate an alarm, an SNMP trap, or system log entry.
- log—Do not drop the packet but generate an alarm, an SNMP trap, or a system log entry.
- none—Take no action.
- shutdown—Disable the interfaces in the VLAN and generate an alarm, an SNMP trap, or a system log entry. If you have configured an interface with the recovery-timeout statement, the disabled interfaces recover automatically upon expiration of the specified disable timeout. If you have not configured the switch for autorecovery from port error disabled conditions, you can bring up the disabled interfaces by running the clear ethernet-switching recovery-timeout command.
To configure a MAC move limit for MAC addresses within a specific VLAN:
- To limit the number of MAC address movements that can
be made by an individual MAC address within the specified VLAN:
[edit edit vlans vlan-name switch-options]
user@switch# set mac-move-limit limit - To limit the number of MAC address movements that can
be made by an individual MAC address and to specify the action to
be taken when the limit is reached:
[edit edit vlans vlan-name switch-options]
user@switch# set mac-move-limit limit packet-action actionThe switch performs the specified action if it tracks that an individual MAC address within the specified VLAN has moved more than the specified number of times within one second.
