/28 subnet mask (255.255.255.240)
A /28 is the subnet mask 255.255.255.240: 28 network bits and 4 host bits, giving 16 addresses and 14 usable hosts. Its wildcard mask is 0.0.0.15 and its block size is 16.
- Subnet mask
- 255.255.255.240
- Wildcard
- 0.0.0.15
- Addresses
- 16
- Usable hosts
- 14
- Block size
- 16
The /28 mask in binary
The prefix is the number of 1 bits at the start of the mask. Ones mark the network part of an address, zeros the host part.
11111111.11111111.11111111.11110000
28 network bits, 4 host bits.
Every /28 in 192.168.1.0/24
A /24 holds 16 /28 subnets, each starting where the previous one ends.
| Network | First host | Last host | 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 |
| 192.168.1.64/28 | 192.168.1.65 | 192.168.1.78 | 192.168.1.79 |
| 192.168.1.80/28 | 192.168.1.81 | 192.168.1.94 | 192.168.1.95 |
| 192.168.1.96/28 | 192.168.1.97 | 192.168.1.110 | 192.168.1.111 |
| 192.168.1.112/28 | 192.168.1.113 | 192.168.1.126 | 192.168.1.127 |
| 192.168.1.128/28 | 192.168.1.129 | 192.168.1.142 | 192.168.1.143 |
| 192.168.1.144/28 | 192.168.1.145 | 192.168.1.158 | 192.168.1.159 |
| 192.168.1.160/28 | 192.168.1.161 | 192.168.1.174 | 192.168.1.175 |
| 192.168.1.176/28 | 192.168.1.177 | 192.168.1.190 | 192.168.1.191 |
| 192.168.1.192/28 | 192.168.1.193 | 192.168.1.206 | 192.168.1.207 |
| 192.168.1.208/28 | 192.168.1.209 | 192.168.1.222 | 192.168.1.223 |
| 192.168.1.224/28 | 192.168.1.225 | 192.168.1.238 | 192.168.1.239 |
| 192.168.1.240/28 | 192.168.1.241 | 192.168.1.254 | 192.168.1.255 |
Where a /28 is used
A /28 is the smallest subnet AWS allows in a VPC: 16 addresses, 11 of them usable once AWS reserves five. It is a typical size for a small public subnet that only holds load balancer or NAT gateway interfaces.
On a LAN it gives 14 usable hosts, enough for a small device segment such as printers or management interfaces.
| Where | Usable addresses |
|---|---|
| Ordinary network | 14 |
| AWS VPC subnet (5 reserved) | 11 |
| Azure subnet (5 reserved) | 11 |
Worked example: 192.168.1.77/28
The block-size method, the way you would do it in an exam without a calculator.
- /28 means a mask of 255.255.255.240.
- The interesting octet is the fourth one, where the mask is 240. Block size = 256 − 240 = 16.
- Subnets in that octet start at multiples of 16. 77 falls in the block from 64 to 79.
- Network address = 192.168.1.64; broadcast = the next block minus one = 192.168.1.79.
- Usable hosts run from the network plus one to the broadcast minus one: 192.168.1.65 to 192.168.1.78, which is 2^4 − 2 = 14 addresses.
Try another address in the subnet calculator, or practise without one on the subnetting practice questions.