Subnet & VLAN planner

Splitting a home network into VLANs starts with an address plan, and address plans go wrong in boring ways: subnets that overlap, gateways outside the range, DHCP pools that collide with static addresses. This planner does the arithmetic three ways — a CIDR calculator for any network, an equal-split table for carving one network into smaller ones, and a ready-made VLAN plan that assigns each part of a home (trusted devices, servers, IoT, cameras, guests) its own segment, gateway and DHCP range.

Private by design. Everything on this page runs locally in your browser; nothing you type is uploaded or sent anywhere. New to VLANs themselves? The VLAN guide explains what a segment is, what your router and switches need to support, and the firewall rules that make the separation real — this tool just does the math.

1 — CIDR calculator

Enter any IP address and prefix length. The calculator finds the network it belongs to and everything that follows from that: broadcast address, netmask, and how many hosts actually fit.

Split this network into equal subnets

SubnetUsable rangeUsable hosts

2 — The home VLAN plan

The pattern most home networks converge on: one /24 per segment, with the third octet equal to the VLAN ID, so the address tells you the segment at a glance — anything in 192.168.30.x is IoT, anything in 192.168.40.x is a camera. Tick the segments you want and the plan fills in gateways and a DHCP range that leaves the bottom of each subnet free for static addresses (gateway at .1, infrastructure and servers below .100).

SegmentVLANSubnetGatewaySuggested DHCP rangeHosts

The plan is an addressing scheme, not security by itself — the firewall rules between segments are what enforce it. The VLAN guide covers the rules, in order, including the mDNS reflector that keeps casting and AirPlay working across segments.

Frequently asked questions

What size subnet does a home VLAN need?

A /24 — 254 usable addresses — is the home standard, and it is what the plan above uses for every segment. It is far more than any single segment needs, and that is fine: the point of the segments is separation, not address conservation. Smaller subnets (/26, 62 hosts) work too, but they complicate gateway and DHCP math for no real benefit at home.

Can my router actually do VLANs?

Only if it supports 802.1Q VLANs — most ISP-supplied gateways cannot. Prosumer and small-business gear can: UniFi, TP-Link Omada, MikroTik, and routers running OPNsense or pfSense all do, and you also need VLAN-aware switches and access points to carry the segments to wired ports and separate Wi-Fi networks. Our VLAN guide walks through what each piece has to support.

Do devices on different VLANs see each other?

Not by default once the firewall rules are in place — that separation is the entire point. You then open specific, one-way paths: trusted devices can reach the printer and the NAS, the IoT segment can reach Home Assistant but not your files, and cameras can reach only the NVR. The plan above suggests which segment each device class belongs on; the firewall rules decide what crosses.

What do I do with the plan once I have it?

Create each VLAN on your router with the ID and subnet shown, give the router's interface the gateway address (.1), enable DHCP on each segment with the suggested range, then assign switch ports and Wi-Fi networks to the VLANs. Move one device class at a time and test as you go — the VLAN guide has the full sequence, including the mDNS reflector most people need for casting and AirPlay to keep working across segments.

Related guides and tools