Campus VLANs & Trunking
Cheat sheet · https://pcornel.dk/topic.php?topic=48
Answer
Campus VLANs and trunking at ENCOR level: VLANs on every switch, 802.1Q trunks with a matching native VLAN and pruned allowed lists, static trunk modes instead of DTP, and Layer 2 kept inside each distribution block.
Remember
A VLAN crosses a trunk only if it exists on both switches, is allowed on both ends and forwards in STP — show interfaces trunk lists allowed, active and forwarding separately. Use switchport mode trunk + switchport nonegotiate, an unused native VLAN, and switchport trunk allowed vlan add (never without add on a live trunk).
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 trunk
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
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=48