Skip to main content

Subnet 10.10.10.0/24 for 5, 16, 23, 27

Short answer

VLSM: largest first, block sizes /27 for D, C, B and /29 for A. D: 10.10.10.0/27, C: 10.10.10.32/27, B: 10.10.10.64/27, A: 10.10.10.96/29. Total wastage 25 host addresses.

You are given the following address space 10.10.10.0/24. You have to assign addresses to 4 departments with the following hosts 5, 16, 23 and 27 respectively. Perform the subnetting in such a way that the IP address wastage in each department is minimum. Also find out the subnet mask, network address, broadcast address and unassigned range in each department.

Here unassigned range means the usable addresses left unused in each department's block.

Method (VLSM): each department needs hosts + 2 addresses (network address and broadcast address cannot be given to hosts). Choose the smallest block 2ⁿ ≥ hosts + 2, where n is the number of host bits and prefix = 32 − n. Allocate the largest block first, one after another without overlap, so every block starts on a boundary that is a multiple of its size and the waste is minimum.

Step 1: Block size for each department

DeptHostsHosts + 2Block 2ⁿnPrefixSubnet mask
A5783/29255.255.255.248
B1618325/27255.255.255.224
C2325325/27255.255.255.224
D2729325/27255.255.255.224

Step 2: Allocation (largest first) from 10.10.10.0/24

DeptNetwork addressUsable host rangeBroadcast addressMaskAssigned / spare range
D10.10.10.0/2710.10.10.1 – 10.10.10.3010.10.10.31255.255.255.22410.10.10.1 – 10.10.10.27 used; spare 10.10.10.28 – 10.10.10.30
C10.10.10.32/2710.10.10.33 – 10.10.10.6210.10.10.63255.255.255.22410.10.10.33 – 10.10.10.55 used; spare 10.10.10.56 – 10.10.10.62
B10.10.10.64/2710.10.10.65 – 10.10.10.9410.10.10.95255.255.255.22410.10.10.65 – 10.10.10.80 used; spare 10.10.10.81 – 10.10.10.94
A10.10.10.96/2910.10.10.97 – 10.10.10.10210.10.10.103255.255.255.24810.10.10.97 – 10.10.10.101 used; spare 10.10.10.102

Step 3: Wastage

DeptUsable addressesNeededWasted
D30273
C30237
B301614
A651
Total967125

Addresses allocated: 104 of 256. The remaining 152 addresses (10.10.10.104/29, 10.10.10.112/28, 10.10.10.128/25) stay free for future departments and are not counted as wastage.

Answer: A: 10.10.10.96/29; B: 10.10.10.64/27; C: 10.10.10.32/27; D: 10.10.10.0/27. Total wastage = 25 host addresses.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Computer Networks and Security chapter 4 questions →