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 inputs

Worked calculation

  1. Add network and broadcast slots. The office needs 50 + 2 = 52 addresses, the lab needs 25 + 2 = 27, and devices need 10 + 2 = 12.
  2. 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.
  3. The three blocks consume 64 + 32 + 16 = 112 of 256 addresses. Addresses .112 through .255 remain unassigned.

Inputs

One name,hosts or name,/prefix per line. Leave blank for CIDR details only.
Optional. Separate blocks with commas or spaces.

Calculated in your browser

Results

Network CIDR
192.168.20.0/24
Usable in parent
254
Unassigned after VLSM
144

IPv4 address-space map

IPv4 address-space mapBlock widths follow the share of the parent address space. The lower axis shows positions from the first to the last address.192.168.20.0/24112 used · 144 unassignedParent spaceOffice 192.168.20.0/26OfficeLab 192.168.20.64/27LabDevices 192.168.20.96/280%25%50%75%100%192.168.20.0192.168.20.255
  • Office · 192.168.20.0/26
  • Lab · 192.168.20.64/27
  • Devices · 192.168.20.96/28
  • Unassigned
Block widths follow the share of the parent address space. The lower axis shows positions from the first to the last address.
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
Allocated subnets
NameCIDRRequestedUsableUsable range
Office192.168.20.0/265062192.168.20.1 – 192.168.20.62
Lab192.168.20.64/272530192.168.20.65 – 192.168.20.94
Devices192.168.20.96/281014192.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.

References