How many usable hosts in a /28?
A /28 subnet has 16 IP addresses and 14 usable hosts. The first address is the network address and the last is the broadcast address, so neither can go on a host. Its netmask is 255.255.255.240 and its wildcard mask is 0.0.0.15.
/28 at a glance
- Prefix
- /28
- Netmask
- 255.255.255.240
- Wildcard
- 0.0.0.15
- Addresses
- 16
- Usable hosts
- 14
Example: 192.168.10.0/28
- Network
- 192.168.10.0
- Broadcast
- 192.168.10.15
- Hosts
- 192.168.10.1 – 192.168.10.14
Usable IPs in a /28 cloud subnet
As a cloud subnet it leaves 11 usable on AWS and Azure, which reserve 5 addresses, and 12 on Google Cloud, which reserves 4.
| Provider | Usable |
|---|---|
| AWS VPCReserves 5: network, VPC router, DNS, one held for future use, broadcast | 11 |
| Azure VNetReserves 5: network, default gateway, two for Azure DNS, broadcast | 11 |
| Google Cloud VPCReserves 4: network, default gateway, second-to-last, broadcast | 12 |
Questions
Quick answers.
Worked out with the same code as the CIDR calculator, which takes any IPv4 block and also splits it and checks overlaps.
What is the subnet mask for a /28?
255.255.255.240. In binary it is 28 ones followed by 4 zeros. The wildcard mask, which Cisco ACLs and OSPF use, is 0.0.0.15.
How many /28 subnets fit in a /24?
16. Each extra prefix bit halves the block, so a /24 (256 addresses) splits into 16 /28 subnets of 16 addresses each.