Pcornel
Networking · Switching

802.1Q Trunking

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

Back to the Topic

Answer

An 802.1Q trunk carries several VLANs over one link by adding a 4-byte tag with the VLAN ID to each frame. Frames in the native VLAN are sent untagged.

Remember

A VLAN passes a trunk only if it is allowed on both ends, exists on both switches, and is forwarding in spanning tree. show interfaces trunk lists three stages: allowed, allowed and active, and forwarding (not pruned). The native VLAN must match on both ends.

First checks

  • show interfaces trunk — trunk ports, mode, encapsulation, native VLAN, allowed / active / forwarding VLANs.
  • show interfaces <if> switchport — administrative and operational mode, negotiation, native VLAN.
  • show dtp interface <if> — DTP state and negotiation.
  • show spanning-tree interface <if> — per-VLAN STP state on the trunk.
  • show cdp neighbors <if> detail — the neighbour's port, and native VLAN mismatch messages.

Commands

show interfaces switchport
Access
show interfaces trunk
Trunk
show interfaces Gi1/0/48 switchport

Verify in this order

both ends trunking → same native VLAN → VLAN allowed on both ends → VLAN exists on both switches → VLAN forwarding in STP → frames tagged and delivered

Where it usually breaks

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

802.1Q Trunking · reference boundaries

Trunk propertyHealthy referenceWhat it does not prove
Operational trunkLink is acting as a trunkTarget VLAN is carried
Allowed listTarget VLAN permitted by policyVLAN exists or forwards
Native VLANBoth ends use intended native VLANTagged VLANs are healthy
STP forwardingTarget VLAN can use the linkRemote endpoint/service health

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

Confirmation

Confirm action

Continue?