VLSM: Allocate a /24 for Three Departments (60 + 28 + 12 Hosts)

Advanced Calculate

Question

You have 172.16.10.0/24 and must allocate subnets to three departments: HQ (60 hosts), Branch1 (28 hosts), and Branch2 (12 hosts). Using VLSM, assign the tightest subnet to each and list the resulting allocations.

Given

{
  "network": "172.16.10.0/24",
  "departments": [
    {
      "name": "HQ",
      "hosts": 60
    },
    {
      "name": "Branch1",
      "hosts": 28
    },
    {
      "name": "Branch2",
      "hosts": 12
    }
  ]
}

Answer

{
  "allocations": [
    {
      "name": "HQ",
      "subnet": "172.16.10.0/26",
      "usable": 62
    },
    {
      "name": "Branch1",
      "subnet": "172.16.10.64/27",
      "usable": 30
    },
    {
      "name": "Branch2",
      "subnet": "172.16.10.96/28",
      "usable": 14
    }
  ]
}

Try to solve it first, then click Reveal Answer

Step-by-Step Explanation

VLSM Rule: Allocate Largest First

Sort departments by host requirement (descending) before allocating:

1. HQ      → 60 hosts
2. Branch1 → 28 hosts
3. Branch2 → 12 hosts

Allocation 1 — HQ (60 hosts)

2^n - 2 >= 60
2^6 - 2 = 62  ✓  (n = 6, prefix = /26)
Subnet:    172.16.10.0/26
Range:     172.16.10.0  – 172.16.10.63
Usable:    172.16.10.1  – 172.16.10.62  (62 hosts)
Broadcast: 172.16.10.63
Next free: 172.16.10.64

Allocation 2 — Branch1 (28 hosts)

2^n - 2 >= 28
2^5 - 2 = 30  ✓  (n = 5, prefix = /27)

Start from the next available address, 172.16.10.64:

Subnet:    172.16.10.64/27
Range:     172.16.10.64  – 172.16.10.95
Usable:    172.16.10.65  – 172.16.10.94  (30 hosts)
Broadcast: 172.16.10.95
Next free: 172.16.10.96

Allocation 3 — Branch2 (12 hosts)

2^n - 2 >= 12
2^4 - 2 = 14  ✓  (n = 4, prefix = /28)

Start from 172.16.10.96:

Subnet:    172.16.10.96/28
Range:     172.16.10.96  – 172.16.10.111
Usable:    172.16.10.97  – 172.16.10.110  (14 hosts)
Broadcast: 172.16.10.111
Next free: 172.16.10.112

Remaining space

Addresses 172.16.10.112 through 172.16.10.255 (144 addresses) remain for future allocations.

Summary

Department Subnet Usable Waste
HQ 172.16.10.0/26 62 2
Branch1 172.16.10.64/27 30 2
Branch2 172.16.10.96/28 14 2
Remaining 172.16.10.112 – .255 — —

Related Terms

More Calculate Worksheets