Subnetting numerical: divide 192.168.1.0/24 among departments of 100, 50, 25 and 10 hosts.
HardConceptScenario Questions
Answer
Use VLSM (Variable Length Subnet Masking), which gives each subnet a prefix sized to its own need instead of one size for all. Allocate the largest requirement first, and for each one choose the smallest number of host bits h with 2^h − 2 ≥ hosts needed; the prefix is then 32 − h.
- Allocating from largest to smallest keeps every subnet aligned on a multiple of its block size (2^h), so ranges never overlap, and each subnet starts right after the previous broadcast address.
- With equal /26 subnets instead, the 100-host department would not fit, because a /26 holds only 62 hosts.
Example: Splitting 192.168.1.0/24:
| Need | h (usable) | Prefix and mask | Network | Hosts | Broadcast |
|---|---|---|---|---|---|
| 100 | 7 (126) | /25, 255.255.255.128 | 192.168.1.0 | .1 to .126 | .127 |
| 50 | 6 (62) | /26, 255.255.255.192 | 192.168.1.128 | .129 to .190 | .191 |
| 25 | 5 (30) | /27, 255.255.255.224 | 192.168.1.192 | .193 to .222 | .223 |
| 10 | 4 (14) | /28, 255.255.255.240 | 192.168.1.224 | .225 to .238 | .239 |
Check for 100 hosts: 2^6 − 2 = 62 is too small and 2^7 − 2 = 126 fits, so h = 7 and the prefix is /25. The block 192.168.1.240/28 (.240 to .255) remains free for future growth.