Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have been told that we have two devices on a network: and

These devices both have

  • Gateway

  • Subnet mask (note 225 is Not a typo)

These are communication intermittently with a server

So my question is: Is that a valid subnet? I have only ever seen 255 or 0 in the first one - three octets.

share|improve this question
6 starts with 1 1 1 0 0 0 0 1. This must be a typo. If not yours, or rather not in your post, but a typo/thinko by the person who set up the network. Network masks are supposed to be a set of all ones. Interspersed 0's may work on some implementations. However it should never be used. –  Hennes May 29 '13 at 14:20
@hennes - thanks I thought so but wasn't 100% sure. It turns out the customer had typed it out incorrectly. –  Matt Wilko May 29 '13 at 14:38
I was not 100% sure either... At least until I tried similar setup a few years ago, convinced it should work. I was wrong and got slapped with the RFC's –  Hennes May 29 '13 at 14:45

2 Answers 2

up vote 4 down vote accepted

Basically a valid subnetmask, when written in binary, has to consist of only consecutive 1's and then 0's, but no intermittent mixing. I.e.: -> 11111111.11111111.11111111.10000000 is valid   -> 11111111.11111111.11111111.00000000 is valid -> 11111111.11111111.11111111.10010000 is not valid

Edit: The first bits (the nonzero bits) could also be set to match the network address, the important thing is that if you perform a logical AND operation on an IP with the subnet mask you get the network address.

Host:   -> 0000 1010 . 0010 1000 . 1110 0001 . 1010 0100
Subnet M: -> 1111 1111 . 1111 1111 . 1110 0001 . 1000 0000
Network:   -> 0000 1010 . 0010 1000 . 1110 0001 . 1000 0000
share|improve this answer
So I have which is 11100001.11100001.11100001.10000000 so this is invalid then? –  Matt Wilko May 29 '13 at 13:55
It is definitely invalid. It should stop you from doing this I would think. –  Will.Beninger May 29 '13 at 14:03
@Will.Beninger - thanks unfortunately it is possible to input this on the device in question (a UDP clocking in terminal) –  Matt Wilko May 29 '13 at 14:07

The Subnet you are working with is:

Your usable address range is from: -

The network ID is:

The broadcast ID is:

The last octet is split in half. We can presume the address configuration is correct, as those IPs are usable in the address range for the provided subnet. The only reason they would not be valid is if there were conflicting IP addresses from other devices statically set to use those IPs in the network (unlikely).

share|improve this answer
note that it was about 225, not 255... –  glglgl May 29 '13 at 15:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.