Skip to content
VGroup.IT Solutions

Subnet & VLAN Planner

Enter a base network and devices per VLAN; get non-overlapping subnets with gateway, usable range, broadcast and growth headroom, copyable as a table.

The IP block to split across all VLANs, e.g. 10.10.0.0/16 or 192.168.0.0/22.

%

30% suits most organisations. Re-numbering a subnet later is harder than leaving room now.

VLANs

Enter how many devices join each VLAN today. Growth headroom is added for you.

Results

Addresses allocated

560of 65,536

VLANs

6

Addresses left

64,976

Largest subnet

/24

Base network

/16

The plan fits inside the base network.
Keep guest Wi-Fi and CCTV apart from the office network and put firewall rules between VLANs. VLANs alone protect nothing if the router lets every VLAN talk to every other.

IP plan per VLAN

Allocated from the largest subnet to the smallest, so there are no gaps or overlaps.

VLANNameNeedNetworkSubnet maskGatewayUsable rangeBroadcastUsable
30Wi-Fi guest19610.10.0.0/24255.255.255.010.10.0.110.10.0.1 – 10.10.0.25410.10.0.255254
10Office7910.10.1.0/25255.255.255.12810.10.1.110.10.1.1 – 10.10.1.12610.10.1.127126
20CCTV5310.10.1.128/26255.255.255.19210.10.1.12910.10.1.129 – 10.10.1.19010.10.1.19162
50VoIP phones4010.10.1.192/26255.255.255.19210.10.1.19310.10.1.193 – 10.10.1.25410.10.1.25562
40Servers2710.10.2.0/27255.255.255.22410.10.2.110.10.2.1 – 10.10.2.3010.10.2.3130
99Management1410.10.2.32/28255.255.255.24010.10.2.3310.10.2.33 – 10.10.2.4610.10.2.4714
How we calculate

1. Addresses needed = hosts × (1 + headroom), rounded up, plus 1 for the gateway.

2. Pick the smallest subnet that fits: usable addresses = 2^(32 − prefix) − 2 (network and broadcast removed). The smallest used is /30.

3. Allocate with VLSM: sort largest first and place them back to back from the start of the base network. In this order every subnet starts on its own block boundary, so none overlap.

4. Gateway = first usable address (network + 1). "Usable range" runs from the gateway to broadcast − 1, so addresses for devices = usable − 1.

5. With DHCP, reserve a block at the start or end of the range for fixed-IP devices (switches, APs, printers, NVRs).

These results are estimates to help with planning and budgeting. Our engineers will verify everything on site before final design and equipment proposal.

The same rules of thumb our engineers use for a first design. Good enough for budgeting; the final numbers come from a site survey.

How to use it and read the result

What to enter and where to find each number

The planner needs three things: one block of addresses for the whole site, a list of VLANs with the number of devices in each, and how much room to leave for growth.

  • Base network. The address block you will split, written like 10.10.0.0/16 or 192.168.0.0/22. On an existing site, look at the LAN page of the router or firewall and the DHCP scope. For a new site, pick a private range (10.x.x.x, 172.16–31.x.x or 192.168.x.x). The prefix must be between /8 and /30.
  • Hosts needed. Devices in each VLAN today. Count them from the DHCP lease list on the router, the camera list on the NVR, the phone list on the IP-PBX and the access point list on the Wi-Fi controller. Do not forget printers, switches and door controllers. For guest Wi-Fi, use the peak number of connected clients from the controller, not the number of rooms or seats.
  • VLAN ID. Any number from 1 to 4094. The tool warns about duplicates and about VLAN 1, which is the default VLAN on every switch.
  • Growth headroom. 30% by default. Leaving room now is far cheaper than re-numbering cameras and printers in two years.

