Skip to content

Free tools /

VLSM calculator: subnets of different sizes

Variable-length subnet masking gives each department a subnet of the size it needs instead of the same size for everyone. Enter the network you have and one line per subnet with a name and a number of hosts, for example “Sales 100”. The largest subnets are placed first, so nothing overlaps and little is wasted.

240 addresses used, 16 still free at the end of the network.

Subnets allocated, largest first
NameHosts neededCIDR blockSubnet maskRangeBroadcastUsable hosts
Sales100192.168.0.0/25255.255.255.128192.168.0.1 – 192.168.0.126192.168.0.127126
Office50192.168.0.128/26255.255.255.192192.168.0.129 – 192.168.0.190192.168.0.19162
Lab20192.168.0.192/27255.255.255.224192.168.0.193 – 192.168.0.222192.168.0.22330
Servers10192.168.0.224/28255.255.255.240192.168.0.225 – 192.168.0.238192.168.0.23914

Questions

What is VLSM?

Variable-length subnet masking: splitting one network into subnets of different sizes. A team of 100 gets a /25, a team of 20 gets a /27, instead of both getting the same size.

Why are the largest subnets placed first?

A subnet must start at an address that is a multiple of its size. Placing the large ones first keeps the smaller ones neatly after them and avoids holes between subnets.

Why does each subnet have more addresses than I asked for?

Sizes are powers of two, and two addresses per subnet are reserved. For 100 hosts the next size is a /25 with 126 usable hosts. The spare addresses are room to grow.