Three Mask Formats

Subnet masks can be written as 32-bit binary numbers, but not just any binary number. In particular, the binary subnet mask must follow these rules:

Image

Image The value must not interleave 1s and 0s.

Image If 1s exist, they are on the left.

Image If 0s exist, they are on the right.

For example, the following values would be illegal. The first is illegal ...

Get CCENT/CCNA ICND1 100-101 Official Cert Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.