Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Dynamic MAC entry

Direct answer

A dynamic MAC entry is learned automatically from source addresses and ages out when the host stops sending; show mac address-table dynamic lists them.

When to use this

Use it to understand how dynamic MAC entries appear and age out.

First 30 seconds

1. Dynamic entries are learned from source MACs.

2. Move when a host moves.

3. Age out when idle.

4. Too many on an access port may indicate a hub or bridge.

5. Port security can limit them.

Operational verification

frame source MAC → dynamic entry on ingress 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 · Cisco IOS XE
Key commandshow mac address-table dynamic
Scope / prerequisiteUse it to understand how dynamic MAC entries appear and age out.
Show · 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 dynamic

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.

3 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 Commands Verify boundary
show mac address-table dynamic
show mac address-table count
clear mac address-table dynamic interface Gi1/0/5
Step 2 Verification & troubleshooting Narrow the fault

1. Confirm ingress VLAN and STP forwarding state.

2. Verify source MAC learning.

3. Inspect destination MAC entry/type/age.

4. Trace trunk VLAN allowance to egress.

Step 3 Common mistakes Narrow the fault
  • Expecting dynamic entries to survive a port flap.
  • Too small MAC table for the number of hosts (virtualisation).
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
  • Source MAC is learned on ingress; destination MAC drives egress selection
  • Known unicast is forwarded to one learned port; unknown unicast and broadcast are flooded within the VLAN
  • A frame received on the learned destination port is filtered
  • Dynamic entries age; static entries remain until removed.
Key checks
  • show mac address-table dynamic — dynamic entries
  • show mac address-table dynamic interface <interface> — MACs per port
ReferenceWhat it is1 section · depth on demand

What it is

A dynamic MAC entry is learned from traffic and removed by aging (300 s default) or when the port goes down. Static entries are configured and never age. The table size is limited by the hardware (TCAM), so a flood of fake MACs can fill it and cause flooding.

ReferenceImportant terms & boundaries3 sections · depth on demand

Dynamic vs static entries

DynamicStatic
Created byLearningmac address-table static <mac> vlan <v> interface <if>
Ages outYes (300 s default)No
MovesYesNo (frames from it elsewhere are dropped or ignored)

Sticky MACs (port security) are learned dynamically but saved into the configuration. clear mac address-table dynamic forces relearning.

In depth

Dynamic MAC entries are learned from source addresses and expire when unused

A switch learns where a MAC address lives by reading the source MAC of every frame it receives, and records it per VLAN against the receiving port. The Catalyst 9300 guide describes dynamic entries as learned from incoming source addresses and aged out when not used. Static entries are configured, don't age and persist across resets. Each VLAN has its own table, so the same MAC can be on different ports in different VLANs.

C9300# show mac address-table dynamic vlan 20
          Mac Address Table
-------------------------------------------
Vlan    Mac Address       Type        Ports
----    -----------       --------    -----
  20    0050.56ab.12cd    DYNAMIC     Gi1/0/5
  20    a4bb.6d11.2233    DYNAMIC     Gi1/0/14
  20    00e0.4c68.0001    DYNAMIC     Te1/1/1
C9300# show mac address-table address 0050.56ab.12cd
C9300# show mac address-table count
C9300# clear mac address-table dynamic interface Gi1/0/5

Tracing a host

1. Find the MAC: show ip arp 10.20.0.15 on the gateway, or show arp on the SVI switch.

2. show mac address-table address <mac> shows the port.

3. If the port is an uplink or trunk, repeat on the neighbouring switch (show cdp neighbors <port> detail).

4. Stop at the access port where the MAC is learned on a non-trunk interface.

Problems seen in the table

ObservationMeaning
Same MAC flapping between two ports (%SW_MATM-4-MACFLAP_NOTIF)Loop, NIC teaming misconfiguration, or a VM migrating
Thousands of MACs on one access portUnmanaged switch, hypervisor, or a MAC flooding attack
Expected MAC missingHost silent, or traffic entering through another path

Getting notified of changes

The guide describes MAC change notifications as SNMP traps: snmp-server enable traps mac-notification change, mac address-table notification change, and snmp trap mac-notification change added|removed per interface. Port security can also limit how many dynamic MACs a port may learn.

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.

Quick reference

Dynamic MAC entries are learned from source addresses of incoming frames and age out when not refreshed.

show mac address-table dynamic interface Gi1/0/10
clear mac address-table dynamic interface Gi1/0/10
show mac address-table count

MAC flapping (%SW_MATM-4-MACFLAP_NOTIF) means the same MAC is seen on two ports — a loop, a misconfigured NIC team, or a VM moving. Table exhaustion (MAC flooding attack) forces flooding; port security limits MACs per port.

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 Switching → Ethernet Switching → MAC Learning → Dynamic MAC entry. 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%
Confirmation

Confirm action

Continue?