172.16.0.0/12 Private IP Range (Class B)
Explore the 172.16.0.0/12 private IP range used for medium-sized networks. Covers addresses from 172.16.0.0 to 172.31.255.255 with over 1 million hosts.
Detailed Explanation
The 172.16.0.0/12 Private Network
The 172.16.0.0/12 range is the medium-sized private IP block defined in RFC 1918. It spans from 172.16.0.0 to 172.31.255.255, providing 1,048,574 usable host addresses.
Key Characteristics
| Property | Value |
|---|---|
| Range | 172.16.0.0 – 172.31.255.255 |
| CIDR | 172.16.0.0/12 |
| Subnet Mask | 255.240.0.0 |
| Total Addresses | 1,048,576 |
| Usable Hosts | 1,048,574 |
Common Misconception
Many people assume this range is /16, but it is actually /12. The range includes all second octets from 16 to 31 (not just 172.16.x.x). This means 172.20.5.1 and 172.31.255.254 are both valid private addresses in this block.
Binary Explanation
172.16.0.0 in binary:
10101100.00010000.00000000.00000000
172.31.255.255 in binary:
10101100.00011111.11111111.11111111
/12 mask: 11111111.11110000.00000000.00000000
The first 12 bits (10101100.0001) are the network portion. The remaining 20 bits are for host addresses.
Typical Usage
- Docker default bridge network often uses 172.17.0.0/16
- Medium enterprise networks with departmental separation
- Secondary VPN pools when 10.x is already allocated
- Development environments that need isolation from production 10.x networks
Use Case
A DevOps team configures Docker’s default bridge network on 172.17.0.0/16, allowing containers to communicate internally while keeping the 10.x range for the host network and Kubernetes pods.