What Is a VLAN and How Does It Work? (Explained Clearly) - Virtual Local Area Network
CompTIA Security+ SY0-801: Cybersecurity Fundamentals
What is a VLAN? Learn how VLANs separate guest Wi-Fi from staff devices, how access ports, trunks, and 802.1Q tags work, and what to check when connections fail.
👉 Master your Security+ skills with Pluralsight here: Pluralsight
You’ll learn what a VLAN (virtual local area network) is and how it keeps guest Wi-Fi separate from staff devices. See how access ports, trunk ports, and 802.1Q tagging work, and what to check when devices can’t connect.
Chapters:
0:00 Intro
0:13 What is a VLAN, and what does it separate?
0:59 How do access ports and trunk ports carry VLAN traffic?
1:54 How does traffic cross from one VLAN to another?
2:49 What should you check when a VLAN isn't working?
3:45 Outro
Affiliate notice: Some links may earn a commission. Thanks for your support.
- A VLAN creates a separate Layer 2 broadcast domain without requiring separate hardware. Staff and guest devices can share a switch without receiving each other’s broadcasts.
- Access ports typically assign untagged traffic to one VLAN. Trunks carry multiple allowed VLANs over one link, usually using 802.1Q tags to identify them. Both ends should agree on how to handle untagged traffic.
- VLANs and IP subnets are different. A VLAN defines where frames can be switched; a subnet defines an IP address range. Traffic between VLANs needs routing, and firewall rules or ACLs determine what may cross.
- A guest Wi-Fi name alone doesn’t isolate guests. Map the guest SSID to a separate VLAN, block guest-to-staff traffic at the gateway, and use client isolation if guests should not reach one another.
- Troubleshoot within a VLAN before checking between VLANs. For same-VLAN failures, check port assignments and trunk settings. If only off-subnet traffic fails, check the gateway, routing, and firewall policy.
- 👉 Try Pluralsight to build hands-on cybersecurity skills with guided labs and feedback, then use practice exams to focus your certification prep.
A VLAN (virtual local area network) is a logical group of devices that share a Layer 2 broadcast domain. In practical terms, a VLAN lets one physical switch act like several separate switches. A broadcast from a staff device in VLAN 10 stays in VLAN 10; it doesn’t reach guests in VLAN 20, even if both groups use the same switch.
This is called logical segmentation: the network separates traffic through configuration rather than by giving each group its own hardware. The reverse is also true: devices connected to different switches can share a VLAN if the links between those switches carry it.
How VLANs work: access ports, trunk ports, and 802.1Q tags
A switch needs to know which VLAN an Ethernet frame belongs to before it can forward it. On an access port, the port’s configuration usually supplies that information. On a trunk link, an usually supplies it.
FAQ
Quick answers to the questions people usually ask about this topic.
Can I set up VLANs with an unmanaged switch?
Can I set up VLANs with an unmanaged switch?
An unmanaged switch usually can’t assign individual ports to different VLANs. You can connect it to a managed switch’s access port to give several untagged devices access to that port’s VLAN. If you need to assign devices on the same switch to different VLANs, use a VLAN-capable managed switch.
Do laptops and printers need to support 802.1Q VLAN tagging?
Do laptops and printers need to support 802.1Q VLAN tagging?
Not when they’re connected to ordinary access ports. The switch assigns their untagged traffic to the configured VLAN. Devices connected to a trunk, such as a wireless access point carrying both staff and guest traffic, must support tagging for the VLANs they carry as tagged traffic.
Can one DHCP server assign IP addresses to multiple VLANs?
Can one DHCP server assign IP addresses to multiple VLANs?
Yes. In a typical IPv4 setup, configure a separate DHCP scope for each VLAN’s subnet. If the server is on another VLAN, a DHCP relay on the client VLAN’s gateway forwards requests to the server and identifies the client subnet so the server can select the right scope.
Does a VLAN let devices on different IP subnets communicate without a router?
Does a VLAN let devices on different IP subnets communicate without a router?
No. In a typical setup, devices on different IP subnets still need a router or Layer 3 switch to exchange IP traffic, even if they share a VLAN. The reverse is also true: giving devices in separate VLANs addresses from the same subnet doesn’t join them, because ARP broadcasts don’t cross VLAN boundaries.
Do I need separate internet connections for staff and guest VLANs?
Do I need separate internet connections for staff and guest VLANs?
No. Staff and guest VLANs can share one internet connection through a gateway that supports both networks. Configure the gateway to allow guest traffic to the internet while blocking guest access to staff networks. A separate guest Wi-Fi name or VLAN ID doesn’t enforce that policy on its own.
How can I practice network security concepts after learning about VLANs?
How can I practice network security concepts after learning about VLANs?
If you’re ready to apply what you’ve learned, try Pluralsight as an optional next step. Use guided security labs to practice, feedback and assessments to identify gaps, and practice exams to focus your certification preparation.
Comments
Add a comment...Pinned by @jaymayor
@jaymayor👉 Master your Security+ skills with Pluralsight here: https://www.jaymayor.com/go/security-plus
Some links may earn a commission. Thanks for your support.
