/16 subnet
A /16 fixes the first 16 bits of the address and leaves 16 for hosts. That gives 65,536 addresses and subnet mask 255.255.0.0.
Example: 192.168.0.0/16
- CIDR block
- 192.168.0.0/16
- Network address
- 192.168.0.0
- Broadcast address
- 192.168.255.255
- Usable host range
- 192.168.0.1 – 192.168.255.254
- Total addresses
- 65,536
- Usable hosts
- 65,534
- Subnet mask
- 255.255.0.0
- Wildcard mask
- 0.0.255.255
- Mask in binary
- 11111111.11111111.00000000.00000000
Check another address in the subnet calculator.
Where you see a /16
- This was the size of a Class B network before CIDR.
- 192.168.0.0/16 is the private range most home routers use (RFC 1918), and 169.254.0.0/16 is link-local addressing (RFC 3927).
- It is the largest subnet AWS allows in a VPC.
What fits inside a /16
Splitting 192.168.0.0/16 into /18 blocks starts with 192.168.0.0/18, 192.168.64.0/18, 192.168.128.0/18, 192.168.192.0/18.
How many fit in a larger block
- A /8 holds 256 blocks of /16.
A /16 in the cloud
| Provider | Usable addresses |
|---|---|
| AWS VPC | 65,531 |
| Azure Virtual Network | 65,531 |
| Google Cloud VPC | 65,532 |
Each provider reserves addresses in every subnet: AWS VPC 5, Azure Virtual Network 5, Google Cloud VPC 4 (primary range).
Questions
How many hosts are in a /16 subnet?
A /16 has 65,536 addresses. Two are reserved for the network and broadcast addresses, which leaves 65,534 usable hosts.
What is the subnet mask for a /16?
The subnet mask for a /16 is 255.255.0.0, written in binary as 11111111.11111111.00000000.00000000. The wildcard mask is 0.0.255.255.
What is an example of a /16 range?
192.168.0.0/16 runs from 192.168.0.0 to 192.168.255.255. Hosts use 192.168.0.1 to 192.168.255.254, and 192.168.255.255 is the broadcast address.