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

Prepare for the Computer Hacking Forensic Investigator v11 exam. Study with flashcards and multiple choice questions. Each question includes hints and explanations. Get exam-ready efficiently!

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 Passetra

You can unsubscribe at any time. Read our privacy policy