Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

MAC Address Table Reference

Direct 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.

When to use this

Use it to find which port a device is on, and when an address flaps between ports or unicast traffic is being flooded.

First 30 seconds

1. On the gateway: show ip arp <ip> — the MAC address.

2. show mac address-table address <mac> — which port and VLAN?

3. Port is an uplink → repeat on the next switch.

4. Not in the table → the device has sent nothing lately; ping it and look again.

5. Log shows the address flapping → look for a loop between the two ports named.

Operational verification

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

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE
Key commandshow mac address-table count [vlan <vlan-id>]
Scope / prerequisiteUse it to find which port a device is on, and when an address flaps between ports or unicast traffic is being flooded.
Reference · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
On this pageJump to a specific section
Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

How to read the output

show mac address-table count [vlan <vlan-id>]

Look first: VLAN, MAC, type, learned interface

Healthy: Endpoint MAC is learned in expected VLAN/interface.

Warning: Missing, flapping or learned on unexpected interface/VLAN.

Does not prove: MAC learning does not prove ARP/IP routing or application reachability.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational verification Verify boundary
show mac address-table address 0011.2233.4455
show mac address-table interface GigabitEthernet1/0/10
show mac address-table dynamic vlan 20
show mac address-table count
show mac address-table aging-time

The first shows the VLAN and port for one address. To locate a device from its IP address, find the MAC address in the ARP table of its default gateway (show ip arp <ip>), look it up here, and if the port is an uplink, repeat on the next switch until an access port is reached. The other commands list what a port or VLAN has learned, how full the table is, and the ageing time.

Known-good: the address is found in the expected VLAN on the expected port, and stays there.

Step 2 Typical faults & boundaries Narrow the fault
  • The address is not in the table. The device has not sent anything recently, is in another VLAN, or is not connected where assumed. Ping it and look again.
  • The address is in the wrong VLAN. The access port is assigned to the wrong VLAN.
  • The log reports the address flapping between two ports. A loop, a duplicated MAC address, or a server with misconfigured NIC teaming.
  • Heavy flooding of unicast traffic. Entries age out before they are refreshed — typical with one-way traffic — or the table is full, or topology changes keep clearing it.
  • The address shows on an uplink only. The device is behind another switch; continue there.
  • A static entry points to an old port. It overrides learning until removed.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

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.

Key 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.
ReferenceWhat it is1 section · depth on demand

Mechanics & mental model

The MAC address table is how a switch knows where to send a frame. For each VLAN it records which MAC addresses have been seen on which port, and it forwards frames to the port where the destination address was last seen.

ReferenceWhy it matters1 section · depth on demand

Why it matters operationally

The table answers the most practical question in a switched network — which port is this device on — and several faults show up in it directly: an address that keeps moving between ports points to a loop, and an address that is missing explains flooding.

ReferenceHow it works1 section · depth on demand

How it works

Learning. When a frame arrives, the switch notes its source MAC address, the VLAN and the port it came in on. That is the only way a dynamic entry is created; a device that has sent nothing is unknown.

Forwarding. The switch looks up the destination address in the same VLAN:

  • Found: the frame is sent out of that one port.
  • Not found (unknown unicast): the frame is flooded out of every port in the VLAN except the one it arrived on.
  • Broadcast or multicast: flooded in the same way.

Ageing. An entry that is not refreshed by new frames from that address is removed after 300 seconds by default. A topology change in spanning tree clears entries early.

Moves. If an address appears on a different port, the entry is updated. That is normal when a device is moved or a wireless client roams. If it happens repeatedly within seconds, the switch logs a MAC flapping message naming the address and the two ports — the usual sign of a loop, or of two devices using the same address.

On a trunk, the switch sees every address that lies behind that link, so uplinks hold many entries and access ports normally one or two.

The table has a finite size. If it fills up, new addresses cannot be learned and their traffic is flooded; limiting addresses per port with port security prevents a single port from filling it.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

The MAC address table on Catalyst 9000

The MAC address table tells the switch where to send each frame, and on Catalyst 9000 it exists twice. Cisco's MATM technote explains:

  • IOS MATM is the software table shown by show mac address-table.
  • FED MATM is the hardware table that actually forwards frames, shown with show platform software fed switch active matm macTable.
  • When a new source appears, the packet is punted, learned in IOS MATM, and programmed into FED MATM.
  • SVI MAC addresses appear as static in IOS and as routed plus static (0x8002) in FED.

Entry types

TypeSourceAges out?
DYNAMICLearned from trafficYes (aging time, typically 300 s)
STATICConfigured, or the switch's own addressesNo
SECURE / STICKYPort securityDepends on configuration
Remote (EVPN/LISP)Control planeBy control-plane withdrawal

Useful commands (technote and common usage)

CommandShows
show mac address-table address <mac>VLAN, type and port of one MAC
show mac address-table interface <int>MACs learned on a port
show mac address-table countTotals per VLAN
show platform software fed switch active matm macTable vlan <id> mac <mac> [detail]The hardware entry, with ASIC and index details
show platform hardware fed switch active fwd-asic resource tcam utilizationTable usage

Capacity and exhaustion (technote)

The technote cites 32,768 MAC entries on a C9300 and about 82,000 on a C9500H. A full table is logged as MATM-3-MAX_ENTRIES. Its main causes are loops and unusually large Layer 2 domains.

SW1# show mac address-table address a4bb.6d55.0164
 110    a4bb.6d55.0164    DYNAMIC     Gi1/0/14
SW1# show platform software fed switch active matm macTable vlan 110 mac a4bb.6d55.0164
SW1# show mac address-table address 0000.0c9f.f06e
 110    0000.0c9f.f06e    STATIC      Vl110
SW1# show mac address-table aging-time vlan 110
SW1# clear mac address-table dynamic address a4bb.6d55.0164

Software and hardware must agree

The technote's case study shows forwarding failing because one stack member lacked the SVI MAC in hardware, even though the software table was correct. When forwarding doesn't match show mac address-table, check FED MATM on every stack member.

0000.0c9f.f06e is the HSRP version 2 virtual MAC for group 110 (0x06e). It appears as a static entry pointing to the SVI on the active gateway.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Network & Protocols → MAC Address Table Reference. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
mac tablecam tablemac address-tablemac flap
Embedded quick reference

Operational notes

Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.

MAC Trace Cheat Sheet

Trace an endpoint through switching.

1. Get endpoint MAC from ARP/ND.

2. show mac address-table address <mac>

3. If result is uplink/port-channel, move to next switch.

4. Repeat until edge port.

5. Validate VLAN and LLDP/CDP neighbor.

Rapid movement between ports = investigate loop, VM mobility or cabling.

Confirmation

Confirm action

Continue?