Private IP Ranges (RFC 1918)

The three blocks reserved for private networks, their masks and host counts — and the one overlap that causes real outages.

RangeMaskUsable hostsTypically used for
10.0.0.0/8255.0.0.016,777,214Large corporate networks and cloud VPC/VCN supernets, carved into a /16 per environment or /24 per subnet.
172.16.0.0/12255.240.0.01,048,574Mid-size corporate allocations — and the default range for Docker's bridge network and many VPN clients (see below).
192.168.0.0/16255.255.0.065,534Home and consumer router defaults, almost always used as individual /24s like 192.168.1.0/24 rather than as one block.
172.16.0.0/12 is also where Docker's default bridge network (commonly 172.17.0.0/16) and many VPN clients place their internal network by default. If your office network or a site you VPN into also uses an address in 172.16-172.31.x.x, routes silently collide: traffic meant for the VPN or office network gets swallowed by the local Docker bridge instead, with no error, just packets going to the wrong place. If a service becomes unreachable only while Docker is running, or only over VPN, check for exactly this overlap before looking anywhere else.

Checking for the overlap

See what Docker is actually using on a host:

docker network inspect bridge --format '{{range .IPAM.Config}}{{.Subnet}}{{end}}'

If that overlaps with your VPN's or office's range, the fix is to change Docker's default pool rather than the corporate network — set a "default-address-pools" entry in /etc/docker/daemon.json pointing at an unused block, then restart Docker.

Why these three blocks exist

RFC 1918 set these three ranges aside so organizations can build internal networks without coordinating address assignment with anyone else, since none of them are routed on the public internet. Any device using one of these addresses needs NAT (or a proxy) to reach the internet, which is normally handled by a router, firewall or cloud NAT gateway at the network's edge.

Related: Subnet sizes cheat sheet, Does a CIDR contain an IP?, Split a subnet.

FAQ

Can I route 10.0.0.0/8 on the public internet?

No. RFC 1918 reserves it for private use; public routers drop packets to and from it. You need NAT at your network's edge to reach the internet from it.

Why does my VPN stop working only when Docker is running?

This usually means Docker's default bridge network and the VPN's internal network both fall inside 172.16.0.0/12 (or another shared range), so routes collide. Check both ranges and move one of them if they overlap.

Which private range should I use for a new network?

Any of the three works technically. 192.168.0.0/16 is heavily used by home routers, which makes collisions more likely if you ever connect to home networks over VPN; 10.0.0.0/8 has the most room to grow and is a common choice for new corporate or cloud deployments.

© PacketUtils. Tools run in your browser. Review every command before using it in production.HomeAboutContactPrivacy PolicyGitHub