VLANs, trunks and spanning tree cheat sheet

Access and trunk ports, DTP, native VLAN, PVST+/Rapid PVST+/MST roles, costs and protection features.

01 Access and trunk ports

vlan 10
 name USERS
interface fa0/1
 switchport mode access
 switchport access vlan 10
 spanning-tree portfast
interface gi0/1
 switchport trunk encapsulation dot1q   ! multilayer switches only
 switchport mode trunk
 switchport nonegotiate
 switchport trunk native vlan 99
 switchport trunk allowed vlan 10,20,99
DTP: this side ↓ / other →accessdynamic autodynamic desirabletrunk
dynamic autoaccessaccesstrunktrunk
dynamic desirableaccesstrunktrunktrunk
trunkmismatchtrunktrunktrunk

On the full sheet

  1. Show commands
  2. Spanning tree decisions
  3. MST
  4. Exam traps (5)