Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is there a situation with IP addressing where a subnet mask like 250.255.112.0 is legal?

ADDRESSING IP Legal mask subnet
0
10 Posted

Is there a situation with IP addressing where a subnet mask like 250.255.112.0 is legal?

0
10

No. Think of the subnet mask as a string of 32 bits. Valid subnet masks should start with one bits, then switch at some point to zero bits and end that way. The first number in this example (250 decimal), translates in binary as 11111010. Notice that it switches to zero, then back to one, then back to zero again. 250 is not a valid component in a subnet mask. To put it another way, only nine numbers may legally appear in a subnet mask – 0, 128, 192, 224, 240, 248, 252, 254, and 255. Furthermore, three of the four numbers used in any subnet mask must be either 0 or 255. The mask must start with zero or more 255s, then possibly one of the other numbers (but only one), and then end with zero or more 0s.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123