Which CIDR prefix length corresponds to a subnet mask of 255.255.255.0?

Enhance your knowledge as a Computer Hacking Forensic Investigator with the CHFI v11 Test. Use flashcards and multiple-choice questions, complete with hints and detailed explanations, to prepare effectively and ace your exam!

Multiple Choice

Which CIDR prefix length corresponds to a subnet mask of 255.255.255.0?

Explanation:
A CIDR prefix length counts the number of 1 bits in the subnet mask. The mask 255.255.255.0 is binary 11111111.11111111.11111111.00000000, which has 24 leading ones. That makes the prefix length /24—the network portion is 24 bits, and there are 8 bits left for hosts. For context, other common masks map to other prefixes: 255.0.0.0 is /8, 255.255.0.0 is /16, and 255.255.255.255 is /32. Since the given mask has 24 ones, the correct prefix is /24.

A CIDR prefix length counts the number of 1 bits in the subnet mask. The mask 255.255.255.0 is binary 11111111.11111111.11111111.00000000, which has 24 leading ones. That makes the prefix length /24—the network portion is 24 bits, and there are 8 bits left for hosts.

For context, other common masks map to other prefixes: 255.0.0.0 is /8, 255.255.0.0 is /16, and 255.255.255.255 is /32. Since the given mask has 24 ones, the correct prefix is /24.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy