Use it to understand how dynamic MAC entries appear and age out.
Dynamic MAC entry
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.
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.
frame source MAC → dynamic entry on ingress port
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show mac address-table dynamicShow 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 dynamicLook 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.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
- 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.
show mac address-table dynamic— dynamic entriesshow 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
| Dynamic | Static | |
|---|---|---|
| Created by | Learning | mac address-table static <mac> vlan <v> interface <if> |
| Ages out | Yes (300 s default) | No |
| Moves | Yes | No (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
| Observation | Meaning |
|---|---|
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 port | Unmanaged switch, hypervisor, or a MAC flooding attack |
| Expected MAC missing | Host 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.
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.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%