IPv4 reference
IPv4 /21 prefix
IPv4 /21 prefix corresponds to /21, with 2,048 total addresses and 2,046 usable hosts.
Example network details for 0.0.0.0/21
- CIDR
- 0.0.0.0/21
- Prefix
- /21
- Network address
- 0.0.0.0
- Broadcast address
- 0.0.7.255
- First usable address
- 0.0.0.1
- Last usable address
- 0.0.7.254
- Subnet mask
- 255.255.248.0
- Wildcard mask
- 0.0.7.255
- Total addresses
- 2,048
- Usable hosts
- 2,046
Binary masks
Subnet: 11111111.11111111.11111000.00000000
Wildcard: 00000000.00000000.00000111.11111111
The first 21 bits identify the network. The remaining 11 bits identify addresses inside it.
First subdivision
Dividing this network into 4 equal blocks produces:
0.0.0.0/23— 510 usable hosts0.0.2.0/23— 510 usable hosts0.0.4.0/23— 510 usable hosts0.0.6.0/23— 510 usable hosts
Continue working with /21
What this result means
A /21 IPv4 network contains 2,048 consecutive addresses. The network and broadcast addresses are reserved in traditional LAN use, leaving 2,046 usable host addresses.
Use the wildcard mask in access lists and routing policy where a device expects inverse mask bits. Always verify vendor syntax before applying generated values to production equipment.