How the planner sizes and places each subnet

  1. Addresses needed = hosts × (1 + headroom), rounded up, plus 1 for the gateway.
  2. Each VLAN gets the smallest subnet whose usable count, 2^(32 − prefix) − 2, covers that number.
  3. Subnets are sorted largest first and placed back to back from the start of the base network (VLSM). In that order each one starts on its own block boundary, so nothing overlaps. Subnets of equal size keep the order of your rows.
  4. The gateway is the first usable address. The usable range runs from the gateway to the address before broadcast, so the addresses left for devices are usable − 1.
Prefix Subnet mask Block size Usable Devices after gateway
/28 255.255.255.240 16 14 13
/27 255.255.255.224 32 30 29
/26 255.255.255.192 64 62 61
/25 255.255.255.128 128 126 125
/24 255.255.255.0 256 254 253
/23 255.255.254.0 512 510 509
/22 255.255.252.0 1,024 1,022 1,021

The big number in the results is "Addresses allocated" out of the base size. "Addresses left" is what remains for future VLANs. If the plan does not fit, the VLANs that found no room are listed in red: use a shorter prefix or fewer hosts. The headroom is the only margin. The tool does not reserve a block for fixed IPs; you do that inside each range.

Worked example: office and warehouse on 192.168.0.0/22

An office with a warehouse in Vientiane, base 192.168.0.0/22 (1,024 addresses), the six preset rows and 30% headroom.

VLAN Hosts Need Subnet Gateway Usable
30 Wi-Fi guest 150 196 192.168.0.0/24 192.168.0.1 254
10 Office 60 79 192.168.1.0/25 192.168.1.1 126
20 CCTV 40 53 192.168.1.128/26 192.168.1.129 62
50 VoIP phones 30 40 192.168.1.192/26 192.168.1.193 62
40 Servers 20 27 192.168.2.0/27 192.168.2.1 30
99 Management 10 14 192.168.2.32/28 192.168.2.33 14

The arithmetic: 150 × 1.3 = 195, + 1 = 196, more than a /25 (126) so a /24. 60 × 1.3 = 78, + 1 = 79, so a /25. 40 × 1.3 = 52, + 1 = 53, so a /26. 30 × 1.3 = 39, + 1 = 40, also a /26. 20 × 1.3 = 26, + 1 = 27, so a /27. 10 × 1.3 = 13, + 1 = 14, exactly the 14 usable of a /28: a tight fit with 13 addresses for devices.

Allocated: 256 + 128 + 64 + 64 + 32 + 16 = 560 of 1,024, leaving 464. Second check by block: guest ends at .0.255, office at .1.127, CCTV at .1.191, VoIP at .1.255, servers at .2.31, management at .2.47. 2 full /24 blocks (512) plus 48 = 560.

Now shrink the base to a /23 (512). The first four VLANs use 256 + 128 + 64 + 64 = 512 exactly, so Servers and Management have no room and are flagged. Set headroom to 0% on the /22 instead and Office drops to 61 needed, a /26 with one address to spare. That is why we keep the headroom.

Turning the plan into switch and firewall settings

  • Put each gateway on the firewall or a layer-3 switch, then write rules between VLANs. VLANs only separate traffic if the router does not let every VLAN reach every other. See VLAN basics for business.
  • Guest Wi-Fi gets internet only, with client isolation on the access points. More in Wi-Fi security, WPA3 and guest isolation.
  • CCTV talks to the NVR and nothing else.
  • Reserve a small block in each range for fixed-IP devices (switches, access points, printers, NVRs) and keep DHCP out of it.

Common mistakes we see on Lao sites

  • One flat 192.168.1.0/24 for everything, with cameras, guests and the accounts PC in the same broadcast domain.
  • A branch on 192.168.1.0/24, the same range as most home routers. Staff on VPN from home then cannot reach the office.
  • VLANs on the switch but an "allow all" rule on the router, so the separation exists on paper only.
  • An unmanaged switch in the middle of a VLAN design. It cannot keep VLANs apart on its own ports. See managed vs unmanaged switch.

When the planner is not enough

