A VLAN ID is a number from 1 to 4094 that identifies a virtual local area network (VLAN) in an IEEE 802.1Q tag. Switches read the 12-bit VLAN identifier in each tagged Ethernet frame and forward it only to ports in the same VLAN, keeping traffic from different VLANs separate on shared hardware.
Key takeaways
- A VLAN ID is a 12-bit number in an 802.1Q tag, with 1 to 4094 usable and 0 and 4095 reserved.
- Access ports carry one untagged VLAN; trunk ports carry many VLANs as tagged frames.
- VLANs segment traffic, but they are not a firewall — you still need routing rules between VLANs.
One switch, many networks. That is the promise of a VLAN, and the VLAN ID is the small number that makes it work. Once you understand what that number means, where it lives in a frame, and how ports use it, VLANs stop feeling mysterious.
What is a VLAN ID?
A VLAN ID is a number from 1 to 4094 that identifies one virtual local area network (VLAN) on a switch. Switches use it to decide which ports may receive a frame and which must never see it.
A VLAN is a logical grouping of devices that behave as if they are on their own separate network, even though they share the same physical switch and cabling. The ID is simply the label for that group. JumpCloud's VLAN ID guide defines it as a unique numerical identifier assigned to a VLAN, distinguishing it from other VLANs within the same network.
Think of a large office building with numbered floors. The building is the physical network, each floor is a VLAN, and the VLAN ID is the floor number on the lift button. People on floor 10 do not wander onto floor 20 by accident, because the number directs them.
What is the VLAN ID range?
Usable VLAN IDs run from 1 to 4094. The VLAN identifier field in the 802.1Q tag is 12 bits wide, so it can hold 4096 values from 0 to 4095, but 0 and 4095 are reserved.
Within that range, a few IDs have special roles. VLAN 1 is the default VLAN on most switches. VLANs 1002 to 1005 are legacy IDs for older Token Ring and FDDI networks and are best left alone on modern equipment. That leaves 1 to 1001 as the normal range on many switches, and 1006 to 4094 as the extended range, as explained in TP-Link's VLAN guide.
| VLAN ID | Meaning | Use it? |
|---|---|---|
| 0 | Reserved, priority-only tag | No |
| 1 | Default VLAN on most switches | Only for initial setup |
| 2–1001 | Normal range | Yes, for most VLANs |
| 1002–1005 | Legacy Token Ring and FDDI | No |
| 1006–4094 | Extended range | Yes, on switches that support it |
| 4095 | Reserved | No |
Most small networks need only a handful of IDs. A common plan is 10 for management, 20 for staff, 30 for servers, 40 for internet-connected devices and 50 for guests. Leave gaps between numbers so you can add a VLAN later without renumbering everything.
How does VLAN tagging work?
VLAN tagging inserts a 4-byte 802.1Q tag into an Ethernet frame, right after the source MAC address. That tag carries the VLAN ID, so every switch on the path knows which VLAN the frame belongs to.
The tag has two parts. The first two bytes are the Tag Protocol Identifier, always 0x8100, which tells the switch that a tag follows. The next two bytes are the Tag Control Information, which holds three fields: a 3-bit priority code point, a 1-bit drop eligible indicator, and the 12-bit VLAN identifier.
When a frame enters a switch, the switch tags it with the right VLAN ID, forwards it only within that VLAN, and removes the tag before handing it to a device that expects untagged traffic. That is how one cable can carry many separate networks at once.
What is the difference between access and trunk ports?
An access port belongs to one VLAN and carries untagged traffic for that VLAN only. A trunk port carries many VLANs at once, with each frame tagged so the switch at the other end can sort it.
Access ports connect to end devices: laptops, printers, cameras and phones. The device does not know about VLANs, so the switch adds the tag on entry and strips it on exit. Trunk ports connect switches to each other, or to routers and access points that handle several VLANs.
Every trunk also has a native VLAN. That is the one VLAN whose traffic travels untagged across the trunk, usually for management or for a device that cannot tag. Keep the native VLAN separate from your data VLANs, and never use VLAN 1 as the native VLAN on a trunk that faces untrusted equipment.
Getting this wrong is a common mistake. If one end of a link is set as an access port in VLAN 20 and the other end expects a trunk, traffic either stops or lands in the wrong VLAN. Check both ends, and document which ports are access and which are trunk.
How do I find my VLAN ID?
Check the device that manages your network: a managed switch, a router, or a Wi-Fi access point. The VLAN settings page lists each VLAN ID, its name, and the ports assigned to it.
On a home router, look under LAN, VLAN or advanced network settings. Some routers call it a VLAN, others call it a network or segment. On a business switch, use the web interface or the command line: the VLAN list shows the ID, name and port membership in one place.
On a Windows computer, you can also check the network adapter settings if a VLAN is set on the device itself, but most VLANs are set on the switch, not on the computer. If you cannot see any VLAN settings, your equipment may be unmanaged, which means it does not support VLANs at all.
If you run a small business network, our guide to how to secure your Wi-Fi covers guest networks, which often use a separate VLAN behind the scenes.
What are common VLAN ID examples?
There is no official list of VLAN IDs for each purpose, but most networks follow a similar pattern. Using round numbers in tens makes the plan easy to read and leaves room to grow.
- VLAN 10 — Management: switch and access point administration, kept away from ordinary users.
- VLAN 20 — Staff: employee laptops and phones, with access to internal servers.
- VLAN 30 — Servers: file servers, printers and internal services.
- VLAN 40 — IoT: cameras, smart speakers and other devices that only need the internet.
- VLAN 50 — Guest: visitor Wi-Fi, with internet only and no access to internal systems.
- VLAN 99 — Unused ports: a quarantine VLAN for ports with nothing plugged in.
Pick a scheme, write it down, and use the same numbers on every switch. A VLAN plan that exists only in one person's head breaks the first time that person is on holiday and a port needs to move.
Are VLANs secure?
VLANs improve security by isolating traffic, but they are not a complete security control on their own. They stop casual snooping and accidental access, and they limit the spread of broadcast traffic and some malware.
They do not stop a determined attacker by themselves. Known attacks include VLAN hopping, where a device tricks a switch into sending traffic to another VLAN, and double tagging, where a frame carries two tags to slip past a trunk. Both rely on misconfiguration, especially a native VLAN that matches a data VLAN.
To use VLANs safely, move traffic off VLAN 1, set an unused VLAN as the native VLAN on trunks, disable unused ports or put them in a quarantine VLAN, and add firewall rules between VLANs. A VLAN says which devices can talk at Layer 2; a firewall decides which of them may talk at Layer 3 and above. For a wider checklist, see our small business cybersecurity checklist.
VLAN ID vs subnet: what is the difference?
A VLAN ID works at Layer 2, the data link layer, and defines a broadcast domain. A subnet works at Layer 3, the network layer, and defines a range of IP addresses. They solve different problems, but they usually work together.
In a typical setup, each VLAN gets its own subnet. VLAN 20 might use 192.168.20.0/24, VLAN 40 might use 192.168.40.0/24, and a router moves traffic between them only when a rule allows it. That pairing makes troubleshooting easier: if you know the IP address, you can guess the VLAN, and vice versa.
You can have a VLAN without a separate subnet, and a subnet without a VLAN, but combining them is the normal, readable design. If your network grows, keep the numbering aligned so VLAN 20, subnet .20 and a matching DHCP scope all point to the same group.
How do you configure a VLAN ID?
On most managed switches the steps are the same: create the VLAN, give it a name, assign ports, and then set up routing if VLANs need to talk to each other.
- Create the VLAN: add the ID, for example 20, and a name such as Staff.
- Assign access ports: set each staff port to VLAN 20 as untagged.
- Set up trunks: allow VLAN 20, and any other VLANs you need, on links between switches.
- Configure the router: add a sub-interface or VLAN interface for VLAN 20 with its subnet and DHCP scope.
- Add firewall rules: decide what VLAN 20 may reach, and block the rest by default.
- Verify: plug a device into a VLAN 20 port, check it gets the right address, and confirm it cannot reach a VLAN 50 device.
On Cisco-style equipment the commands are short: create the VLAN, name it, then set a port with the access VLAN command. On a web-managed switch the same choices appear as drop-down menus. Either way, test one port before you change a whole switch, and keep a backup of the configuration.
The bottom line
A VLAN ID is a simple number with a big job: it tells every switch which virtual network a frame belongs to, from 1 to 4094, carried in a 4-byte 802.1Q tag. Use clear numbers, separate access from trunk ports, and pair each VLAN with its own subnet and firewall rules.
Start small: one VLAN for staff, one for guests, and one for internet-connected devices. You can check the network your own devices sit on with the free what is my IP tool, then plan your VLAN IDs from there.
Frequently asked questions
What is a VLAN ID in simple terms?
A VLAN ID is the number of a virtual network. When a switch sees that number on a frame, it knows which group of devices the frame belongs to and keeps it away from devices in other VLANs.
What is the range of a VLAN ID?
Usable VLAN IDs run from 1 to 4094. The 12-bit field in the 802.1Q tag can hold 0 to 4095, but 0 and 4095 are reserved, so they are not used as normal VLANs.
What is VLAN 1?
VLAN 1 is the default VLAN on most managed switches. New ports usually start in VLAN 1, which is why you should move real traffic off it and avoid using it for sensitive devices.
What is the difference between a VLAN and a VLAN ID?
A VLAN is the virtual network itself — the group of devices and the broadcast domain. A VLAN ID is just its number, the label switches use to tell one VLAN from another.
How do I find the VLAN ID on my network?
Check your managed switch, router or access point settings. Look for the VLAN or port configuration page, which lists each port, its VLAN ID and whether it is an access or trunk port.
Can two VLANs use the same VLAN ID?
Not on the same switch or network. Each VLAN ID must be unique within a network, or switches cannot tell which traffic belongs to which VLAN.
Is a VLAN ID the same as a subnet?
No. A VLAN works at Layer 2 and groups devices into a broadcast domain, while a subnet works at Layer 3 with IP addresses. In practice each VLAN usually gets its own subnet, but they are different concepts.
Do VLANs make a network secure by themselves?
No. VLANs isolate traffic at Layer 2, but traffic between VLANs goes through a router or firewall. Without rules there, a device in one VLAN can still reach another, so add firewall rules for real separation.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against IEEE 802.1Q tagging, JumpCloud and TP-Link VLAN guides, and Cisco CCNA material on VLAN configuration.
How we write and fact-check →