/21 subnet (255.255.248.0)
Everything about a /21 network: mask, wildcard, number of hosts, example ranges and when to use it.
| Prefix (CIDR) | /21 |
|---|---|
| Subnet mask | 255.255.248.0 |
| Wildcard mask | 0.0.7.255 |
| Total addresses | 2,048 |
| Usable hosts | 2,046 |
| Block size | 8 in the third octet |
| Mask in binary | 11111111.11111111.11111000.00000000 |
What is a /21 used for?
Summarising groups of /24 networks, or a large Wi-Fi network with many guests. A /21 contains 8 /24 networks.
How the numbers are worked out
/21 means the first 21 bits of the address are the network part, leaving 11 bits for hosts. 211 = 2,048 addresses. Take away 2 for the network and broadcast addresses and you get 2,046 usable hosts.
The mask has 21 ones followed by 11 zeros. The wildcard mask is the opposite: 255.255.255.255 minus the subnet mask, 0.0.7.255.
Example /21 networks
| Network | Usable range | Broadcast |
|---|---|---|
10.0.0.0/21 | 10.0.0.1 – 10.0.7.254 | 10.0.7.255 |
10.0.8.0/21 | 10.0.8.1 – 10.0.15.254 | 10.0.15.255 |
10.0.16.0/21 | 10.0.16.1 – 10.0.23.254 | 10.0.23.255 |
10.0.24.0/21 | 10.0.24.1 – 10.0.31.254 | 10.0.31.255 |
Each next /21 network starts 2,048 addresses after the previous one. Work out any address with the free subnet calculator, or split a network into different sizes with the VLSM planner.
Frequently asked questions
How many hosts are in a /21 subnet?
A /21 has 2,048 addresses in total and 2,046 usable hosts. The first address is the network address and the last is the broadcast address.
What is the subnet mask for /21?
The subnet mask for /21 is 255.255.248.0, and the wildcard mask (used in Cisco ACLs and OSPF) is 0.0.7.255.
What is a /21 subnet used for?
Summarising groups of /24 networks, or a large Wi-Fi network with many guests.
Other prefix sizes
Learn more: subnetting in your head, subnetting step by step and the subnetting cheat sheet.