This totally sounds like a bug to me, because my subnet mask and IP address should be valid by all accounts.

My ISP has assigned me a fixed IP address of, with a subnet mask of Which sounds about right, because we're trying to set up a router with a /31 network - just 4 ip addresses.

But when I try to set this IP and netmask up in Windows XP, I get the following error:

"The combination of IP address and subnet mask are invalid. All of the bits in the host address portion of the IP address are set to 0."

But they're not all set to 0. That would be a subnet mask of Even then, that too is a valid subnet mask, consisting of a network of 1 IP address.

Is there a way around this? A registry hack maybe?

  • 5
    In one place you say in another you say /31. These are two different things. My assumption in my answer is that you meant, which is /30. – MDMarra Jun 9 '10 at 17:07
  • You're right. I was looking at the wrong line on my subnet table. :) – Ernie Dunbar Jun 9 '10 at 17:10

The first address in a network is not valid for a host, as it is used to identify the network. breaks down like this - Network identifier - not usable for a host - OK to be used by a host - OK to be used by a host - Broadcast address for network - Not usable for a host

In reality, you only have 2 usable addresses. I bet if you set the IP to a valid host address, you will have no issues.

  • @ qq subnet-calculator.com disagrees with you there. With the 252 subnet, there are only two host addresses avialable – Sarge Jun 9 '10 at 17:14
  • 1
    @Sarge - He edited very quickly after posting that. Or should I saw he edited very quackly :). Good thing you can't downvote a comment, I'd lose a ton of rep for that awful joke – MDMarra Jun 9 '10 at 17:18
  • @Sarge, typically the high end of the IP range is used for the IP broadcast address. – heavyd Jun 9 '10 at 17:22
  • @heavyd - I don't see Sarge saying anything to the contrary. Did I miss something? – MDMarra Jun 9 '10 at 18:01

From my Subnet Calculator / Planner - CIDR = 30 Mask =

The ability to use the 0 address, in this case, is implemention dependent. See Cisco Subnet Zero.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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