▱HAMILTON TECH LAB
← Networking Lab
NETWORKING LAB · LESSON 2 OF 4

VLANs and 802.1Q trunks

Read the explanation, try the exercise, then answer the quiz.

Understand the concept

A VLAN creates a separate Layer 2 broadcast domain. An access port usually carries traffic for one VLAN, while a trunk carries traffic for multiple VLANs.

IEEE 802.1Q adds a VLAN tag to most frames on a trunk. By default, native-VLAN traffic is typically untagged unless explicitly configured otherwise; matching native VLANs matters.

TRY IT YOURSELF

Practice task

Build two VLANs in a simulator and verify which ports can exchange frames. Add inter-VLAN routing only when you intend those networks to communicate.

CHECK YOUR UNDERSTANDING

Quick quiz

What is a trunk used for?