How many usable host addresses does an IPv4 /24 subnet provide?
Correct answer B. 254
Explanation
A /24 leaves 8 host bits, giving 2 to the power 8, or 256 addresses. The all-zeros value names the network and the all-ones value is the directed broadcast, so 254 can be assigned to hosts. The formula 2^n minus 2 applies to ordinary subnets, while /31 point-to-point links are a special case.
Answer checked How we write and check questions
Discussion