A structured lesson workspace with readable content, hands-on examples, and a clean path to completion.
You plug a new laptop into Gi0/5. First ping floods, second ping is instant. Nothing changed — the switch just learned. This lesson is those 2 seconds: how a switch goes from 'never seen you' to 'know exactly where you are'.
That's the switch's entire worldview. Every DYNAMIC entry got there by watching a source MAC arrive on a port. STATIC entries, like that multicast `0100.5e...` bound to CPU, were pre-programmed — usually by a protocol like IGMP snooping or STP.
Filtering looks odd until you remember switches are often cabled to hubs or unmanaged switches. If a frame arrives on Gi0/1 with a destination MAC that the switch believes lives on Gi0/1, it's a device behind the hub talking to another device behind the same hub — the switch has no reason to re-flood it.
Default MAC aging time is 300 seconds on Cisco IOS. Anything that hasn't been seen as a source for five minutes is deleted. This is why, after a topology change, the table has to re-learn — and why the first few frames after a link comes back up may flood.
Imagine four hosts connected to Gi0/1 through Gi0/4, just powered on. The switch has an empty MAC table. Host A sends an ARP for its gateway. Here's what happens:
Step by step
4 steps to follow
One ARP round trip, and the switch already learned two entries. On a busy access port, the table fills up in seconds. That's why a MAC address table overflow attack — flooding the table with bogus source MACs — is such a common vector: once the table is full, the switch falls back to flooding every frame, and anyone on the VLAN can sniff traffic that should be unicast.
You moved a laptop from one access port to another. The switch still thinks the laptop's MAC lives on the old port, so traffic floods until the entry ages out or a new frame updates it. This is why moves go wrong for a few seconds.
If you expected this MAC on Gi0/5 and it shows Gi0/1, either the device moved and hasn't sent a frame yet, or something is spoofing it. Check `show interfaces Gi0/1` for recent activity and look at the last-seen time via the aging counter.
The MAC table is the switch's entire state. When forwarding looks broken, dump the table first — nine times out of ten the problem is a stale entry or a MAC that's been spoofed. Overflow attacks that fill this table (so the switch floods everything) are stopped with port-security — full detail in Module 15.
Learn, forward, flood, filter — the four decisions every switch makes. Aging clears state. Stale entries cause brief flooding after moves. Next lesson: how collision and broadcast domains differ, and why the switch changed both.
Finish the lesson once you have worked through the material. This awards ★ 40 XP.