IP fundamentals
VLSM planning with different LAN sizes
VLSM assigns power-of-two blocks according to host requirements instead of allocating every LAN the same-sized network.
Updated
In this guide
Start with the largest group
A conventional IPv4 LAN needing 100 hosts requires 128 addresses (/25), not 100. A 50-host LAN needs 64 (/26); 20 hosts need 32 (/27); 10 need 16 (/28).
Place aligned blocks
In 192.0.2.0/24, allocate .0/25, .128/26, .192/27 and .224/28 in that order. The remaining 16 addresses start at .240/28. Every start is aligned to its block size.
Reserve growth
The exact fit is a planning exercise. Reserve room for growth and infrastructure; ordinary LANs require network and broadcast addresses. /31 point-to-point links are a separate case.
Allocate largest blocks first
From 192.0.2.0/24, a 100-host group needs /25, a 50-host group needs /26 and a 20-host group needs /27. Starting at .0, .128 and .192 respectively leaves .224/27 unused. Reversing the allocation order can create gaps if alignment is not respected.
Step-by-step example
Plan four conventional IPv4 LANs requiring 100, 50, 20 and 10 hosts inside 192.0.2.0/24.
- 01
Calculate the block sizes
Reserve two addresses for network and broadcast in each conventional LAN. Round hosts + 2 up to a power of two. A larger requirement needs a larger aligned block.
- 100 + 2
- 128 = /25
- 50 + 2
- 64 = /26
- 20 + 2
- 32 = /27
- 10 + 2
- 16 = /28
Illustration · example, not a live result - 02
Allocate largest first
Start from .0 and allocate /25, then .128/26, .192/27 and .224/28. Each block starts at a multiple of its own size. This leaves .240–.255 unallocated.
.0.127.191.223.239.255Allocated: 240 addresses · Unallocated: 16 addresses
- 100 hosts
- 192.0.2.0/25
- 50 hosts
- 192.0.2.128/26
- 20 hosts
- 192.0.2.192/27
- 10 hosts
- 192.0.2.224/28
Illustration · example, not a live result - 03
Check usable ranges
Enter 192.0.2.0/24 and 100, 50, 20, 10 into the VLSM calculator. Verify the first usable address is network + 1 and the last usable is broadcast − 1 for each of these blocks.
- Used addresses
- 128 + 64 + 32 + 16 = 240
- Unallocated
- 16
- First LAN hosts
- .1–.126
Illustration · example, not a live result
Check your understanding
If required aligned blocks exceed the parent, the allocation must fail rather than overlap.
Try this tool →Record your own progress on this browser. No account required.
Try this
Try the four host counts in the VLSM calculator and verify the intervals with the overlap checker.
VLSM subnet calculator →