Learn subnetting visually
11 short lessons, from binary to IPv6. Change the inputs and watch every value update.
/31, /32 and special cases
/31 point-to-point link
255.255.255.254A link between two routers needs exactly two addresses. The usual rule (block − 2) would leave zero, so RFC 3021 allows a /31 to use both addresses. There is no network or broadcast address on a /31.
- Block
- 10.0.0.0/31
- Usable
- 2 hosts
- Addresses
- 10.0.0.0 and 10.0.0.1
/32 host route and loopback
255.255.255.255A /32 is a single address: 1 host, no network or broadcast address. Routers use it for loopback interfaces (a stable router ID that never goes down) and for host routes that point at exactly one device.
- Block
- 10.255.0.1/32
- Usable
- 1 host
- Addresses
- 10.255.0.1
Ranges with a special meaning
Recognize these on sight. Each one tells you something about the host or the route.
Matches every address. Used when no more specific route exists.
0.0.0.0 means "no address yet", e.g. a host asking DHCP for one. Never a host address.
Reaches every host on the local link. Routers never forward it.
Traffic never leaves the host. 127.0.0.1 is "this machine".
Self-assigned when DHCP fails. A host with one usually cannot reach the gateway.
Free to use inside any network. Not routed on the internet.
172.16.0.0 to 172.31.255.255. Not 172.32.x.x.
Common on home and small office networks.
Used by ISPs between their carrier-grade NAT and customers.
One-to-many groups. Never a host address.
Troubleshooting checklist
Most 'cannot reach anything' tickets come down to one of these. Enter a host's settings and check them.
Host subnet 192.168.1.128/25 · usable 192.168.1.129 – 192.168.1.254 · broadcast 192.168.1.255
- Both addresses are valid IPv4
- Host is not the network address
- Host is not the broadcast address
- Gateway is in the same subnet
- Gateway is a usable address and not the host
- Every device on the segment uses the same maskCheck the router interface and the other hosts. A mismatched mask makes hosts disagree about who is local.
- The gateway is outside the host's subnet.
Lock it in
Drill the “Troubleshooting” skill until it is automatic.