A Network ID can’t be used as a Host IP

Any IP address that identifies a subnetwork (such as cannot be used as a host IP address. For years, I assumed it was some network convention that everybody agreed on. It’s more than that. It’s a physical impossibility.

For example, if you use networks that have only two host addresses, such as network IDs of,,, each of those address cannot be used by a host, and 25% of the addresses are “lost” from the assignable host IP pool. There is a technical reason that cannot be avoided.

To understand why, you have to consider how routers route IP traffic. Consider a router that receives a packet from IP-src destined for IP-dest. The router must determine if the packet needs to be routed off-net through the gateway. The process to do this 3 steps: XOR the src and dest, AND with the network mask, and send to the gateway if the result is non-zero.

Consider a tiny network with netmask (last two bits are zero), which can contain two hosts ( and, along with broadcast address Pretend wants to send to XOR Result AND with mask Result “route if non-zero”
Since the result is zero, no need to route the packet, just send it on the local network

Now pretend wants to send to (or any other IP outside of the tiny network we’ve designed): XOR Result AND with mask Result “route if non-zero”
Since the result is non-zero, send the packet to the gateway.

All is okay and works fine. Now consider *IF* were allowed as a host address instead of just naming it as a “Subnet ID”: XOR Result AND with mask Result “route if non-zero”

It’s zero so no routing would be done, but note that the destination is impossible to represent with the 2 bottom bits that the subset owns. The packet cannot go direct. The packet will not be routed. The result is the packet would die.

You can’t use a network ID address as a host address.

Next interesting question for tomorrow – do Network ID addresses and their associated netmasks have to exhibit consecutive zeros on the least significant bits?

About Brian

Engineer. Aviator. Educator. Scientist.
This entry was posted in General. Bookmark the permalink.

Leave a Reply