← All questions
Card 101 · Networking

When is a tagged VLAN (Virtual Local Area Network) used?

Answer

A tagged VLAN is used whenever several VLANs have to be transported over one physical connection – typically a trunk port between two switches, or between a switch and a router, server or hypervisor.

On a normal access port the switch knows the VLAN from the port itself (untagged, one VLAN per port). On a trunk, frames from different VLANs share the same cable, so each Ethernet frame gets a tag (IEEE 802.1Q, 4 bytes) with the VLAN ID. The receiving switch reads the tag and puts the frame into the right VLAN.

Diagram

PCVLAN 10PCVLAN 20Switch ASwitch BPCVLAN 10PCVLAN 20trunk802.1Q tagsaccess ports: untagged

Key vocabulary

TermMeaningExample
VLANa logical network inside a physical networkThe guest Wi-Fi has its own VLAN.
tagextra information added to a frameThe tag contains the VLAN ID.
trunk porta port that carries several VLANsConfigure port 24 as a trunk port.
access porta port that belongs to one VLAN, untaggedThe printer is on an access port in VLAN 30.
VLAN IDthe number of a VLAN (1–4094)The VoIP phones use VLAN ID 40.
802.1Qthe standard for VLAN taggingBoth switches support 802.1Q.

Useful phrases

Talk about it

  1. Explain the difference between an access port and a trunk port with an example from an office.
  2. A PC in VLAN 20 on switch B cannot reach the server in VLAN 20 on switch A. What would you check?
  3. Why do companies separate guests, staff and VoIP phones into different VLANs?

IHK hint

German: Tagged VLAN: wenn mehrere VLANs über eine Leitung laufen (Trunk-Port, z. B. zwischen Switches); Frames werden per IEEE 802.1Q mit der VLAN-ID markiert.