Networking · Switching
Ethernet Switching
Cheat sheet · https://pcornel.dk/topic.php?topic=578
Answer
An Ethernet switch learns source MAC addresses per VLAN and forwards, filters or floods frames according to destination lookup and port state.
Remember
- 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.
First checks
show mac address-table— learned MACsshow interfaces status— port state, VLAN, speedshow vlan brief— VLAN membership
Commands
show mac address-table dynamic- Local state
show mac address-tableshow platform software fed switch active matm macTableshow platform hardware fed switch active fwd-asic resource tcam utilizationshow interfaces status
Verify in this order
frame in → learn source MAC → lookup destination → forward/flood in VLAN
Where it usually breaks
media/optics → administrative state → carrier/line protocol → negotiation → error/drop counters → neighbor discovery → upper-layer adjacency
Ethernet Switching · reference 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 |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=578