Trunks and the 802.1Q tag: how a frame carries its VLAN
Sign in to read this lesson
A normal Ethernet frame has no VLAN field. That is why we build a trunk between switches and add an 802.1Q tag (4 bytes) to every frame. Inside the tag are TPID 0x8100, the priority (PCP), DEI and the 12-bit VLAN ID (VID). ISL is Cisco's old protocol. A port gets its VLAN statically, dynamically (VMPS or 802.1X/RADIUS) or as a voice VLAN. On a trunk only the native VLAN is untagged (VLAN 1 by default).
What you will learn
- A normal Ethernet frame has no VLAN field. Between switches we build a trunk: one link that carries every VLAN.
- 802.1Q (dot1q) is the standard, supported by almost every vendor. ISL is Cisco's old protocol; most modern switches no longer support it.
- The 802.1Q tag inserts 4 bytes between the Source MAC and the Type: TPID 0x8100 (16 bits), PCP priority (3 bits), DEI (1 bit), VID (VLAN ID, 12 bits, usable range 1–4094).
- Assigning a VLAN to a port: static (most common), dynamic (VMPS, by MAC, insecure), voice VLAN, and today 802.1X + RADIUS dynamic VLANs.
- The native VLAN is the only VLAN sent untagged on a trunk (default VLAN 1). Both ends of the trunk must use the same native VLAN.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.