/22 subnet
A /22 fixes the first 22 bits of the address and leaves 10 for hosts. That gives 1,024 addresses and subnet mask 255.255.252.0.
Example: 192.168.0.0/22
- CIDR block
- 192.168.0.0/22
- Network address
- 192.168.0.0
- Broadcast address
- 192.168.3.255
- Usable host range
- 192.168.0.1 – 192.168.3.254
- Total addresses
- 1,024
- Usable hosts
- 1,022
- Subnet mask
- 255.255.252.0
- Wildcard mask
- 0.0.3.255
- Mask in binary
- 11111111.11111111.11111100.00000000
Check another address in the subnet calculator.
What fits inside a /22
Splitting 192.168.0.0/22 into /24 blocks starts with 192.168.0.0/24, 192.168.1.0/24, 192.168.2.0/24, 192.168.3.0/24.
How many fit in a larger block
- A /8 holds 16,384 blocks of /22.
- A /16 holds 64 blocks of /22.
A /22 in the cloud
| Provider | Usable addresses |
|---|---|
| AWS VPC | 1,019 |
| Azure Virtual Network | 1,019 |
| Google Cloud VPC | 1,020 |
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 /22 subnet?
A /22 has 1,024 addresses. Two are reserved for the network and broadcast addresses, which leaves 1,022 usable hosts.
What is the subnet mask for a /22?
The subnet mask for a /22 is 255.255.252.0, written in binary as 11111111.11111111.11111100.00000000. The wildcard mask is 0.0.3.255.
What is an example of a /22 range?
192.168.0.0/22 runs from 192.168.0.0 to 192.168.3.255. Hosts use 192.168.0.1 to 192.168.3.254, and 192.168.3.255 is the broadcast address.