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?
RFC1122, Requirements for Internet Hosts -- Communication Layers, says:
Looks like 0.0.0.0/8 is in the list of IANA Reserved subnets.
Per RFC 5735, 0.0.0.0/8 is a reserved IP address range, as follows:
According to RFC 1700 - "Assigned Numbers", "Special Addresses" section, a network number of 0 can only be used as a source address, and represents a host on the same network. Therefore it is invalid to assign an address of this type to an interface.
"0." networks are used for SNM ( SYSTEM NETWORK MANAGEMENT) and can't be used for something else
For anyone wondering why the Network-number is 0 in this case, 0.1.2.0/24 breaks down as follows:
Given that the MSB of the first octet is 0, it must be class A, with an implied network portion of 8 bits. It is subnetted a further 16 bits (the next two octets).
Given things like CIDR and the death of classful addressing, 0.1.2.0/24 should be a valid subnet (there are bits set in the network portion if you consider the first 24 bits).
The IP 0.0.0.0 is used just for request a valid IP Address from DHCP Server, and DHCP server is replying a dynamic valid IP for request computer.