Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Ethernet Switching

Direct answer

An Ethernet switch learns source MAC addresses per VLAN and forwards, filters or floods frames according to destination lookup and port state.

When to use this

Use it to trace a frame through VLAN membership, MAC learning, forwarding decisions and aging without confusing Layer-2 and Layer-3 state.

First 30 seconds

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.

Operational verification

frame in → learn source MAC → lookup destination → forward/flood in VLAN

Evidence · next step

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.

Continue only after interpreting the current observation.
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 · IOS/IOS XE · Cisco IOS XE
Scope / prerequisiteUse it to trace a frame through VLAN membership, MAC learning, forwarding decisions and aging without confusing Layer-2…
What next?3 suggested next steps
Child topics (this level)2
Evidence1
On this pageJump to a specific section
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 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 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.

command output · 1
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

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 — learned MACs
  • show interfaces status — port state, VLAN, speed
  • show 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

StepAction
1. ReceiveFrame arrives; its VLAN is determined from the port or the tag
2. LearnThe source MAC is recorded against the ingress port in that VLAN
3. Look upThe destination MAC is looked up in the same VLAN
4. DecideForward (known), flood (unknown, broadcast) or filter (same port)
5. TransmitEgress port, tagged or untagged according to its VLAN setup

Two views of the same table (technote)

ViewCommandUse
Softwareshow mac address-tableEveryday troubleshooting
Hardwareshow platform software fed switch active matm macTableWhen forwarding doesn't match what software shows
Capacityshow platform hardware fed switch active fwd-asic resource tcam utilizationTable 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

TopicFocus
MAC learningHow entries are created and refreshed
Frame forwardingKnown unicast, unknown unicast, broadcast, filtering
AgingHow 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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 typeSwitch action
Known unicastForward to learned port
Unknown unicastFlood in VLAN
BroadcastFlood in VLAN
MulticastFlood, or forward to joined ports with IGMP snooping

Each switch port is its own collision domain (full duplex); the VLAN is the broadcast domain.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
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. 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%
Terminology layer

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.

Aliases that resolve here
MAC address learningknown unknown unicast floodingEthernet frame forwarding
Embedded reference data

Quick lookup tables

Ethernet Switching, MAC Learning and Frame Forwarding evidence chain

Configuration, operational state, counters and downstream proof remain separate.

BoundaryQuestionEvidenceDoes not prove
DefinitionWhat is configured or intended?running configuration / controller policylive operation
Local stateIs the feature active at the expected scope?show mac address-table dynamicremote success
CountersDid controlled traffic or an event reach this stage?scoped counters/timestampscomplete return path
Next boundaryWhat consumes or transports this state?ingress port/VLAN → source learning → destination lookup → forward/filter/flood → egress VLAN/path → return learningapplication success

Ethernet Switching · reference boundaries

Compact technical reference for the most important state and interpretation boundaries.

BoundaryHealthy referenceImportant caveat
Source learningSource MAC learned on intended port/VLANLearning proves observation, not endpoint health
Known unicastDestination resolves to intended egressEgress still depends on STP/VLAN/interface eligibility
Unknown unicastFlooding contained to intended VLANEmpty CAM entry can be normal after aging
Physical interfaceLink and line state stable, errors not risingup/up does not prove Layer 3/service health
Confirmation

Confirm action

Continue?