Skip to content
All lessons
Objective 2.3Network Implementation· 1 min read

VLANs and Trunking

Common Ethernet switching features

What you will learn

  • Explain why VLANs are used to logically segment the broadcast domain.
  • Distinguish an access port from a trunk port by purpose.
  • Explain the 802.1Q tag's function on a trunk link.
  • Recall the native VLAN concept and its relation to untagged frames.

One physical switch can host several VLANs — each behaving as a completely separate network in terms of broadcast domain, with no need for an extra switch or cable. This saves hardware cost and improves security by logically separating traffic.

Core concepts

VLANA separate logical network on the same physical hardware — its devices don't share a broadcast domain with another VLAN except through a router.
Access PortA port assigned to a single VLAN only, usually connected to an end device.
Trunk PortA port carrying multiple VLANs' traffic together, tagged with 802.1Q, used between switches or between a switch and a router.
Native VLANThe one VLAN whose traffic travels untagged over a trunk link — any untagged frame is assumed to belong to it.

Access vs. Trunk

AccessTrunk
VLANs supportedOne onlySeveral together
TaggingNo tagging — the end device doesn't understand 802.1QTagged with 802.1Q for every VLAN except the native one
Typical useA computer, printer, or IP phoneBetween two switches, or between a switch and a router

The native VLAN trap

If the native VLAN differs between the two ends of a trunk link, each end misinterprets the other's traffic — unintended traffic leakage between VLANs, a known security weakness called VLAN hopping through exactly this path.

Quick check

Answer in your head first, then reveal.

  1. What's the key difference between an access port and a trunk port?Reveal the answer

    Access carries only one VLAN; trunk carries several tagged VLANs together.

  2. What is the function of the 802.1Q tag?Reveal the answer

    Identifying which VLAN each frame belongs to on the shared trunk link.

  3. What security risk results from mismatched native VLANs across a trunk?Reveal the answer

    Unintended traffic leakage between VLANs, known as VLAN hopping.

Sign in to track your progress on this topic.

Your next step

Read the lesson, then mark it complete

Sources

Used to verify the facts. The writing is original to Passuit.