/28 subnet (255.255.255.240)
Everything about a /28 network: mask, wildcard, number of hosts, example ranges and when to use it.
| Prefix (CIDR) | /28 |
|---|---|
| Subnet mask | 255.255.255.240 |
| Wildcard mask | 0.0.0.15 |
| Total addresses | 16 |
| Usable hosts | 14 |
| Block size | 16 in the fourth octet |
| Mask in binary | 11111111.11111111.11111111.11110000 |
What is a /28 used for?
Very small segments: a DMZ, a few servers or public IP blocks from an ISP (14 usable addresses). 16 subnets of /28 fit in one /24.
How the numbers are worked out
/28 means the first 28 bits of the address are the network part, leaving 4 bits for hosts. 24 = 16 addresses. Take away 2 for the network and broadcast addresses and you get 14 usable hosts.
The mask has 28 ones followed by 4 zeros. The wildcard mask is the opposite: 255.255.255.255 minus the subnet mask, 0.0.0.15.
Example /28 networks
| Network | Usable range | Broadcast |
|---|---|---|
192.168.1.0/28 | 192.168.1.1 – 192.168.1.14 | 192.168.1.15 |
192.168.1.16/28 | 192.168.1.17 – 192.168.1.30 | 192.168.1.31 |
192.168.1.32/28 | 192.168.1.33 – 192.168.1.46 | 192.168.1.47 |
192.168.1.48/28 | 192.168.1.49 – 192.168.1.62 | 192.168.1.63 |
Each next /28 network starts 16 addresses after the previous one. Work out any address with the free subnet calculator, or split a network into different sizes with the VLSM planner.
Frequently asked questions
How many hosts are in a /28 subnet?
A /28 has 16 addresses in total and 14 usable hosts. The first address is the network address and the last is the broadcast address.
What is the subnet mask for /28?
The subnet mask for /28 is 255.255.255.240, and the wildcard mask (used in Cisco ACLs and OSPF) is 0.0.0.15.
What is a /28 subnet used for?
Very small segments: a DMZ, a few servers or public IP blocks from an ISP (14 usable addresses).
Other prefix sizes
Learn more: subnetting in your head, subnetting step by step and the subnetting cheat sheet.