Use it when MAC, ACL or QoS scale limits are reached, or to understand why some features consume TCAM space.
CAM & TCAM
Some hosts flood or are unreachable, or a new ACL/QoS policy only partly takes effect, while configuration looks correct.
Possible stored cause: A hardware table (MAC/CAM, TCAM for ACL/QoS/routes) is full, so new entries are not installed or fall back to software.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show mac address-table [dynamic]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.
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.
Some hosts flood or are unreachable, or a new ACL/QoS policy only partly takes effect, while configuration looks correct.
Step 1 Verification & evidence Verify boundary
show mac address-table; platform-specific TCAM/resource commands; verify ACL/QoS programming.
Step 2 Commands & verification Verify boundary
show mac address-table— Inspect learned MAC-to-port mappings.
Step 3 Common failure modes Narrow the fault
Resource exhaustion, unexpected flooding, stale MAC learning, or policy entries not fitting/programming in hardware.
Step 4 Troubleshooting workflow Narrow the fault
Focus for this topic: Resource exhaustion, unexpected flooding, stale MAC learning, or policy entries not fitting/programming in hardware.
Step 5 Do not confuse logical config with hardware programming Narrow the fault
Step 6 Common mistakes Narrow the fault
- Running out of TCAM space for ACLs/routes and getting traffic punted to the CPU.
- Changing SDM templates without a planned reload.
Step 7 Evidence-first troubleshooting Narrow the fault
When forwarding or policy looks correct in configuration but behaves unexpectedly, distinguish control/configuration intent from hardware programming/capacity. Verify the relevant MAC/CEF/ACL state before assuming the hardware table is the cause.
ReferenceWhat it is1 section · depth on demand
ReferenceHow it works2 sections · depth on demand
Different tables answer different forwarding questions
Mechanism, scope & boundaries
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Switches forward at line rate because lookups happen in specialised memory. CAM (content-addressable memory) holds exact-match tables, such as MAC addresses. TCAM (ternary CAM) can also match "don't care" bits, so it holds prefixes, ACLs and QoS rules. Cisco's MATM technote for Catalyst 9000 shows how to see the limits:
show platform hardware fed switch active fwd-asic resource tcam utilizationlists each table's capacity and use.- For example, the MAC table on a C9300 has 32,768 exact-match entries and 1,024 TCAM entries.
- The technote recommends watching for 95 % or more.
CAM compared with TCAM
| CAM / exact match | TCAM | |
|---|---|---|
| Match type | Exact (0 or 1 for every bit) | 0, 1 or "don't care" |
| Typical contents | MAC addresses, host routes | IP prefixes, ACLs, QoS classes, PBR |
| Lookup | One result | The first matching entry, in priority order |
| Cost | Cheaper, larger | Expensive, power-hungry, smaller |
What fills which table
| Feature | Table |
|---|---|
| Learned MAC addresses | MAC (exact match) |
| Host and prefix routes | IPv4/IPv6 FIB (exact match for hosts, TCAM for prefixes) |
| ACLs (security, QoS, PBR) | TCAM regions per feature |
| Multicast routes | Multicast tables |
When tables are full
| Table | Effect |
|---|---|
| MAC | No new learning; traffic to new hosts is flooded (MATM-3-MAX_ENTRIES) |
| FIB | Routes not programmed; traffic is punted or dropped |
| ACL TCAM | ACL fails to install; the configuration is rejected or only partly applied |
SW1# show platform hardware fed switch active fwd-asic resource tcam utilization
Codes: EM - Exact_Match, I - Input, O - Output, IO - Input & Output, NA - Not Applicable
Table Subtype Dir Max Used %Used
Mac Address Table EM I 32768 4211 12.85%
Mac Address Table TCAM I 1024 21 2.05%
L3 Multicast EM I 8192 0 0.00%
IP Route Table EM I 24576 1903 7.74%
IP Route Table TCAM I 8192 455 5.55%
SW1# show sdm prefer
SW1(config)# sdm prefer distribution
SDM templates
On Catalyst switches, SDM templates divide the hardware tables between features, for example more routes versus more MAC addresses. Changing a template requires a reload. Check TCAM use before choosing one, especially on distribution switches with large routing tables.
Documented example, not captured output.
Quick reference
CAM and TCAM are the hardware lookup tables that let switches forward at line rate. CAM (content-addressable memory) does exact-match lookups, such as a destination MAC address in a VLAN. TCAM (ternary CAM) can match bits as 0, 1 or "don't care", so it handles longest-prefix routes, ACLs and QoS classifiers in a single lookup.
| Table | Lookup type | Holds |
|---|---|---|
| CAM | Exact match | MAC address table |
| TCAM | Masked match with priority | Routes (FIB), ACL entries, QoS, PBR |
TCAM is limited and shared between features through SDM templates on Catalyst switches. When it fills, entries may be punted to the CPU or not installed.
show sdm prefer
show platform hardware fed switch active fwd-asic resource tcam utilization
show mac address-table count
Documented example, not captured output.
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 Architecture → CAM & TCAM. 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%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.
Deep reference
Design & tradeoffs
ENCOR design tradeoffs
Hardware tables are finite resources; feature scale and template choices can trade one table resource for another.