CS FundamentalsModerateGATE CS (PYQ pattern)

10.0.0.0/22 is divided into /26 subnets. A firewall rule must cover the address range 10.0.1.50 to 10.0.2.10 inclusive using whole /26 subnets. How many /26 subnets contain at least one address of the range?

  1. A. 4
  2. B. 5
  3. C. 16
  4. D. 6

Correct answer: B. 5

/26 blocks start every 64 addresses. The range starts in 10.0.1.0/26 (0-63) and continues through 10.0.1.64, .128, .192 and ends in 10.0.2.0/26 (0-63): 5 blocks. Counting only the blocks fully inside the range gives 3; counting from 10.0.1.64 gives 4.

More Computer Networks questions

Exams that ask this topic