Skip to main content

Subnet 120.89.96.0/19 for 100-800 hosts

Short answer

Use VLSM, allocating largest blocks first: C gets 120.89.96.0/22, B 120.89.100.0/23, D 120.89.102.0/23, A 120.89.104.0/25. Total host-address wastage is 368.

Suppose you are a private consultant hired by a company to set up the network for their enterprise and you are given a large number of consecutive IP addresses starting at 120.89.96.0/19. Suppose that four departments A, B, C and D request 100, 500, 800 and 400 addresses respectively. How can the subnetting be performed so that address wastage will be minimum?

A /19 block contains 2^(32−19) = 2^13 = 8192 addresses, so the pool is large enough.

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
A1001021287/25255.255.255.128
B5005025129/23255.255.254.0
C800802102410/22255.255.252.0
D4004025129/23255.255.254.0

Step 2: Allocation (largest first) from 120.89.96.0/19

DeptNetwork addressUsable host rangeBroadcast addressMaskUnused hosts
C120.89.96.0/22120.89.96.1 – 120.89.99.254120.89.99.255255.255.252.0222
B120.89.100.0/23120.89.100.1 – 120.89.101.254120.89.101.255255.255.254.010
D120.89.102.0/23120.89.102.1 – 120.89.103.254120.89.103.255255.255.254.0110
A120.89.104.0/25120.89.104.1 – 120.89.104.126120.89.104.127255.255.255.12826

Step 3: Wastage

DeptUsable addressesNeededWasted
C1022800222
B51050010
D510400110
A12610026
Total21681800368

Addresses allocated: 2176 of 8192. The remaining 6016 addresses (120.89.104.128/25, 120.89.105.0/24, 120.89.106.0/23, 120.89.108.0/22, 120.89.112.0/20) stay free for future departments and are not counted as wastage.

Answer: A: 120.89.104.0/25; B: 120.89.100.0/23; C: 120.89.96.0/22; D: 120.89.102.0/23. Total wastage = 368 host addresses.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Computer Networks and Security chapter 4 questions →