Pcornel
Networking · Network Devices › Layer 2 Switch

VLAN

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

Back to the Topic

Answer

On a Layer 2 switch, a VLAN is a separate broadcast domain: access ports belong to one VLAN, trunks carry many, and traffic between VLANs needs a router or Layer 3 switch.

Remember

  • VLANs divide a switch into separate broadcast domains.
  • Each VLAN usually maps to one IP subnet.
  • Traffic between VLANs needs a router or Layer 3 switch.

First checks

  • show vlan brief — VLANs and ports
  • show interfaces <interface> switchport — access VLAN

Commands

show vlan brief

Verify in this order

port → VLAN → broadcast domain

Where it usually breaks

physical link → switchport/bundle membership → VLAN/instance state → STP/LAG decision → MAC forwarding → end-to-end frame path

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

Confirmation

Confirm action

Continue?