Troubleshooting · 4 min read

MAC address flapping between ports: causes and the fix

MAC address flapping occurs when a switch's MAC address table shows the same device MAC repeatedly moving between different ports within seconds or minutes. This instability causes packet loss, network loops, or forwarding failures that degrade user experience and complicate troubleshooting. Understanding the root causes and applying systematic fixes is essential for maintaining a stable switched network.

What is MAC address flapping?

A switch learns MAC addresses by observing the source MAC in frames arriving on each port. Normally, a MAC address remains associated with one port until the device moves or the aging timer expires. MAC flapping is when the switch's MAC address table shows the same MAC address appearing on different ports repeatedly. The switch updates its forwarding table each time, creating instability that breaks unicast forwarding and can trigger broadcast storms.

You can observe MAC flapping using 'show mac address-table dynamic' or 'show mac-address-table' commands on most vendors. Look for entries where the port changes frequently in successive command outputs, or enable MAC notification traps to log changes in real time.

Common causes of MAC address flapping

Troubleshooting and resolution steps

Start by identifying which MAC address is flapping and on which ports. Enable MAC notification or use SNMP traps to capture the movement pattern. Then verify the physical and logical topology:

Prevention and best practices

Implement these practices to reduce MAC flapping incidents:

MAC address flapping is a symptom, not a disease. Systematic investigation of the physical topology, device configuration, and switch state will reveal the root cause. Once identified, most flapping issues resolve quickly through topology correction, device repair, or configuration adjustment.

MAC Address Formatter
Convert and validate MAC addresses between decimal, hex, and binary formats instantly.
Open →
Practise this on today’s Daily Ops Drill — a free network task every day.
Open the app →
Free tools for this
More from the blog
ARP incomplete: what an unresolved entry is really telling youRead →Tracking down a duplicate IP address on a live VLANRead →