9

It was specified somewhere (presumably in an RFC) that Class A addresses range from 1-126 in the first octet, and that class E addresses range from 240-254, but that leaves out two potential networks on either side, namely a 0 and a 255 network.

I believe that addresses starting with these IPs are invalid. Does this mean that they wouldn't work on a private network, and is there a reason for them being invalid?

3 Answers 3

19

The IP address 0.0.0.0 is used as a wildcard to bind to all addresses. The IP address 255.255.255.255 is used to indicate a local broadcast.

Because this decision was part of the classful network design that predates CIDR, to reserve these specific IP addresses alone, special rules would have had to have been created for the /8's that contained them. Since some /8's were going to remain reserved anyway, it made sense to reserve these rather than creating additional rules so they could be used.

7
  • 5
    But... that wasn't the question. I know they marked it as answered but it doesn't answer it. It's not whether 0.0.0.0 is valid but 0.213.4.67 or any other 0.x.x.x or 255.x.x.x could be. Apr 23, 2017 at 5:56
  • 4
    @DavidSchwartz To people not familiar with the CIDR notation, it might not be clear that you addressed that point.
    – T.R.
    Apr 24, 2017 at 19:40
  • 6
    I did read the answer. This is a place where expert (you) can answer questions laymen (me) might have. If you answer a question so that only people who should already know it are the only ones able to understand it doesn't answer the question. Since you never specifically said 0.x.x.x is entirely blocked out because they decided to use 0.0.0.0 as a wildcard I certainly didn't understand that. In fact I'm only surmising that based on @DavidSchwartz reply but could still be misunderstanding the why. It certainly wouldn't hurt anyone to update the answer with the laymen version. TY for your time. Apr 26, 2017 at 3:50
  • 3
    There was no indication in the answer that would make someone think it would clarify something. I was just trying to be helpful for anyone searching in the future. You're reply is basically saying "Well go learn all this other stuff." Answers should be wholistic but I would agree not to the point of having to describe an atomic substructure or other silly things. It's fairly easy to clarify this answer without alienating the curious, or requiring a Network+ cert. Apr 27, 2017 at 6:41
  • 3
    Just to help anyone who later stumbles upon this, so far as I understand from the links in the answer, back in the early days of the internet, there were a few "large networks" that all internet-connected computers were part of. The first octet of an IP address specified that large network. Any address of the form 10.x.x.x, for instance, took you to ARPANET. Given that 0.0.0.0 and 255.255.255.255 were special-purpose addresses even in this early design, this effectively handed over the entire 0.x.x.x and 255.x.x.x address ranges. As the internet evolved, this just hasn't changed.
    – ymbirtt
    Aug 15, 2018 at 8:29
6

Because they are reserved for multicast and broadcast addresses

The RFC specifically has set them aside as "Reserved"

They are valid, but just aren't usable

1
  • 1
    "Not usable"???
    – Xavierjazz
    Oct 25, 2013 at 23:06
2

0.0.0.0/8 and 255.0.0.0/8 are both reserved by IANA in 1981. The former block is for self-identification (based on RFC 6890) and the latter is reserved for "Future use"; formally Class E.

Addresses starting with 240 or a higher number have not been allocated and should not be used, apart from 255.255.255.255, which is used for "limited broadcast" on a local network. See (RFC 919) and (RFC 922) for more.

Information from: https://myip.ms/info/whois/0.0.0.0 https://myip.ms/info/whois/255.0.0.0 https://datatracker.ietf.org/doc/html/draft-wilson-class-e-01

1
  • But Class E was defined to be 240.0.0.0/4; i.e., 240.0.0.0 through 255.255.255.255 (or maybe 255.255.255.254).  The question asks why 255 is treated differently from 240 through 254; your answer doesn’t address that. Oct 6, 2018 at 3:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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