/22 subnet mask (255.255.252.0)
A /22 is the subnet mask 255.255.252.0: 22 network bits and 10 host bits, giving 1,024 addresses and 1,022 usable hosts. Its wildcard mask is 0.0.3.255 and its block size is 4.
- Subnet mask
- 255.255.252.0
- Wildcard
- 0.0.3.255
- Addresses
- 1,024
- Usable hosts
- 1,022
- Block size
- 4
The /22 mask in binary
The prefix is the number of 1 bits at the start of the mask. Ones mark the network part of an address, zeros the host part.
11111111.11111111.11111100.00000000
22 network bits, 10 host bits.
Every /22 in 172.16.0.0/16
A /16 holds 64 /22 subnets, each starting where the previous one ends.
| Network | First host | Last host | Broadcast |
|---|---|---|---|
| 172.16.0.0/22 | 172.16.0.1 | 172.16.3.254 | 172.16.3.255 |
| 172.16.4.0/22 | 172.16.4.1 | 172.16.7.254 | 172.16.7.255 |
| 172.16.8.0/22 | 172.16.8.1 | 172.16.11.254 | 172.16.11.255 |
| 172.16.12.0/22 | 172.16.12.1 | 172.16.15.254 | 172.16.15.255 |
| 172.16.16.0/22 | 172.16.16.1 | 172.16.19.254 | 172.16.19.255 |
| 172.16.20.0/22 | 172.16.20.1 | 172.16.23.254 | 172.16.23.255 |
| 172.16.24.0/22 | 172.16.24.1 | 172.16.27.254 | 172.16.27.255 |
| 172.16.28.0/22 | 172.16.28.1 | 172.16.31.254 | 172.16.31.255 |
| 172.16.32.0/22 | 172.16.32.1 | 172.16.35.254 | 172.16.35.255 |
| 172.16.36.0/22 | 172.16.36.1 | 172.16.39.254 | 172.16.39.255 |
| 172.16.40.0/22 | 172.16.40.1 | 172.16.43.254 | 172.16.43.255 |
| 172.16.44.0/22 | 172.16.44.1 | 172.16.47.254 | 172.16.47.255 |
| 172.16.48.0/22 | 172.16.48.1 | 172.16.51.254 | 172.16.51.255 |
| 172.16.52.0/22 | 172.16.52.1 | 172.16.55.254 | 172.16.55.255 |
| 172.16.56.0/22 | 172.16.56.1 | 172.16.59.254 | 172.16.59.255 |
| 172.16.60.0/22 | 172.16.60.1 | 172.16.63.254 | 172.16.63.255 |
| 172.16.64.0/22 | 172.16.64.1 | 172.16.67.254 | 172.16.67.255 |
| 172.16.68.0/22 | 172.16.68.1 | 172.16.71.254 | 172.16.71.255 |
| 172.16.72.0/22 | 172.16.72.1 | 172.16.75.254 | 172.16.75.255 |
| 172.16.76.0/22 | 172.16.76.1 | 172.16.79.254 | 172.16.79.255 |
| 172.16.80.0/22 | 172.16.80.1 | 172.16.83.254 | 172.16.83.255 |
| 172.16.84.0/22 | 172.16.84.1 | 172.16.87.254 | 172.16.87.255 |
| 172.16.88.0/22 | 172.16.88.1 | 172.16.91.254 | 172.16.91.255 |
| 172.16.92.0/22 | 172.16.92.1 | 172.16.95.254 | 172.16.95.255 |
| 172.16.96.0/22 | 172.16.96.1 | 172.16.99.254 | 172.16.99.255 |
| 172.16.100.0/22 | 172.16.100.1 | 172.16.103.254 | 172.16.103.255 |
| 172.16.104.0/22 | 172.16.104.1 | 172.16.107.254 | 172.16.107.255 |
| 172.16.108.0/22 | 172.16.108.1 | 172.16.111.254 | 172.16.111.255 |
| 172.16.112.0/22 | 172.16.112.1 | 172.16.115.254 | 172.16.115.255 |
| 172.16.116.0/22 | 172.16.116.1 | 172.16.119.254 | 172.16.119.255 |
| 172.16.120.0/22 | 172.16.120.1 | 172.16.123.254 | 172.16.123.255 |
| 172.16.124.0/22 | 172.16.124.1 | 172.16.127.254 | 172.16.127.255 |
| 172.16.128.0/22 | 172.16.128.1 | 172.16.131.254 | 172.16.131.255 |
| 172.16.132.0/22 | 172.16.132.1 | 172.16.135.254 | 172.16.135.255 |
| 172.16.136.0/22 | 172.16.136.1 | 172.16.139.254 | 172.16.139.255 |
| 172.16.140.0/22 | 172.16.140.1 | 172.16.143.254 | 172.16.143.255 |
| 172.16.144.0/22 | 172.16.144.1 | 172.16.147.254 | 172.16.147.255 |
| 172.16.148.0/22 | 172.16.148.1 | 172.16.151.254 | 172.16.151.255 |
| 172.16.152.0/22 | 172.16.152.1 | 172.16.155.254 | 172.16.155.255 |
| 172.16.156.0/22 | 172.16.156.1 | 172.16.159.254 | 172.16.159.255 |
| 172.16.160.0/22 | 172.16.160.1 | 172.16.163.254 | 172.16.163.255 |
| 172.16.164.0/22 | 172.16.164.1 | 172.16.167.254 | 172.16.167.255 |
| 172.16.168.0/22 | 172.16.168.1 | 172.16.171.254 | 172.16.171.255 |
| 172.16.172.0/22 | 172.16.172.1 | 172.16.175.254 | 172.16.175.255 |
| 172.16.176.0/22 | 172.16.176.1 | 172.16.179.254 | 172.16.179.255 |
| 172.16.180.0/22 | 172.16.180.1 | 172.16.183.254 | 172.16.183.255 |
| 172.16.184.0/22 | 172.16.184.1 | 172.16.187.254 | 172.16.187.255 |
| 172.16.188.0/22 | 172.16.188.1 | 172.16.191.254 | 172.16.191.255 |
| 172.16.192.0/22 | 172.16.192.1 | 172.16.195.254 | 172.16.195.255 |
| 172.16.196.0/22 | 172.16.196.1 | 172.16.199.254 | 172.16.199.255 |
| 172.16.200.0/22 | 172.16.200.1 | 172.16.203.254 | 172.16.203.255 |
| 172.16.204.0/22 | 172.16.204.1 | 172.16.207.254 | 172.16.207.255 |
| 172.16.208.0/22 | 172.16.208.1 | 172.16.211.254 | 172.16.211.255 |
| 172.16.212.0/22 | 172.16.212.1 | 172.16.215.254 | 172.16.215.255 |
| 172.16.216.0/22 | 172.16.216.1 | 172.16.219.254 | 172.16.219.255 |
| 172.16.220.0/22 | 172.16.220.1 | 172.16.223.254 | 172.16.223.255 |
| 172.16.224.0/22 | 172.16.224.1 | 172.16.227.254 | 172.16.227.255 |
| 172.16.228.0/22 | 172.16.228.1 | 172.16.231.254 | 172.16.231.255 |
| 172.16.232.0/22 | 172.16.232.1 | 172.16.235.254 | 172.16.235.255 |
| 172.16.236.0/22 | 172.16.236.1 | 172.16.239.254 | 172.16.239.255 |
| 172.16.240.0/22 | 172.16.240.1 | 172.16.243.254 | 172.16.243.255 |
| 172.16.244.0/22 | 172.16.244.1 | 172.16.247.254 | 172.16.247.255 |
| 172.16.248.0/22 | 172.16.248.1 | 172.16.251.254 | 172.16.251.255 |
| 172.16.252.0/22 | 172.16.252.1 | 172.16.255.254 | 172.16.255.255 |
Where a /22 is used
A /22 joins four /24 networks: 1,022 usable hosts, often used for a campus wireless network where one /24 runs out of addresses.
As a summary route it stands for four /24s, which must start on a multiple of 4 in the third octet (10.1.4.0/22 covers 10.1.4.0 to 10.1.7.255).
| Where | Usable addresses |
|---|---|
| Ordinary network | 1,022 |
| AWS VPC subnet (5 reserved) | 1,019 |
| Azure subnet (5 reserved) | 1,019 |
Worked example: 172.16.45.9/22
The block-size method, the way you would do it in an exam without a calculator.
- /22 means a mask of 255.255.252.0.
- The interesting octet is the third one, where the mask is 252. Block size = 256 − 252 = 4.
- Subnets in that octet start at multiples of 4. 45 falls in the block from 44 to 47.
- Network address = 172.16.44.0; broadcast = the next block minus one = 172.16.47.255.
- Usable hosts run from the network plus one to the broadcast minus one: 172.16.44.1 to 172.16.47.254, which is 2^10 − 2 = 1,022 addresses.
Try another address in the subnet calculator, or practise without one on the subnetting practice questions.