How to solve MAC address flapping on S series switch

Firstly, check whether a loop occurs on the network.
Secondly, use one of the following methods to prevent MAC address flapping:
1. Run the mac-address static mac-address command in the system view to configure static MAC addresses on an interface.
2. Configure the MAC address learning priority on an interface. That is, run the mac-learning priority priority-id command in the interface view on modular switches or S5720HI, S6720EI, and S5720EI fixed switches or run the mac-spoofing-defend enable command in the interface view on S5700LI, S5700S-LI, S5710-X-LI, S2750EI, S5720S-SI, and S5720SI fixed switches.
After different MAC address learning priorities are configured for interfaces, only the MAC address entry learned by a high-priority interface can overwrite that learned by a low-priority interface if different interfaces have learned the same MAC address entry. This prevents MAC address flapping.
Note that SA cards of modular switches do not support the MAC address learning priority configuration. You can run the undo mac-learning priority priority-id allow-flapping command in the system view to prohibit MAC address flapping between interfaces with the same priority.

Scroll to top