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 → | access | dynamic auto | dynamic desirable | trunk |
|---|---|---|---|---|
| dynamic auto | access | access | trunk | trunk |
| dynamic desirable | access | trunk | trunk | trunk |
| trunk | mismatch | trunk | trunk | trunk |
On the full sheet
- Show commands
- Spanning tree decisions
- MST
- Exam traps (5)