Pcornel
Networking · Switching

Ethernet Switching

Cheat sheet · https://pcornel.dk/topic.php?topic=578

Back to the Topic

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

Commands

show mac address-table dynamic
Local state
show mac address-table
show platform software fed switch active matm macTable
show platform hardware fed switch active fwd-asic resource tcam utilization
show 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

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

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=578

Confirmation

Confirm action

Continue?