CIDR prefix quick reference
Usable host count = 2(32−prefix) − 2. The subtracted 2 accounts for the network address and broadcast address, which cannot be assigned to hosts. Exception: /31 and /32 follow different rules (RFC 3021 and host routes).
| Prefix | Subnet mask | Usable hosts | Subdivision | Typical use |
|---|---|---|---|---|
| /8 | 255.0.0.0 | 16 777 214 | 1 class A | ISP and large enterprise backbones |
| /16 | 255.255.0.0 | 65 534 | 256 class C | Campus networks, large office segments |
| /20 | 255.255.240.0 | 4 094 | 16 per /16 | Mid-size VLANs, cloud VPCs |
| /21 | 255.255.248.0 | 2 046 | 8 per /18 | Medium-sized segments |
| /22 | 255.255.252.0 | 1 022 | 4 per /20 | Large VLANs, data centre tiers |
| /23 | 255.255.254.0 | 510 | 2 per /22 | Department segments |
| /24 | 255.255.255.0 | 254 | 256 per /16 | Most common: office VLAN, small site |
| /25 | 255.255.255.128 | 126 | 2 per /24 | Split /24 for two segments |
| /26 | 255.255.255.192 | 62 | 4 per /24 | Small server VLANs |
| /27 | 255.255.255.224 | 30 | 8 per /24 | Management VLANs, small clusters |
| /28 | 255.255.255.240 | 14 | 16 per /24 | Point-to-point with room to grow |
| /29 | 255.255.255.248 | 6 | 32 per /24 | Router-to-router links or tiny segments |
| /30 | 255.255.255.252 | 2 | 64 per /24 | Classic point-to-point WAN links |
| /31 | 255.255.255.254 | 2 | 128 per /24 | RFC 3021 P2P — no broadcast overhead |
| /32 | 255.255.255.255 | 1 host | Host route | Loopback, host routes, firewall rules |