[lkml]   [2000]   [Jan]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: all zeroes/all ones used in host IP's...

On Fri, 28 Jan 2000, Mike A. Harris wrote:

> On another mailing list I'm on there is a small discussion about
> using "0's" in IP addresses. Nobody could categorically say
> wether or not they are allowed or not including myself, so I
> hunted down RFC 1123, and found the relevant section.
> Here it is:
> IP addresses are not permitted to have the value 0 or -1 for
> any of the <Host-number>, <Network-number>, or <Subnet-
> number> fields (except in the special cases listed above).
> This implies that each of these fields will be at least two
> bits long.
> Now I interpreted that as meaning that none of the octets in an
> IP address could be 0 or "-1" in either the network/subnet or
> host portions of a valid host IP. The definition of "-1" is "all
> ones" in the host or network/subnet portion.
> I interpret the above as meaning that it is not legal to have a
> network like this:
> or
> with hosts through or with hosts
> through

Let's consider the host w/ subnet (which is in the
network From what I know about IP (which could be wrong, so
please correct me if this is the case), we have:

- Host-number = 0x02 (last 8 bits, as defined by subnet mask)
- Network-number = 0x170000 (first 24 bits, as defined by the
subnet mask)
- Subnet-number = 0xFFFFFF00

None of them is 0 or -1 and, thus, the IP address is valid.

I hope this clarifies your doubt. Be careful with name definitions ... ;)


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:56    [W:0.092 / U:5.532 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site