Ethernet & VLANs
Cheat sheet · https://pcornel.dk/topic.php?topic=6240
Answer
Ethernet frames, VLAN tags and trunks: a switch learns MAC addresses per VLAN, keeps VLANs apart, and carries several VLANs over one link by tagging frames with 802.1Q.
Remember
Check in order: port in the right VLAN, VLAN exists, trunk carries it, native VLAN the same on both ends, MAC address learned. A VLAN missing from the trunk's allowed list fails silently.
First checks
show vlan brief— VLANs and their access ports.show interfaces trunk— trunks, native VLAN, allowed and forwarding VLANs.show interfaces <interface> switchport— mode, access VLAN, native VLAN.show mac address-table vlan <id>— addresses learned in the VLAN.show cdp neighbors— a native VLAN mismatch is also logged by CDP.
Commands
show
Verify in this order
access port in the VLAN → VLAN exists on every switch on the path → allowed and forwarding on each trunk → native VLAN matches → MAC address learned → frame delivered
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6240