Is 0.1.2.3 a valid IP address

ipip address

Are IP addresses with all zeroes in the first octet valid?

For example, can 0.1.2.0/24 be a valid subnet, with network address 0.1.2.0, broadcast address 0.1.2.255 and an usable address range from 0.1.2.1 to 0.1.2.254?

It looks like it should be valid, but it doesn't work, at least on Windows systems.

If it's not valid, then why?

Best Answer

RFC1122, Requirements for Internet Hosts -- Communication Layers, says:

     { <Network-number>, <Host-number> }

(a)  { 0, 0 }

     This host on this network.  MUST NOT be sent, except as
     a source address as part of an initialization procedure
     by which the host learns its own IP address.

     See also Section 3.3.6 for a non-standard use of {0,0}.

(b)  { 0, <Host-number> }

     Specified host on this network.  It MUST NOT be sent,
     except as a source address as part of an initialization
     procedure by which the host learns its full IP address.
Related Topic