CIDR cheat sheet
| CIDR | Subnet mask | Usable hosts |
|---|---|---|
| /30 | 255.255.255.252 | 2 |
| /29 | 255.255.255.248 | 6 |
| /28 | 255.255.255.240 | 14 |
| /27 | 255.255.255.224 | 30 |
| /26 | 255.255.255.192 | 62 |
| /25 | 255.255.255.128 | 126 |
| /24 | 255.255.255.0 | 254 |
| /16 | 255.255.0.0 | 65,534 |
How is the network address found?
The IP address is ANDed with the subnet mask bit by bit. The broadcast address sets all host bits to 1.
Usable hosts = 2^(32 − prefix) − 2
Frequently asked questions
What are private IP ranges?
10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 (RFC 1918).
Why subtract 2 hosts?
The network and broadcast addresses can't be assigned to devices. /31 point-to-point links are the exception.
Does it support IPv6?
Not yet. It covers IPv4.