Skip to main content

Subnet 202.77.19.0/24 for 30, 24, 25, 20

Short answer

VLSM: all departments require /27 blocks (32 addresses). A: 202.77.19.0/27, C: 202.77.19.32/27, B: 202.77.19.64/27, D: 202.77.19.96/27. Total wastage 21 host addresses.

Explain how you can allocate 30, 24, 25 and 20 IP addresses to the four different departments of ABC company with minimum wastage. Specify the range of IP addresses, broadcast address, network address and subnet mask for each department from the given address pool 202.77.19.0/24.

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
A3032325/27255.255.255.224
B2426325/27255.255.255.224
C2527325/27255.255.255.224
D2022325/27255.255.255.224

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

DeptNetwork addressUsable host rangeBroadcast addressMaskAssigned / spare range
A202.77.19.0/27202.77.19.1 – 202.77.19.30202.77.19.31255.255.255.224202.77.19.1 – 202.77.19.30 used; no spare
C202.77.19.32/27202.77.19.33 – 202.77.19.62202.77.19.63255.255.255.224202.77.19.33 – 202.77.19.57 used; spare 202.77.19.58 – 202.77.19.62
B202.77.19.64/27202.77.19.65 – 202.77.19.94202.77.19.95255.255.255.224202.77.19.65 – 202.77.19.88 used; spare 202.77.19.89 – 202.77.19.94
D202.77.19.96/27202.77.19.97 – 202.77.19.126202.77.19.127255.255.255.224202.77.19.97 – 202.77.19.116 used; spare 202.77.19.117 – 202.77.19.126

Step 3: Wastage

DeptUsable addressesNeededWasted
A30300
C30255
B30246
D302010
Total1209921

Addresses allocated: 128 of 256. The remaining 128 addresses (202.77.19.128/25) stay free for future departments and are not counted as wastage.

Answer: A: 202.77.19.0/27; B: 202.77.19.64/27; C: 202.77.19.32/27; D: 202.77.19.96/27. Total wastage = 21 host addresses.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Computer Networks and Security chapter 4 questions →