Explainer

What is a VLAN? A plain-English guide

What a VLAN is, how tagging and trunk ports work, why separating traffic helps a business, and the mistakes to avoid when you set one up.

By the Cloudverg engineering team · · 5 min read

What it is

A VLAN, or virtual local area network, is a way to split one physical switch into several separate networks. You decide which ports belong to which group, and the switch keeps traffic from crossing between groups. The hardware stays the same. What changes is who can talk to whom.

Each VLAN gets a number, called a VLAN ID, from 1 to 4094. Ports on a switch are assigned to one of those IDs. A laptop plugged into a port on VLAN 20 for staff sees only the staff network. The desk phone next to it sits on VLAN 30 and sees only the voice network. Both cables can run into the same switch.

Think of it as separate pipes inside one box. Devices in a VLAN share a broadcast domain, so a broadcast frame from one machine reaches the others in that VLAN and stops there. That keeps a noisy printer or a misbehaving device from spraying traffic across the whole office.

How it works

The switch port that a device plugs into is called an access port. It belongs to exactly one VLAN and sends untagged frames to the device. The device has no idea a VLAN exists.

Links between switches, and links to a router or firewall, are usually trunk ports. A trunk carries several VLANs at once and marks each frame with a small tag, defined by the 802.1Q standard. That tag holds the VLAN ID plus a priority bit you can use for voice traffic. The receiving switch reads the tag and forwards the frame into the right VLAN.

VLANs alone do not let networks talk to each other. If staff on VLAN 20 need to reach a server on VLAN 40, something has to route between them: a layer 3 switch, a router or a firewall. That device gets an interface on each VLAN and holds the rules about what is allowed. This is where most of your security decisions actually live.

Each VLAN also needs its own IP subnet and its own DHCP scope. If your DHCP server sits on a different VLAN, the router needs an IP helper address pointing at it, or clients get an address from nowhere.

Why it matters for a business

Segmentation is the main reason. Card payment terminals, guest Wi-Fi, staff laptops, servers and building systems like cameras or door controllers do not need to see each other. Put each on its own VLAN and a compromised guest laptop can no longer scan the finance file server.

Broadcast and noise control comes second. A flat network with hundreds of devices carries every broadcast to every port. Splitting it reduces that background chatter and makes faults easier to trace. When the print server stops responding, you know which segment to look at first.

Moves and changes get cheaper. Moving a person to a different team often means changing a VLAN assignment on a port, not pulling new cable or adding a switch. Guest access is the same story: one VLAN, one set of firewall rules, no separate internet line.

It also helps you answer audit style questions. If someone asks who can reach the payroll system, only the finance VLAN through the firewall is a clean answer.

Common mistakes

Leaving everything on VLAN 1. That is the default on every switch, and it means you built nothing. Move management, users and servers off it before you go live, and never put the switch management address on a user VLAN.

Trunking every VLAN to every port. A trunk should carry only the VLANs the far end needs. Allowing all of them turns one misconfigured cable into a bridge between the guest network and your servers.

Forgetting the wireless side. Wireless access points map each SSID to a VLAN. Set that mapping when you create the SSID, and check that the guest SSID lands on the guest VLAN and nowhere else. An access point plugged into an access port instead of a trunk will dump everyone onto one flat network.

Not documenting the plan. Keep a table of VLAN IDs, subnets, gateways and purpose. Six months later nobody remembers why VLAN 60 exists, and the next person guesses. Ignoring discovery protocols hurts too. Some printers, casting devices and file shares rely on mDNS or broadcast discovery, which stops at the VLAN boundary. Move those devices to the same VLAN as the people who use them, or accept that users will add printers by IP address.

How to get started

List every device type on the network and the groups that should not talk to each other. A common split is staff, voice, servers, guest, printers and building systems, plus a management VLAN for switches and access points. Keep the number of VLANs small enough that you can explain each one.

Write the IP plan before you touch a switch. Give each VLAN a subnet, a gateway address and a DHCP scope, and leave room for growth. Then configure the uplinks as trunks, restrict each trunk to the VLANs it needs, and set the access ports.

Decide the routing rules before the first device moves. Default deny between segments, then open only what a real workflow needs: staff to the file server, staff to printers, voice to the phone system provider. Test from both sides, because a rule that works one way often does not work back.

Roll it out one group at a time, starting with guest Wi-Fi, which is low risk and easy to check. Update the documentation as you go, and revisit the rules when you add a system. If you need a current list of gear before you plan the segments, the Cloudverg Hardware and endpoint review at $4,500/month gives you an inventory of endpoints, servers and network gear in two weeks. It is one option among several, and plenty of teams do the inventory in house.

Frequently asked questions

Is a VLAN the same as a subnet?

Not the same, though they usually go together. A VLAN is a layer 2 grouping inside switches. A subnet is a layer 3 address range. The common design is one subnet per VLAN, with a router or firewall interface as the gateway for that range.

Can a VLAN keep guest devices off the company network?

Yes, if the guest VLAN has no route into internal segments and the firewall blocks traffic from it. A VLAN by itself only separates traffic inside the switch. The firewall rules are what actually stop a guest device from reaching a file server.

Do I need managed switches to use VLANs?

Yes. Unmanaged switches cannot tag frames or assign ports to a VLAN. You need switches that support 802.1Q, plus a firewall or layer 3 switch to route between segments. Most business grade switches handle this.

Monthly plan

Want help with this? Hardware and endpoint review

$4,500/month

2 weeks · Starts within 10 business days

Two weeks to inventory your laptops, servers, network gear and licenses, then agree what to keep, what to replace and what it should cost.

Renews monthly. Cancel any time.
What is included

Related guides

More hardware and it guides   Hardware and devices

Smallest way to start

Get a senior architect on your problem this week

Ninety minutes a month on the cloud, AI or security question that is blocking you, a pre-read of your material and a written summary within two business days.

$450/month

Renews monthly. Cancel any time.