VLANs and network segmentation for offices and schools: guest, IoT, camera, VoIP and staff networks, firewall rules and DHCP
Plan VLANs for an office or school: which segments to create, 802.1Q trunks, IP and DHCP scopes, inter-VLAN firewall rules, testing and common mistakes.
Most small office and school networks start flat: every computer, phone, printer, camera, door controller, smart TV and visitor’s laptop on one network, all able to reach each other. It works until something goes wrong. A guest’s infected laptop can probe the file server. A camera with an old firmware bug sits next to the payroll PC. A student finds the admin page of a switch. Network segmentation fixes that by splitting the network into zones with rules between them, and in buildings like ours the usual tool is the VLAN.
This guide is the full planning walk-through: which VLANs to create, how 802.1Q tagging works on switches and access points, how to lay out IP subnets and DHCP scopes, how to write inter-VLAN firewall rules, how to roll it out without a weekend outage, and the mistakes we see most often.
Overlap note: our network switch buying guide has a short VLAN table as part of choosing switches, our business Wi-Fi design guide covers mapping SSIDs to VLANs, and our zero trust guide treats segmentation as one pillar. This post goes deeper on the design itself: the IP plan, DHCP, the rule matrix, trunk configuration, testing and rollout.
What is network segmentation?
Network segmentation divides one network into smaller parts so traffic between them can be controlled. CISA’s segmentation infographic describes it as a physical or virtual approach that divides a network into multiple segments, each acting as its own subnetwork with additional security and control.
CISA’s Cross-Sector Cybersecurity Performance Goals 2.0 include goal 3.I, “Implement Logical/Physical Network Segmentation.” The stated outcome is limiting the impact of a breach and preventing adversaries from reaching sensitive data, spaces and critical systems; the risk addressed is that “a securely segregated network can contain malicious occurrences.” CISA rates the goal high cost, high impact and complex to implement, which matches what we see: the work is mostly planning and testing, not equipment.
NIST SP 800-215 (11/17/2022) describes the traditional, segment-based approach in section 5.1.2: resources with similar security requirements are grouped into a segment, segments are created with network-layer tools such as VLAN IDs, and firewall rules block or allow communication between groups. It notes the main difficulty is keeping the mapping between what each group needs and the network segments in sync as things change. That is why documentation matters as much as configuration.
Segmentation has two benefits beyond security:
- Smaller failure domains. A broadcast storm or a misbehaving device affects one VLAN, not the whole building.
- Clearer troubleshooting. When every camera is in one subnet and every phone in another, it is obvious what a device is from its address.
How does a VLAN work (IEEE 802.1Q)?
A VLAN is a separate logical network on shared switches. The standard is IEEE 802.1Q, Bridges and Bridged Networks. On links that carry more than one VLAN, switches add a small tag to each Ethernet frame. Juniper’s bridging and VLAN documentation summarizes the tag: an EtherType value of 0x8100 marks the frame as VLAN-tagged, followed by the VLAN ID. On Juniper’s ELS switches, VLAN IDs 1 to 4094 are usable and IDs 0 and 4095 are reserved; other vendors use the same range, though some switches support fewer VLANs at once.
Three port roles matter:
| Port type | Carries | Typical use |
|---|---|---|
| Access port | One VLAN, untagged | Desk PC, printer, camera, door controller |
| Trunk port | Several VLANs, tagged (often one untagged “native” VLAN) | Switch to switch, switch to firewall, switch to access point |
| Phone port (voice VLAN) | Voice VLAN tagged plus data VLAN untagged | IP phone with a computer plugged into the phone |
Traffic inside a VLAN is switched directly. Traffic between VLANs must be routed, either by the firewall or by a layer 3 switch. That routing point is where segmentation becomes real, because that is where the rules live.
Which VLANs should an office or school create?
Create a VLAN when a group of devices needs different rules from everything else. A common starting set:
| VLAN (example ID) | Who or what | Default posture |
|---|---|---|
| 10 Staff | Staff computers and laptops | Internet, printers, approved internal servers and cloud apps |
| 20 Students (schools) | Student devices, labs, carts | Internet through the content filter; no staff, admin or building systems |
| 30 Guest | Visitors on Wi-Fi | Internet only, rate-limited, client isolation on |
| 40 Voice | IP phones | Phone system or provider, DHCP, time; nothing else |
| 50 Cameras | Cameras and the recorder | Recorder and viewing stations only; no internet unless a named cloud service needs it |
| 60 Building systems and IoT | Door controllers, HVAC, AV, displays, sensors | Their own controller or cloud service; vendor access through a controlled path |
| 70 Servers (if any) | On-site file, print or app servers | Reached only by the VLANs and ports that need them |
| 99 Management | Switch, access point, firewall, UPS and controller interfaces | Named administrators only, from an admin workstation or VPN |
The IDs are examples. What matters is that the plan is written down and used everywhere.
Two common additions:
- Payment terminals. If you take cards on-site, keep terminals on their own segment and ask your payment processor what network rules they expect.
- Printers. Some organizations put printers on their own VLAN so staff and students can print without reaching each other. This needs a printing approach that works across VLANs (see the mDNS section below).
Fewer is better. Every VLAN adds rules to review. Do not create a VLAN per department unless departments really need different access.
How should IP subnets and DHCP scopes be planned?
Each VLAN gets its own IP subnet. For internal networks, use the private ranges in RFC 1918: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16.
A readable plan makes the VLAN obvious from the address. One approach with the 10.x range:
| VLAN | Subnet | Gateway | DHCP range | Size note |
|---|---|---|---|---|
| 10 Staff | 10.10.10.0/24 | 10.10.10.1 | .50 to .250 | Up to about 250 devices |
| 20 Students | 10.10.20.0/22 | 10.10.20.1 | .20.50 to .23.250 | Larger block for carts and labs |
| 30 Guest | 10.10.30.0/23 | 10.10.30.1 | .30.50 to .31.250 | Short lease time |
| 40 Voice | 10.10.40.0/24 | 10.10.40.1 | .50 to .250 | Phone provisioning options as needed |
| 50 Cameras | 10.10.50.0/24 | 10.10.50.1 | Reservations or static | Recorder at a fixed address |
| 60 Building | 10.10.60.0/24 | 10.10.60.1 | Reservations or static | Controllers at fixed addresses |
| 99 Management | 10.10.99.0/24 | 10.10.99.1 | Static | No DHCP for infrastructure |
Practical rules:
- Avoid 192.168.0.0/24 and 192.168.1.0/24 for office networks. Many home routers use them, and remote staff on VPN can end up with overlapping addresses.
- Size for growth. A /24 gives 254 usable addresses. Student and guest VLANs usually need more; a /22 or /23 avoids running out on a busy day.
- Short leases on guest networks (a few hours) so addresses free up quickly; longer leases on staff and fixed-device VLANs.
- Reservations or static addresses for infrastructure, recorders, door controllers and printers, recorded in the IP plan.
- One DHCP server can serve many VLANs. The DHCP standard, RFC 2131, defines relay agents: the router or firewall interface for each VLAN forwards DHCP requests to a central server and fills in its own address (the “giaddr” field) so the server knows which scope to use. This removes the need for a DHCP server on every segment. On a small network, the firewall often is the DHCP server for each VLAN.
- DNS per VLAN. Staff may use internal DNS servers; guests usually get public DNS or the firewall’s filtering resolver. Decide and write it down.
- Plan IPv6 too. If your internet provider and firewall hand out IPv6, each VLAN needs its own IPv6 prefix and equivalent rules. An IPv4-only rule set with IPv6 open is a common gap.
How should inter-VLAN firewall rules be written?
NIST SP 800-41 Rev. 1 (09/2009) states the core principle: firewalls should generally block all inbound and outbound traffic that the firewall policy has not expressly permitted. This is deny by default, which NIST calls a more secure approach than allowing everything not explicitly forbidden. The same idea applies between internal VLANs.
Write a rule matrix before touching the firewall. Rows are sources, columns are destinations, each cell says what is allowed:
| From \ To | Staff | Students | Guest | Voice | Cameras | Building | Servers | Mgmt | Internet |
|---|---|---|---|---|---|---|---|---|---|
| Staff | Yes | No | No | No | Viewers only | No | Named apps | No | Yes |
| Students | No | Yes, or isolated | No | No | No | No | Named apps | No | Filtered |
| Guest | No | No | Isolated | No | No | No | No | No | Yes |
| Voice | No | No | No | Yes | No | No | No | No | Phone provider only |
| Cameras | No | No | No | No | Recorder | No | No | No | Named cloud only, if used |
| Building | No | No | No | No | No | Own controllers | No | No | Named vendor services only |
| Mgmt | Admin | Admin | Admin | Admin | Admin | Admin | Admin | Yes | Updates |
How to turn that into rules:
- Allow only named traffic. For example: staff VLAN to file server on the ports the server uses; viewing stations to the recorder on its web or client ports; admin workstation to the management VLAN.
- Use objects and groups. Name addresses and services (“Recorder”, “Door controllers”, “Phone provider SBCs”) so rules read like the matrix.
- Block access to the firewall’s own management from every VLAN except management.
- Control outbound traffic from device VLANs. Cameras and controllers rarely need open internet access; limit them to the update and cloud services they actually use.
- Log denies on rules between internal VLANs at first, so you can see what breaks and decide whether it should be allowed.
- Review the rule set on a schedule and after every change, and remove rules nobody can explain.
Return traffic is handled by the firewall’s stateful inspection: if staff may open a session to the recorder, replies come back without a separate rule.
Should routing between VLANs happen on the firewall or a core switch?
Both are valid. The trade-off is control versus speed.
| Routing on the firewall | Routing on a layer 3 core switch | |
|---|---|---|
| Rules | Full firewall policy, logging, inspection | Access lists, usually simpler and less logging |
| Throughput | Limited by firewall model and inspection features | Switch-speed between VLANs |
| Best fit | Most small offices, practices, small schools | Larger campuses with heavy internal traffic |
| Watch out for | Firewall sizing for internal traffic, not just internet | Rules spread across devices; harder to audit |
A hybrid is common in larger schools: high-volume, low-risk VLANs routed on the core switch, while guest, cameras, building systems and management sit behind the firewall. If you go this way, document which VLANs are routed where. Our business firewall buying guide covers sizing a firewall for internal traffic, not just the internet connection.
How should switch ports, trunks and access points be configured?
The switch side is where most segmentation mistakes live.
- Access ports set to the right VLAN for the device in the wall jack, recorded in a port map.
- Trunks carry only the VLANs needed. A trunk to an access point might carry staff, students, guest and management. A trunk to an IDF carries what that floor uses. Avoid “allow all VLANs” on every trunk.
- Native VLAN changed from the default VLAN 1 to an unused VLAN with no devices, or tag everything, following your vendor’s guidance. Do not leave user devices on VLAN 1.
- Voice VLAN on desk ports with phones, so the phone tags its traffic and the computer behind it stays on the data VLAN. Phones learn the voice VLAN through the switch’s discovery protocol or DHCP options, depending on the vendor.
- Unused ports shut down or placed in an isolated VLAN.
- Lobby, classroom and conference room jacks protected with port security or 802.1X so a device plugged in does not land on the staff network.
- DHCP snooping so a home router plugged into a wall jack cannot hand out addresses.
- Wi-Fi SSIDs mapped to VLANs on the access point or controller: staff, students, guest and maybe devices. Our business Wi-Fi design guide covers keeping the SSID count low.
- Management interfaces of switches, access points and the UPS on the management VLAN only.
Small unmanaged switches under desks defeat this plan, because they pass whatever VLAN the wall port is on to everything plugged in. Our network switch buying guide explains why business networks need managed switches.
Why do printers and casting break after segmentation, and how do you fix it?
This is the most common complaint after a segmentation project. Many printers, casting receivers and smart displays announce themselves with multicast DNS (mDNS, often called Bonjour or AirPlay discovery). RFC 6762 defines mDNS with link-local scope on the multicast address 224.0.0.251, which means discovery messages stay inside one network segment. Once staff and printers are on different VLANs, laptops stop “seeing” the printer, even though a firewall rule would allow printing.
Options, in rough order of preference:
- Add printers by IP address or through a print server or cloud print service, and allow staff and student VLANs to reach printers on the printing ports only.
- Use an mDNS gateway or reflector feature on the firewall, switch or wireless controller, limited to the services and VLANs that need it (for example, AirPlay from staff to classroom displays only).
- Put shared devices in the VLAN of the people who use them when nothing else works, accepting the trade-off.
Never “fix” discovery by flattening the network again.
How do cameras, door access and VoIP fit in?
Cameras. Cameras are small computers with long service lives and uneven update histories. Put them and the recorder in their own VLAN; allow only the recorder and named viewing stations to reach them; block internet access unless a cloud service needs it. Our camera installation planning guide covers the rest of a camera project.
Door access and building systems. Controllers, IP readers and the access server go on a building systems VLAN. Office laptops and guest Wi-Fi should never be able to reach a door controller. Vendor remote access should go through a named, logged path that you can switch off. See our access control buyer’s guide.
Voice. Phones on a voice VLAN can get quality-of-service treatment end to end and only need to reach the phone system or provider. See our VoIP phone system planning guide.
Fixed devices on segments are also a natural place for PoE planning, because cameras, door readers, phones and access points all draw power from the same switches; our PoE power budget guide covers that side.
What changes for schools?
Schools add a few requirements:
- A student VLAN separate from staff, with content filtering applied to it. CIPA filtering and E-Rate rules apply to many schools; our K-12 network refresh planning guide covers the wider project.
- Testing and assessment devices that sometimes need their own rules during testing windows.
- Classroom AV and displays that students and teachers want to cast to, which means a controlled mDNS approach.
- Building systems such as door access, paging, bells and cameras that are part of the school’s safety plan and should be on segments that students cannot reach.
- Guest and community Wi-Fi for events, isolated from everything.
Network switches, access points and firewalls used for this are typically in E-Rate Category 2; segmentation configuration is part of installing them. Cameras and door access themselves are not on the E-Rate eligible services list.
How do you roll out segmentation without breaking things?
A flat network that has run for years has hidden dependencies. Roll out in stages:
- Inventory. List every device type, where it is, and what it talks to. An IT asset inventory makes this much faster.
- Design on paper. VLAN table, IP plan, rule matrix, port map, SSID-to-VLAN map.
- Build the VLANs and rules on the firewall and switches without moving any devices yet.
- Move one group at a time, starting with the easiest and most isolated: guest Wi-Fi, then management, then cameras, then building systems, then voice, then staff and students.
- Log denies for a week after each move and decide which ones are real needs.
- Test from each VLAN that blocked paths are blocked, not just that allowed paths work (see the checklist).
- Update documentation and hand it over.
Schedule moves outside business or school hours, and have a rollback for each step (usually returning the port to the old VLAN).
How do you test that segmentation works?
From a laptop placed in each VLAN, check:
- Can it get an address from the right DHCP scope, with the right gateway and DNS?
- Can it reach what the matrix allows?
- Can it not reach what the matrix blocks? Try the management VLAN, the recorder, a door controller, the file server and the firewall admin page.
- From guest Wi-Fi, can it reach another guest device? It should not.
- From a lobby jack, does an unknown device land in the guest or quarantine VLAN?
Record results with the date. Repeat after major changes and at least once a year.
Common VLAN and segmentation mistakes
- VLANs without rules. Every VLAN can reach every other one, so segmentation exists only on paper.
- Everything on VLAN 1, including switch management.
- “Allow all VLANs” on every trunk, which carries guest and camera VLANs to places that do not need them.
- Management interfaces reachable from staff or guest networks.
- Unmanaged switches under desks or in classrooms that merge VLANs.
- IPv6 left open while IPv4 is carefully filtered.
- Undersized subnets for students and guests that run out of addresses.
- Wide “temporary” rules added to fix printing or casting, never removed.
- No written plan, so the next technician guesses.
- No test of blocked paths, only of working paths.
VLAN and segmentation planning checklist
- Device inventory by type and location, with what each type needs to reach.
- VLAN table with IDs, names and purpose.
- IP plan with subnets, gateways, DHCP ranges, reservations and lease times.
- DNS decided per VLAN; IPv6 decided per VLAN.
- Rule matrix (source, destination, allowed services), deny by default.
- Decision on where inter-VLAN routing happens (firewall, core switch or both).
- Port map: every switch port’s VLAN, trunk allowed lists, voice VLAN ports.
- Native VLAN not used for devices; VLAN 1 empty; unused ports disabled.
- SSIDs mapped to VLANs; guest client isolation on.
- Management VLAN reachable only by named administrators.
- Camera, building systems and payment segments with outbound limits.
- Printing and casting approach across VLANs decided.
- DHCP snooping and port protections on public-area jacks.
- Staged rollout plan with rollback for each step.
- Test results for allowed and blocked paths, dated.
- Documentation handed over and a rule review date set.
Questions to ask your network installer
- Can we see the VLAN table, IP plan and rule matrix before installation?
- Where will inter-VLAN routing happen, and why?
- Which VLANs will each trunk carry?
- How will printing and casting work across VLANs?
- How will guest isolation and lobby jacks be handled?
- How will you test that blocked paths are blocked, and will we get the results?
- How is IPv6 handled?
- What documentation do we get at handover, and in what format?
Where Kyber Systems fits
Kyber Systems designs and configures VLANs, IP plans and firewall rule sets for offices, practices, multi-tenant buildings and schools in Jersey City, Hoboken and New York City, as part of network design and deployment and firewall and network security work. We write the plan first, roll out in stages and test blocked paths as well as working ones. We do not quote prices in guides; every network is scoped after a walk-through.
Related guides
- Network switch buying guide: managed vs unmanaged, PoE budgets, uplinks and lifecycle
- Business Wi-Fi design guide: surveys, AP density, Wi-Fi 7, VLANs and guest networks
- Business firewall buying guide
- Zero trust for small organizations: practical first steps
Checked against the IEEE 802.1Q working group page, Juniper VLAN documentation, NIST SP 800-215 and SP 800-41 Rev. 1, CISA CPG 2.0 and segmentation resources, and RFC 1918, 2131 and 6762 on 12/04/2026. Vendor features and limits vary; confirm against your equipment’s documentation.