IP addressing
VLSM Calculator and Subnet Planner
Enter a parent block and the hosts each segment needs. The planner gives every segment the smallest subnet that fits and lists what is left.
Plan
Everything fits. The subnets use 228 of 256 addresses.
| Segment | Needed | Subnet | Mask | Usable range | Broadcast | Usable | Spare |
|---|---|---|---|---|---|---|---|
| Users | 100 | 192.168.1.0/25 | 255.255.255.128 | 192.168.1.1 - 192.168.1.126 | 192.168.1.127 | 126 | 26 |
| Servers | 50 | 192.168.1.128/26 | 255.255.255.192 | 192.168.1.129 - 192.168.1.190 | 192.168.1.191 | 62 | 12 |
| Voice | 25 | 192.168.1.192/27 | 255.255.255.224 | 192.168.1.193 - 192.168.1.222 | 192.168.1.223 | 30 | 5 |
| WAN link | 2 | 192.168.1.224/30 | 255.255.255.252 | 192.168.1.225 - 192.168.1.226 | 192.168.1.227 | 2 | 0 |
Left over
| Free block | Addresses |
|---|---|
| 192.168.1.228/30 | 4 |
| 192.168.1.232/29 | 8 |
| 192.168.1.240/28 | 16 |
What VLSM is
Variable-length subnet masking gives each segment a subnet sized for it, instead of cutting a block into equal parts. A 100-host LAN and a two-address router link can then come from the same block without wasting most of it.
How subnets are placed
Each segment gets the smallest block that holds the hosts you asked for plus the network and broadcast addresses. The largest block is placed first and the rest follow in order of size. Because each block is a power of two and no larger than the one before, every subnet starts on its own boundary and there are no gaps between them. What remains is listed as free blocks.
Point-to-point links
A link between two routers needs two addresses. A /30 provides them and spends two more on the network and broadcast addresses. A /31 uses both of its addresses (RFC 3021). Tick the box to give a /31 to any segment that needs one or two hosts, after checking that both ends of the link support it.