Back to the glossary
Glossary ยท Networking

What is a VLAN?

A virtual LAN (IEEE 802.1Q): one physical switch split into networks that cannot reach each other except through a router or firewall rule. Cameras, doors and intercoms, AV, and guest Wi-Fi each get their own.

The separation is only as strong as the rules between the VLANs. Devices on one VLAN reach another only through a router or firewall, so the firewall's rule table is where a camera network is actually closed off.

By Seneca SecurityUpdated November 8, 20265 min read

Definitions checked against the standards listed at the end.

How a VLAN works: access ports, trunks and the 802.1Q tag

A managed switch assigns each port to a VLAN by number. An access port belongs to one VLAN and carries its frames untagged; a camera plugged into it does not know VLANs exist. A trunk port carries several VLANs on one cable, to another switch, a firewall or an access point, and marks every frame with the VLAN it belongs to.

That mark is the IEEE 802.1Q tag: 4 bytes inserted after the source address. It holds the value 0x8100 that says a tag follows, a 3-bit priority, a 1-bit drop eligible flag and a 12-bit VLAN ID. Twelve bits give 4,096 values; 0 and 4,095 are reserved, which leaves 4,094 usable VLANs. The tag raises the largest frame from 1,518 to 1,522 bytes.

Each VLAN is normally its own IP subnet. A switch never forwards a frame from one VLAN to a port on another, so traffic between VLANs has to go up to a router or firewall, which passes only what its rules allow. Send a frame below, then flatten the network and send it again.

The drawingTagged frames on one switch
Network
Send

Swipe the drawing sideways to see every port.

FIREWALL / ROUTERRULES BETWEEN VLANSFIREWALL RULES, EXAMPLESTAFF 10 TO RECORDER 20, VIEWING: ALLOWGUEST 50 TO ANY CAMERA VLAN 20: DENYCAMERAS 20 TO INTERNET: DENYGUEST 50 TO INTERNET: ALLOWNO RULES APPLY: EVERYTHING IS ONE NETWORKTRUNK: VLANS 10, 20, 30, 50 TAGGEDUPLINKMANAGED SWITCH1CAMERAVLAN 202CAMERAVLAN 203CAMERAVLAN 204RECORDERVLAN 205DOORSVLAN 306STAFF PCVLAN 107WI-FI APTRUNK 10, 508UNUSEDFLAT NETWORK: EVERY PORT IS ON VLAN 1GUEST PHONE
The frame on this link
Destination MAC6 bytesSource MAC6 bytesNo 802.1Q tagaccess ports and flat links carry frames untaggedEtherType2 bytesPayload46 to 1,500 bytesFCS4 bytes

Sending... On an access port the frame is untagged; the switch knows its VLAN from the port.

VLAN numbers, ports and rules are an example plan. The tag layout is IEEE 802.1Q: 4 bytes inserted after the source address, holding the TPID 0x8100, a 3-bit priority (PCP), a 1-bit drop eligible flag (DEI) and the 12-bit VLAN ID. Access ports carry one VLAN untagged; trunk ports carry several, tagged. Traffic between VLANs crosses only through the firewall or a router, and only where a rule allows it.

A VLAN plan for a building's systems

A building with cameras, doors, an intercom, offices and guest Wi-Fi usually ends up with a short list like this one. The numbers are an example; the separation and the rules are the point.

VLANWhat is on itWhat it may reach
10 StaffOffice computers, printers, phonesThe internet; the recorder for named viewing stations
20 CamerasCameras and the recorderNothing outside the VLAN; remote viewing through the VPN
30 Doors and intercomsDoor controllers, IP intercomsTheir own server or cloud service only
40 AVDisplays, conference room gearThe services they use
50 Guest Wi-FiVisitors' phones and laptopsThe internet only

The access point is the one device that sits on several VLANs at once. Its port is a trunk carrying the staff and guest VLANs, and each Wi-Fi network name it broadcasts maps to one of them. A Wi-Fi access point page covers the rest of it.

