The below CIDR table lists all 32 subnet masks for IPv4 addresses, including the number of IP addresses that can be used for hosts.
[table id=22 /]
Notes
- Bits is the number of bits used for nodes.
- CIDR is the CIDR notation.
- Subnet mask is the corresponding mask.
- IP Addresses lists the number of host IP addresses.
Example
The subnet mask 255.255.255.0 translates to /24 in CIDR-speak, as 24 bits are used for the network. That leaves 8 bits / 256 IPs for nodes.