Pcornel
Browse topics
Options
Recent
Favorites
Command · Cisco IOS / IOS XE

Show MAC address table count

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.

Read output firstVLAN, MAC, type, learned interface
HealthyEndpoint MAC is learned in expected VLAN/interface.
WarningMissing, flapping or learned on unexpected interface/VLAN.
Does not proveMAC learning does not prove ARP/IP routing or application reachability.
Execution context

Privileged EXEC

Use when

You suspect a MAC flood or loop, the table seems full, or you want a quick size check before and after a change.

Privilege Privileged EXECState impact Read-onlyProduction Unknown

Operational impact: Read-only.
Command detailsSafety model · family · platform · verification · bundle
PrivilegePrivileged EXEC
Execution contextPrivileged EXEC
State impactRead-only
Safe during productionUnknown
CategorySwitching
Evidence levelmixed
Primary DomainNetworking
Historical technical verificationNeeds verification dateCurrent command content requires review after a Git edit.
Family Witching
PlatformCisco IOS / IOS XE
PrerequisitePrivileged EXEC
Output fields

Field glossary

Important fields projected from persisted Command guidance.

Dynamic Address Count, Static Address Count, Total Mac Addresses, Total Mac Address Space Available

Important persisted output field; use surrounding guidance for interpretation.

Command → Topic semantics

Used in these Topics

Each relation carries both placement role and operational semantic: verifies, configures, troubleshoots, collects evidence, changes state or general.

DomainsNetworking

Find another Command

Reference enrichment

Evidence boundary

What this output can establish — and where you must not over-claim.

Proves

Shows the number of entries in the MAC table now, split into dynamic and static, and the free space.

Does not prove

Does not show which ports or hosts the entries belong to or whether they are legitimate.

Next check

Find the ports with show mac address-table dynamic vlan <vlan-id>, and check for a loop with show spanning-tree summary.

Depth when you need it

Command guidance

Execution context

Privileged EXEC

Use when

You suspect a MAC flood or loop, the table seems full, or you want a quick size check before and after a change.

Important fields

Dynamic Address Count, Static Address Count, Total Mac Addresses, Total Mac Address Space Available

Common problems

sudden jump in dynamic entries (loop or flood); table near full so new hosts are flooded; one VLAN holding most entries

Operational impact

Read-only.

Technical context

Compare the count over a few minutes. A count that grows fast and keeps changing often means a loop or a host flooding source MACs.

Confirmation

Confirm action

Continue?