VLAN or a separate physical network

A separate physical network, with its own switch and no cable to anything else, is the simplest isolation there is. It costs more hardware, more ports and more space in the closet, and it still needs a way for the recorder to reach a viewing station. VLANs give the same separation on shared switches and riser cabling, as long as the switches are configured correctly and the firewall rules are tight.

Many camera systems use both: the cameras on their own PoE switch, or on the recorder's built-in PoE ports, and the recorder joined to the rest of the network through a VLAN with narrow rules. Both approaches need a managed switch somewhere, because an unmanaged switch puts every port on one network.

Where VLANs show up in NYC and NJ buildings

In a mixed-use or multi-tenant building, the building's own systems and the tenants' networks often share a telecom room and the same riser. VLANs carry each one separately over the same fiber between floors, with trunks from the MDF to each IDF. The building's cameras, door controllers and intercoms stay on networks the tenants cannot reach, and a retail tenant's payment terminals stay off the guest Wi-Fi in the lobby. Our networking service plans the VLANs, the trunks and the firewall rules together, and our guide to securing cameras shows why the camera VLAN gets no inbound internet access.

What to ask for in a VLAN setup

  • A written VLAN plan: each VLAN's number, name, subnet and the ports on it.
  • The firewall rule table between VLANs, with every allow rule naming its source, destination and purpose.
  • No devices on VLAN 1, the default, and unused ports shut off or parked on an empty VLAN.
  • Management on its own VLAN, so switch and access point settings are not reachable from staff or guest networks.
  • The switch configuration saved and backed up off the switch.

Common VLAN mistakes

  • VLANs with an allow-all rule between them. The networks look separate and are not.
  • Cameras left on the default VLAN with the office computers.
  • An unmanaged switch added under a desk on a trunk port, or a recorder with two network connections that bridges two VLANs.
  • A trunk to an access point missing the guest VLAN, so guest Wi-Fi lands on the staff network.

VLAN questions

What is a VLAN used for?

A VLAN splits one physical network into separate networks, so devices that do not need to talk cannot. In buildings it keeps cameras, door controllers and intercoms, AV, staff computers and guest Wi-Fi apart on shared switches and cabling, with a firewall deciding what may cross.

What is an 802.1Q VLAN tag?

It is a 4-byte field that a switch adds to a frame on a trunk link to say which VLAN the frame belongs to. It holds the value 0x8100, a priority, a drop eligible bit and a 12-bit VLAN ID from 1 to 4,094. Access ports carry frames without it.

Do VLANs slow down the network?

Not in any way a building would notice. The tag adds 4 bytes to a frame on a trunk, and switching inside a VLAN runs at full speed. Traffic between VLANs passes through the firewall or router, so that device has to be sized for it.

Is a VLAN as secure as a separate network?

It can be, if the switches are configured carefully and the firewall rules between VLANs are narrow. A separate physical network is simpler to get right but costs more hardware. Most buildings use VLANs with strict rules, and some keep cameras on their own switch as well.

How many VLANs can a network have?

The 12-bit VLAN ID allows 4,094 usable VLANs, numbered 1 to 4,094. A building rarely needs more than a handful: staff, cameras, doors and intercoms, AV, guest Wi-Fi, and one for managing the switches.

Sources and standards

  • IEEE 802.1QBridges and bridged networks: VLANs, the 4-byte tag after the source address (TPID 0x8100, 3-bit PCP, 1-bit DEI, 12-bit VID), VIDs 0 and 4,095 reserved, 4,094 usable, and the maximum frame raised from 1,518 to 1,522 bytes.
  • IEEE 802.3The Ethernet frame: 6-byte addresses, 2-byte EtherType, 46 to 1,500 byte payload, 4-byte frame check sequence.
  • Published 802.1Q referencesChecked for the tag fields, the reserved VLAN IDs and the frame size.

Have a building to plan?

We walk the building, then send a written scope. Same-day quotes when we can. Licensed and insured.

Back to the glossary