Split a /24 into /26, /27 and /28 with VLSM
Lay out an office, a lab and device VLANs within 192.168.20.0/24. Work through the three block boundaries and find the unused address space.
Try these inputsWorked calculation
- Add network and broadcast slots. The office needs 50 + 2 = 52 addresses, the lab needs 25 + 2 = 27, and devices need 10 + 2 = 12.
- Round to 64, 32 and 16 addresses. Allocate 192.168.20.0/26 first, then 192.168.20.64/27 and 192.168.20.96/28.
- The three blocks consume 64 + 32 + 16 = 112 of 256 addresses. Addresses .112 through .255 remain unassigned.
Results
- Network CIDR
- 192.168.20.0/24
- Usable in parent
- 254
- Unassigned after VLSM
- 144
IPv4 address-space map
- Office · 192.168.20.0/26
- Lab · 192.168.20.64/27
- Devices · 192.168.20.96/28
- Unassigned
- Network
- 192.168.20.0
- Broadcast
- 192.168.20.255
- First usable
- 192.168.20.1
- Last usable
- 192.168.20.254
- Subnet mask
- 255.255.255.0
- Wildcard
- 0.0.0.255
- Input bits
- 11000000 10101000 00010100 00000000
- Mask bits
- 11111111 11111111 11111111 00000000
- Network bits
- 11000000 10101000 00010100 00000000
| Name | CIDR | Requested | Usable | Usable range |
|---|---|---|---|---|
| Office | 192.168.20.0/26 | 50 | 62 | 192.168.20.1 – 192.168.20.62 |
| Lab | 192.168.20.64/27 | 25 | 30 | 192.168.20.65 – 192.168.20.94 |
| Devices | 192.168.20.96/28 | 10 | 14 | 192.168.20.97 – 192.168.20.110 |
Questions
Can the device VLAN start at 192.168.20.100/28?
A /28 starts on a multiple of 16. The address .100 is inside the block starting at .96.
What should I use for the office gateway in this plan?
The /26 supports .1 through .62. Pick an available address in that range and reserve it in DHCP.