VLSM Calculator
Generate a VLSM addressing plan: enter the base network and host requirements, and the tool assigns optimal blocks with gateways.
How it works
VLSM (Variable Length Subnet Mask) gives each segment a block sized exactly to its requirement. The method: sort requirements from largest to smallest, size each block to the next power of 2 (requirement + 2), then assign sequentially within the base network.
This is the standard corporate method: it limits address waste and makes route aggregation easier. The first host of each block is traditionally reserved for the gateway.
Examples
Small business headquarters
Four blocks sized to the nearest fit.
| base | 10.10.0.0/16 |
| requirements | ADMIN, 50 WIFI, 200 SERVEURS, 20 WAN, 2 |
Campus
Blocks of 1022, 254 and 126 hosts.
| base | 172.16.0.0/16 |
| requirements | ETUDIANTS, 1000 PROF, 200 ADMIN, 100 |
Frequently asked questions
What is VLSM?
Variable Length Subnet Mask: a technique that uses masks of different sizes within the same network, to match the real requirements of each segment.
Why reserve the first host for the gateway?
It is a widespread operational convention: it makes documentation and device configuration easier.
Why add 2 to the host requirement?
Each subnet consumes a network address and a broadcast address that must be accounted for when sizing.
What if there is not enough space?
The tool tells you explicitly: enlarge the base network or reduce the requirements.