Bird
0
0

Which of the following subnet masks allows for 254 hosts in a subnet?

easy📝 Conceptual Q2 of 15
Computer Networks - IP Addressing
Which of the following subnet masks allows for 254 hosts in a subnet?
A255.255.0.0
B255.255.255.0
C255.255.255.128
D255.255.255.192
Step-by-Step Solution
Solution:
  1. Step 1: Calculate hosts from subnet mask

    255.255.255.0 corresponds to /24 prefix, which means 8 bits for hosts.
  2. Step 2: Calculate number of hosts

    Number of hosts = 2^8 - 2 = 254 (subtracting network and broadcast addresses).
  3. Final Answer:

    255.255.255.0 allows 254 hosts -> Option B
  4. Quick Check:

    Hosts in /24 = 254 [OK]
Quick Trick: 255.255.255.0 = 254 hosts per subnet [OK]
Common Mistakes:
MISTAKES
  • Forgetting to subtract 2 for network and broadcast
  • Confusing subnet mask bits with host bits
  • Choosing masks with fewer host bits

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Computer Networks Quizzes