CS FundamentalsModerateGATE CS · Product company CS fundamentals

A single flat subnet must hold 3000 hosts. What is the longest prefix that works?

  1. A. /20
  2. B. /21
  3. C. /19
  4. D. /22

Correct answer: A. /20

3000 + 2 addresses need 12 host bits (2¹² = 4096; 2¹¹ = 2048 is too small), so the prefix is /20, giving 4094 usable addresses.

More Computer Networks questions

Exams that ask this topic