PracticeBlogFlashcardsEspañol

VLANs, Access Ports, Trunks, and Native VLAN

Key Takeaways

  • VLANs create separate Layer 2 broadcast domains on switches.
  • Access ports carry traffic for one VLAN and are used for endpoint connections.
  • Trunk ports carry multiple VLANs using tags, commonly 802.1Q.
  • The native VLAN is carried untagged on an 802.1Q trunk and should be configured consistently.
  • VLAN implementation questions often combine switchport mode, allowed VLAN lists, native VLANs, and default gateway settings.
Last updated: April 2026

Switching is a major part of Domain 2, Network Implementation, which is 20% of the CompTIA Network+ N10-009 exam. VLANs are one of the most common implementation topics because they affect segmentation, broadcast scope, addressing, gateways, trunks, and troubleshooting.

The current 2026 Network+ domain weights are:

DomainWeight
Networking Concepts23%
Network Implementation20%
Network Operations19%
Network Security14%
Network Troubleshooting24%

VLAN Purpose

A VLAN is a logical Layer 2 network. Devices in the same VLAN can communicate at Layer 2 if switch policy allows it. Devices in different VLANs need Layer 3 routing through a router, multilayer switch, or firewall.

VLAN conceptMeaningCommon clue
VLAN IDNumeric identifier for the logical networkVLAN 10 users, VLAN 20 voice, VLAN 30 servers
Broadcast domainScope of Layer 2 broadcastsARP broadcast stays inside the VLAN
Access portUntagged endpoint port assigned to one VLANPC, printer, camera, access point management
Trunk portLink carrying multiple VLANsSwitch-to-switch, switch-to-router, switch-to-AP
Allowed VLAN listVLANs permitted across a trunkMissing VLAN causes only that VLAN to fail
Native VLANUntagged VLAN on an 802.1Q trunkMismatch can cause leakage or management problems

Access vs Trunk

FeatureAccess portTrunk port
Number of VLANsUsually one data VLAN, sometimes voice plus dataMultiple VLANs
TaggingFrames are normally untagged toward endpointFrames are tagged except native VLAN
Typical deviceWorkstation, printer, phone, cameraSwitch, router, firewall, hypervisor, AP
Misconfiguration symptomEndpoint lands in wrong subnetOne or more VLANs fail across uplink

IP phones are a common exception. A switchport may support a data VLAN for the attached PC and a voice VLAN for the phone. The exam may describe this as separate voice and data VLAN handling on the same access edge port.

Native VLAN

On an 802.1Q trunk, the native VLAN is untagged. Both sides of the trunk should agree on the native VLAN.

Native VLAN issueResult
Native VLAN mismatchUntagged traffic may be placed into different VLANs on each end
Using a production user VLAN as nativeRaises risk if untagged traffic appears
Missing VLAN from allowed listTagged traffic for that VLAN is not forwarded
One side access and one side trunkUnpredictable connectivity or one VLAN only

Inter-VLAN Routing

Switching alone does not route between VLANs. Hosts in VLAN 10 and VLAN 20 need a Layer 3 gateway.

DesignDescription
Router-on-a-stickRouter subinterfaces use 802.1Q tags for each VLAN
Multilayer switchSwitch virtual interfaces route between VLANs
Firewall gatewayFirewall interfaces or subinterfaces route and enforce policy

PBQ Guidance

A PBQ may show these requirements:

RequirementSwitchport choice
User PC in VLAN 10Access port VLAN 10
IP phone with attached PCVoice VLAN plus data access VLAN
Link between two switchesTrunk allowing required VLANs
Link to router-on-a-stickTrunk allowing routed VLANs
Management interface for switchManagement VLAN and correct default gateway

If only one department is down after a trunk change, compare allowed VLAN lists and native VLAN settings. If a single endpoint receives the wrong DHCP scope, check its access VLAN assignment.

Common Traps

TrapBetter reasoning
Put every endpoint port in trunk modeEdge endpoint ports should normally be access ports
Forget the allowed VLAN listA trunk can be up while one VLAN is blocked
Treat VLANs as routersVLANs separate Layer 2; routing needs a Layer 3 gateway
Ignore native VLAN consistencyNative VLAN mismatch can break untagged traffic behavior
Fix DHCP before checking VLAN assignmentWrong VLAN often causes wrong DHCP results
Test Your Knowledge

Which switchport mode is normally used for a workstation connected to a single user VLAN?

A
B
C
D
Test Your Knowledge

A trunk link is up, but VLAN 30 traffic does not cross it. What should be checked first?

A
B
C
D
Test Your KnowledgeMulti-Select

Which statements about VLANs are correct? Select two.

Select all that apply

A VLAN is a separate Layer 2 broadcast domain
Different VLANs need Layer 3 routing to communicate
A native VLAN is always tagged on 802.1Q trunks
Access ports normally carry every VLAN