CS FundamentalsVery hardProduct company interview · GATE level

From the block 192.168.0.0/22, three subnets have already been assigned: 192.168.1.64/26, 192.168.2.0/25 and 192.168.3.240/28. How many /27 subnets of the block are still completely free (overlapping none of the assigned ranges)?

  1. A. 26
  2. B. 25
  3. C. 24
  4. D. 28

Correct answer: B. 25

A /22 contains 2^(27-22) = 32 subnets of size /27 (32 addresses each). The /26 (64 addresses) occupies 2 of them, the /25 (128 addresses) occupies 4, and the /28 (16 addresses) spoils 1 more, because the /27 192.168.3.224/27 that contains it is no longer completely free. 32 - 2 - 4 - 1 = 25. Answering 26 forgets that a partly used /27 cannot be handed out.

More Computer Networks questions

Exams that ask this topic