Private IP Ranges
172.16.0.0/12 Private IP Range Explained
Learn which 172 addresses are private, how 172.16.0.0/12 is subnetted, and why it is common in VPN, cloud, and container networks.
Quick answer: 172.16.0.0/12 is an RFC 1918 private IPv4 block covering 172.16.0.0 through 172.31.255.255. It contains 1,048,576 addresses, but addresses outside that interval are not private merely because they begin with 172.
RFC 1918172.16.0.0/12
- Range Start
172.16.0.0- Range End
172.31.255.255- Address Count
- 1,048,576
- Prefix
- /12
What does 172.16.0.0/12 mean?
The /12 prefix fixes the first 12 bits of the address. Its subnet mask is 255.240.0.0, which makes the valid private interval easy to recognise: the first octet must be 172, and the second octet must be between 16 and 31 inclusive.
For example, 172.16.5.10 and 172.31.200.1 are private, while 172.15.255.255 and 172.32.0.1 are outside the block.
Why do networks use this range?
The block is smaller than 10.0.0.0/8 but substantially larger than 192.168.0.0/16. That balance makes it useful for:
- remote-access and site-to-site VPN address pools;
- cloud VPCs and isolated application environments;
- container bridges and internal orchestration networks;
- a separate address space for systems that should not overlap a core network using
10.0.0.0/8.
It can also reduce the likelihood of collisions with home networks that commonly use 192.168.0.0/16, although no private range can guarantee that overlaps will never occur.
Common subnetting options
The 172.16.0.0/12 block contains more than one million addresses, so real deployments rarely use it as one flat network. VPNs, cloud VPCs, and container platforms normally divide it into smaller subnets that give sites, application environments, and services clear boundaries.
The main benefits include:
- Isolating environments: Production, testing, VPN clients, and container networks can use separate subnets with their own access policies.
- Limiting faults and broadcasts: A configuration error or unusual traffic in one subnet is less likely to affect the entire
/12address space. - Reducing overlap risk: Documented subnet assignments make conflicts easier to detect before connecting cloud, VPN, or partner networks.
The following are three common ways to divide 172.16.0.0/12:
| Subnet size | Addresses per subnet | Subnets available inside 172.16.0.0/12 | CIDR examples | Typical use |
|---|---|---|---|---|
| /16 | 65,536 | 16 | 172.16.0.0/16172.20.0.0/16172.31.0.0/16 | One large block per site or environment |
| /20 | 4,096 | 256 | 172.16.0.0/20172.16.16.0/20172.20.0.0/20 | Cloud application or VPN pools |
| /24 | 256 | 4,096 | 172.16.0.0/24172.16.1.0/24172.20.10.0/24 | Smaller VLANs and service networks |
The CIDR examples show how network boundaries change with the prefix length. Each one is a valid private subnet, but it should still be checked against existing routes before use in a VPC, VPN, or container network.
These are total address counts. Conventional network and broadcast reservations, plus provider-specific reserved addresses, may reduce the number assignable to devices.
Cloud, VPN, and container conflicts
This range is not automatically conflict-free. Container tools and cloud templates often allocate subnets from the 172.16.0.0/12 space. A laptop can therefore connect to a VPN and discover that a remote route overlaps a local container bridge, causing traffic to follow the wrong interface.
Before assigning a subnet, check existing VPN pools, VPCs, container networks, partner routes, and on-premises networks. Smaller deliberate allocations are easier to document and migrate than treating the entire /12 as one undifferentiated pool.
Is 172.16.0.0/12 publicly routable?
No. Internet routers should not carry RFC 1918 source or destination addresses. Devices in this range usually reach public services through NAT, a proxy, or another gateway.
The word “private” describes routing scope, not guaranteed security. Internal traffic still needs suitable firewall rules, segmentation, authentication, monitoring, and encryption.
172.16.0.0/12 FAQ
Are all IP addresses beginning with 172 private?
Is 172.20.0.1 a private IP address?
Why can a VPN conflict with Docker or another container tool?
Related reading
See the overview of all private IP ranges, compare 10.0.0.0/8 and 192.168.0.0/16, or review the difference between an intranet and the internet.