MAC address flapping detection enables the device to check all MAC addresses to detect MAC address flapping.
The system view is displayed.
MAC address flapping detection is enabled.
By default, MAC address flapping detection is enabled. The device detects MAC address flapping in all VLANs.
One or more VLANs are excluded from MAC address flapping detection.
By default, the switch performs MAC address flapping detection in all VLANs. In special scenarios, for example, when a switch is connected to a server with two network adapters in active-active mode, the server's MAC address may be learned on two interfaces of the switch. Such a MAC address flapping event does not need to be handled. You can exclude the VLAN where the server resides from MAC address flapping detection.
The security level of MAC address flapping detection is configured in one or more specified VLANs.
By default, the security level of MAC address flapping detection is middle. That is, the switch considers that MAC address flapping occurs when a MAC address flaps 10 times.
The aging time of flapping MAC addresses is set.
By default, the aging time of flapping MAC addresses is 300 seconds. If the aging time of dynamic MAC addresses is excessive, a long time may elapse before MAC address flapping events can be detected.
Run the display mac-address flapping command to check information about MAC address flapping detection in a VLAN.
When MAC address flapping detection is configured, the switch reports alarms if it detects MAC address flapping. Multiple occurrences of the same alarm may indicate that a loop exists on the network. To remove the loop, run the shutdown command to shut down the interface specified in the MAC address flapping alarm. Alternatively, configure an action against MAC address flapping on the interface to remove the loop.
When configuring an action, pay attention to the following points:
If the action is set to error-down, the interface cannot be automatically restored after it is shut down. You can restore the interface by running the shutdown and undo shutdown commands or the restart command in the interface view.
To enable the interface to go Up automatically, you must run the error-down auto-recovery cause mac-address-flapping command in the system view before the interface enters the error-down state. This command enables an interface in error-down state to go Up and sets a recovery delay. The interface goes Up automatically after the delay.