The tool plans one base network. Several branches, a mine camp linked by radio, or an existing site full of fixed-IP cameras and PLCs that must be re-addressed without downtime need a survey: we read the current DHCP leases, switch configs and firewall rules, then plan the change in stages. That is part of our enterprise LAN and next-generation firewall work.

Next step

Send us on WhatsApp the plan you copied with "Copy as text", a screenshot of your router's LAN and DHCP page, and the models of your switches. Tell us how many sites you have. We will check the plan and tell you what needs a managed switch or a firewall rule.

FAQ

How many devices can a /24 subnet hold?

A /24 has 256 addresses, 254 usable after the network and broadcast addresses. Take one more for the gateway and 253 remain for devices. With the planner's default 30% headroom, a /24 holds at most 194 devices today (194 × 1.3 = 252.2, rounded up to 253, plus the gateway = 254). Above that, use a /23 or split the group into two VLANs.

Which subnet mask do I need for 50 devices?

With 30% headroom: 50 × 1.3 = 65, plus the gateway = 66. That is more than a /26 holds (62 usable), so you need a /25, mask 255.255.255.128, with 126 usable. With no headroom you need 51, which fits a /26 (255.255.255.192) but leaves only 11 spare. For an office that is still growing we would take the /25.

Should CCTV cameras be on their own VLAN?

Yes. Cameras stream all the time and many models get few firmware updates. On the same network as office PCs, any infected PC can reach them directly. Put cameras in their own VLAN, let only the NVR talk to them and block their internet access. If you need remote viewing, reach the NVR over a VPN instead of opening ports to the cameras.

What is the difference between a VLAN and a subnet?

A VLAN separates traffic at layer 2 on the switch: it decides which ports belong together. A subnet works at layer 3: it sets the IP range and the gateway. In practice we pair one VLAN with one subnet, which is why the planner lays out both together. Real separation still depends on the rules on the router or firewall between the VLANs.

Should an office use 10.x.x.x or 192.168.x.x?

Both are private ranges and work the same. For a company with staff on VPN from home or several branches we prefer 10.x, because most home routers use 192.168.0.x or 192.168.1.x and an overlap stops the VPN from reaching the office. Give each branch its own block, for example a /16 or /20, with no overlap between them.

Related solutions

Related guides

Tools

Solar System Sizing Calculator

Enter kWh from your bill or a device list; get panel size (kWp), inverter, LiFePO4 battery and roof area for on-grid, hybrid and off-grid systems.

Open calculator

CCTV Storage Calculator

Enter cameras, resolution, codec and retention days; get total TB, per-camera bitrate and a drive/RAID layout for the NVR.

Open calculator

UPS Sizing & Runtime Calculator

Add up servers, switches and NAS to get a UPS rating (VA/W) with 25% headroom and the battery energy to ride through an outage.

Open calculator

Internet Bandwidth Calculator

Before you renew with your ISP: size download and upload from users, cloud apps, video calls and remote CCTV viewing.

Open calculator

Wi-Fi Access Point Estimator

Counts access points two ways, by floor area and by people online at once, for Wi-Fi 6, 6E and 7. The higher number wins.

Open calculator

PoE Budget Calculator

Add up the PoE draw of cameras, APs and IP phones to get a switch budget with 20% headroom. PTZs that need 802.3bt get flagged.

Open calculator

Generator & ATS Sizing Calculator

List what must run in an outage; get a generator size (kVA) that copes with motor starts and UPS loads, plus ATS rating and fuel per hour.

Open calculator

Rack Planner

List the equipment; get U used, the right rack size (wall or floor), depth, power, heat in BTU/h and patch-cord count, with a simple rack drawing.

Open calculator

CCTV DORI Distance Calculator

Pick resolution, lens and sensor; get the field of view and the distances to detect, observe, recognise and identify (px/m per IEC 62676-4).

Open calculator

Send us a floor plan or a few photos of the site

We’ll come back with a few questions, then a first design. The first consultation is free, in Lao, Thai or English, on WhatsApp or our Facebook page.