MAC Address Table Reference
Cheat sheet · https://pcornel.dk/topic.php?topic=203
Answer
The MAC address table records, per VLAN, which MAC addresses were seen on which port. The switch sends a frame to the port where its destination was last seen, and floods it to the whole VLAN when the destination is unknown.
Remember
Entries are learned only from frames a device sends, and age out after 300 seconds. An address that moves between two ports within seconds means a loop or a duplicated MAC address. To trace a device: IP → MAC in the gateway's ARP table → port here → next switch if it is an uplink.
First checks
show mac address-table address <mac>— VLAN and port for one address.show mac address-table interface <interface>— what a port has learned.show mac address-table dynamic vlan <id>— a VLAN's entries.show ip arp <ip>on the gateway — the MAC address for an IP.show mac address-table count— how full the table is.
Commands
show mac address-table count [vlan <vlan-id>]- Shows how many MAC addresses the switch has learned, in total and per VLAN, and how much table space is left.
show mac address-tableshow platform software fed switch active matm macTableshow mac address-table address <mac>show mac address-table interface <int>show mac address-table countshow platform software fed switch active matm macTable vlan <id> mac <mac> [detail]show platform hardware fed switch active fwd-asic resource tcam utilizationshow ip arp <ip>
Verify in this order
device sends a frame → switch learns source MAC, VLAN and port → frames to that address go to that port only → entry refreshed by further traffic → stable on one port
Where it usually breaks
physical link → switchport/bundle membership → VLAN/instance state → STP/LAG decision → MAC forwarding → end-to-end frame path
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=203