Use it to trace a frame through VLAN membership, MAC learning, forwarding decisions and aging without confusing Layer-2 and Layer-3 state.
Ethernet Switching
An Ethernet switch learns source MAC addresses per VLAN and forwards, filters or floods frames according to destination lookup and port state.
1. Ethernet switches learn source MACs and forward by destination MAC per VLAN.
2. Unknown unicast and broadcast flood within the VLAN.
3. STP prevents loops.
4. MAC flapping indicates loops or moves.
5. Check VLAN, MAC table and port state.
frame in → learn source MAC → lookup destination → forward/flood in VLAN
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.
5. Check counters, security features and return learning.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
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 Layered verification and original-test closure Verify boundary
Ethernet Switching — Verify the same source/destination MAC pair and VLAN across ingress and egress, then confirm the original L2/L3 flow and watch counters to show frames traverse the intended interfaces.
Step 2 Verification and output interpretation Verify boundary
Use show mac address-table to show where a source MAC is currently learned, show interfaces status or the relevant interface detail to show the physical/logical port state, and VLAN/trunk/STP commands to show that the egress is actually eligible for the target VLAN. For one controlled flow, verify the source MAC appears on the expected ingress, the destination MAC resolves to the expected egress, and interface counters move in the expected direction without rising error/discard counters. A healthy MAC entry should be stable for a stable endpoint, but movement is legitimate during redundancy events, wireless roaming, virtualization mobility or deliberate topology changes. Verify the cause before classifying movement as a fault.
Step 3 Observation → implication → next check Narrow the fault
Ethernet Switching — If a host is unreachable, check link/VLAN state, then source-MAC learning on ingress, destination lookup and egress state. If the MAC is learned on the wrong port, investigate loops, mobility or stale topology before clearing it.
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.
Subtopics
Go one level deeper into this subject.
Ethernet switches learn source MAC addresses per VLAN/bridge domain and use the resulting forwarding table to send known unicast frames toward the learned egress instead of flooding them.
Subtopic Frame ForwardingFrame Forwarding: Known unicast, Unknown unicast, Broadcast, Flooding.
- 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— learned MACsshow interfaces status— port state, VLAN, speedshow vlan brief— VLAN membership
ReferenceHow it works1 section · depth on demand
Operational mechanics and ownership
Ethernet Switching — Ethernet switching forwards frames from a learned source MAC and destination lookup within a VLAN; broadcast and unknown-unicast flooding are scoped to the VLAN and active forwarding ports. The switch forwarding pipeline owns MAC learning and egress selection. STP, port-channel state, VLAN membership and security features can prevent a learned entry from becoming a usable forwarding path.
ReferenceImportant terms & boundaries4 sections · depth on demand
In depth
Ethernet switching on a modern switch
An Ethernet switch combines two jobs: learning which port each MAC address lives behind, and using that knowledge to forward each frame. Cisco's MAC Address Table Manager (MATM) technote for Catalyst 9000 shows that both jobs are split between software and hardware. FED MATM is the hardware table used to switch frames locally. IOS MATM is the software copy that control-plane features rely on, including LISP, EVPN and the device-tracking database. When a host first sends traffic, the packet is punted. FED reports it to IOS MATM and programs the same entry in hardware.
The switching cycle
| Step | Action |
|---|---|
| 1. Receive | Frame arrives; its VLAN is determined from the port or the tag |
| 2. Learn | The source MAC is recorded against the ingress port in that VLAN |
| 3. Look up | The destination MAC is looked up in the same VLAN |
| 4. Decide | Forward (known), flood (unknown, broadcast) or filter (same port) |
| 5. Transmit | Egress port, tagged or untagged according to its VLAN setup |
Two views of the same table (technote)
| View | Command | Use |
|---|---|---|
| Software | show mac address-table | Everyday troubleshooting |
| Hardware | show platform software fed switch active matm macTable | When forwarding doesn't match what software shows |
| Capacity | show platform hardware fed switch active fwd-asic resource tcam utilization | Table near full (the technote flags 95 % or more) |
SW1# show mac address-table vlan 110 | include Gi1/0/14|Total
110 a4bb.6d55.0164 DYNAMIC Gi1/0/14
Total Mac Addresses for this criterion: 1
SW1# show mac address-table interface TenGigabitEthernet1/1/1 | include Total
Total Mac Addresses for this criterion: 386
SW1# show platform software fed switch active matm macTable vlan 110 mac a4bb.6d55.0164
SW1# show mac address-table aging-time
Global Aging Time: 300
Ethernet switching topics in this reference
| Topic | Focus |
|---|---|
| MAC learning | How entries are created and refreshed |
| Frame forwarding | Known unicast, unknown unicast, broadcast, filtering |
| Aging | How stale entries are removed |
Capacity (technote)
The technote cites 32,768 MAC entries on a C9300 and about 82,000 on a C9500H. Exhaustion is logged as MATM-3-MAX_ENTRIES. Loops are a common reason a table fills unexpectedly.
Documented example, not captured output.
Quick reference
Ethernet switching forwards frames inside a VLAN based on destination MAC addresses. A switch learns source MACs per port, forwards known unicast frames only to the right port, and floods broadcast, unknown unicast and (without IGMP snooping) multicast to all ports in the VLAN.
| Frame type | Switch action |
|---|---|
| Known unicast | Forward to learned port |
| Unknown unicast | Flood in VLAN |
| Broadcast | Flood in VLAN |
| Multicast | Flood, or forward to joined ports with IGMP snooping |
Each switch port is its own collision domain (full duplex); the VLAN is the broadcast domain.
Concept and state model
Ethernet switching is driven by two separate observations: source learning and destination lookup. When a frame arrives, the switch can learn the source MAC against the ingress port and VLAN, refresh an existing dynamic entry, or move the entry if the source is observed elsewhere. Forwarding then uses the destination MAC in the same VLAN context. A known unicast destination is sent toward the learned egress; an unknown unicast is flooded to eligible ports in that VLAN; broadcast traffic is flooded within the broadcast domain; and frames destined to the ingress port are filtered rather than reflected. Dynamic CAM entries age, while static entries follow their configured lifetime. MAC-table state is therefore evidence of where a source was observed, not evidence that the endpoint is currently healthy. Layer 2 forwarding is also bounded by interface state, VLAN membership, STP state, EtherChannel membership and hardware programming.
Operational boundaries and common misconceptions
A populated MAC table does not show IP reachability, ARP/ND correctness, routing, DNS or application health. Likewise, an empty destination entry is not necessarily abnormal: the switch may simply not have observed source traffic from that endpoint recently. Repeated MAC flapping between unexpected ports can indicate a loop, duplicate attachment or topology problem, but mobility technologies can also move MAC ownership legitimately. Unknown-unicast flooding is a forwarding behavior, not automatically a broadcast storm. Always keep VLAN context attached to MAC-table evidence; the same MAC can legitimately appear in different VLANs or virtual contexts depending on design.
ReferenceConfiguration & state1 section · depth on demand
Configuration model and design choices
The most important configuration boundary is not a single switching command but consistent interface intent. Access ports should have deterministic access VLAN membership; trunks should carry only intended VLANs; and features such as port security, storm control or Layer 2 policy should be treated as separate policy layers rather than hidden inside the forwarding model. Static MAC entries are appropriate only where the ownership and failure behavior are understood, because they override normal learning assumptions. When changing VLAN or trunk state, reason about the complete Layer 2 path and not only one switch. A clean reference design minimizes unnecessary Layer 2 span, keeps native/access VLAN intent explicit, and aligns STP and EtherChannel topology with the physical redundancy design.
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. 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.
Quick lookup tables
Ethernet Switching, MAC Learning and Frame Forwarding evidence chain
Configuration, operational state, counters and downstream proof remain separate.
| Boundary | Question | Evidence | Does not prove |
|---|---|---|---|
| Definition | What is configured or intended? | running configuration / controller policy | live operation |
| Local state | Is the feature active at the expected scope? | show mac address-table dynamic | remote success |
| Counters | Did controlled traffic or an event reach this stage? | scoped counters/timestamps | complete return path |
| Next boundary | What consumes or transports this state? | ingress port/VLAN → source learning → destination lookup → forward/filter/flood → egress VLAN/path → return learning | application success |
Ethernet Switching · reference boundaries
Compact technical reference for the most important state and interpretation boundaries.
| Boundary | Healthy reference | Important caveat |
|---|---|---|
| Source learning | Source MAC learned on intended port/VLAN | Learning proves observation, not endpoint health |
| Known unicast | Destination resolves to intended egress | Egress still depends on STP/VLAN/interface eligibility |
| Unknown unicast | Flooding contained to intended VLAN | Empty CAM entry can be normal after aging |
| Physical interface | Link and line state stable, errors not rising | up/up does not prove Layer 3/service health |