VLANs and 802.1Q Trunking
VLAN basics
VLANs divide a switched network into separate Layer 2 broadcast domains. Access ports normally carry one data VLAN; 802.1Q trunks carry multiple VLANs using tags, with platform-specific handling for the native VLAN.
configure terminal
vlan 10
name USERS
interface GigabitEthernet1/0/1
switchport mode access
switchport access vlan 10
interface GigabitEthernet1/0/24
switchport mode trunk
switchport trunk allowed vlan 10,20,30
Verify
Use show vlan brief, show interfaces trunk, and show interfaces switchport. Ensure both trunk ends agree on native VLAN and allowed VLANs.
Quick revision
- Explain the concept in your own words.
- Run the relevant verification commands in a lab.
- Record one common failure and how you would isolate it.
Want to learn this professionally?
Explore practical IT training at Cyber Code Academy.
View Academy Courses