172.16.0.0/16: network, broadcast and usable IPs
172.16.0.0/16 covers 65,536 IP addresses, from 172.16.0.0 to 172.16.255.255, with 65,534 usable hosts: 172.16.0.1 to 172.16.255.254. Its netmask is 255.255.0.0, and its scope is Private (RFC 1918). As a cloud subnet it leaves 65,531 usable on AWS and Azure, which reserve 5 addresses, and 65,532 on Google Cloud, which reserves 4.
Calculation
- CIDR
- 172.16.0.0/16
- Range
- 172.16.0.0 – 172.16.255.255
- Network
- 172.16.0.0
- Broadcast
- 172.16.255.255
- Netmask
- 255.255.0.0
- Wildcard
- 0.0.255.255
- First host
- 172.16.0.1
- Last host
- 172.16.255.254
- Addresses
- 65,536
- Usable hosts
- 65,534
- Class
- B
- Scope
- Private (RFC 1918)
Usable IPs in the cloud
| Provider | Usable |
|---|---|
| AWS VPCReserves 5: network, VPC router, DNS, one held for future use, broadcast | 65,531 |
| Azure VNetReserves 5: network, default gateway, two for Azure DNS, broadcast | 65,531 |
| Google Cloud VPCReserves 4: network, default gateway, second-to-last, broadcast | 65,532 |
The first /16 of 172.16.0.0/12. Docker’s default bridge network sits right after it, at 172.17.0.0/16.
Split into four /18 subnets
172.16.0.0/16 holds 4 /18 blocks. See the /18 reference for that size, or the /16 reference for this block’s.
| Subnet | Hosts | Broadcast |
|---|---|---|
| 172.16.0.0/18 | 172.16.0.1 – 172.16.63.254 | 172.16.63.255 |
| 172.16.64.0/18 | 172.16.64.1 – 172.16.127.254 | 172.16.127.255 |
| 172.16.128.0/18 | 172.16.128.1 – 172.16.191.254 | 172.16.191.255 |
| 172.16.192.0/18 | 172.16.192.1 – 172.16.255.254 | 172.16.255.255 |
Questions
Quick answers.
Worked out with the same code as the CIDR calculator, which takes any IPv4 block and also splits it and checks overlaps.
Is 172.16.0.0/16 a private IP range?
Yes. 172.16.0.0/16 sits inside 172.16.0.0/12, one of the three private ranges defined in RFC 1918 (10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16). Those addresses aren’t routed on the public internet, so you can use them inside any VPC or LAN.
What are the first and last usable IPs in 172.16.0.0/16?
The first usable host is 172.16.0.1 and the last is 172.16.255.254. 172.16.0.0 is the network address and 172.16.255.255 is the broadcast address, so neither goes on a host.
Can I use 172.16.0.0/16 as an AWS VPC CIDR?
Yes. AWS accepts VPC CIDRs and subnets from /16 to /28, and 172.16.0.0/16 is a /16. Used as one subnet it leaves 65,531 usable IPs, because AWS keeps 5 addresses in every subnet.