Skip to main content

Class C pool for 32, 65, 10, 21, 9

Short answer

Use VLSM, largest first from 200.1.1.0/24: B gets 200.1.1.0/25, A 200.1.1.128/26, D 200.1.1.192/27, C 200.1.1.224/28, E 200.1.1.240/28. Total host-address wastage is 109.

How can you dedicate 32, 65, 10, 21 and 9 public IP addresses to the departments A, B, C, D and E respectively from the pool of class C IP addresses with minimum loss? Explain.

Assumption: the Class C pool is 200.1.1.0/24 (256 addresses) and each number is the count of hosts to be addressed.

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
A3234646/26255.255.255.192
B65671287/25255.255.255.128
C1012164/28255.255.255.240
D2123325/27255.255.255.224
E911164/28255.255.255.240

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

DeptNetwork addressUsable host rangeBroadcast addressMaskUnused hosts
B200.1.1.0/25200.1.1.1 – 200.1.1.126200.1.1.127255.255.255.12861
A200.1.1.128/26200.1.1.129 – 200.1.1.190200.1.1.191255.255.255.19230
D200.1.1.192/27200.1.1.193 – 200.1.1.222200.1.1.223255.255.255.2249
C200.1.1.224/28200.1.1.225 – 200.1.1.238200.1.1.239255.255.255.2404
E200.1.1.240/28200.1.1.241 – 200.1.1.254200.1.1.255255.255.255.2405

Step 3: Wastage

DeptUsable addressesNeededWasted
B1266561
A623230
D30219
C14104
E1495
Total246137109

Addresses allocated: 128 + 64 + 32 + 16 + 16 = 256 of 256, so the Class C pool is used exactly, with no leftover block.

Answer: A: 200.1.1.128/26; B: 200.1.1.0/25; C: 200.1.1.224/28; D: 200.1.1.192/27; E: 200.1.1.240/28. Total wastage = 109 host addresses.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Computer Networks and Security chapter 4 questions →