Computer Networks · Question 21 · Medium

What is the subnet mask, in dotted-decimal form, for a /28 prefix?

  1. 255.255.255.240
  2. 255.255.255.248
  3. 255.255.255.224
  4. 255.255.240.0
Answer and explanation

Answer: A. 255.255.255.240

Explanation: /28 means 28 one-bits: 24 for the first three octets and 4 in the last octet, which is 11110000 = 240.

Previous: How many bits long is an IPv6 address? · Next: What is the network address of the host 172.16.45.200/20?

Practise computer networks

Try a fresh set of computer networks questions with an explanation after every answer, free and without signing up: Computer Networks practice. Or sit a full placement mock test.

More computer networks questions

More technical & programming practice

Software Engineering · Cloud & DevOps · GenAI Basics · Pseudo-code · C Programming · Java · Python · Data Structures

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge