/28 subnet
A /28 fixes the first 28 bits of the address and leaves 4 for hosts. That gives 16 addresses and subnet mask 255.255.255.240.
Example: 192.168.1.0/28
- CIDR block
- 192.168.1.0/28
- Network address
- 192.168.1.0
- Broadcast address
- 192.168.1.15
- Usable host range
- 192.168.1.1 – 192.168.1.14
- Total addresses
- 16
- Usable hosts
- 14
- Subnet mask
- 255.255.255.240
- Wildcard mask
- 0.0.0.15
- Mask in binary
- 11111111.11111111.11111111.11110000
Check another address in the subnet calculator.
Where you see a /28
- It is the smallest subnet AWS allows in a VPC.
What fits inside a /28
Splitting 192.168.1.0/28 into /30 blocks starts with 192.168.1.0/30, 192.168.1.4/30, 192.168.1.8/30, 192.168.1.12/30.
How many fit in a larger block
- A /8 holds 1,048,576 blocks of /28.
- A /16 holds 4,096 blocks of /28.
- A /24 holds 16 blocks of /28.
A /28 in the cloud
| Provider | Usable addresses |
|---|---|
| AWS VPC | 11 |
| Azure Virtual Network | 11 |
| Google Cloud VPC | 12 |
Each provider reserves addresses in every subnet: AWS VPC 5, Azure Virtual Network 5, Google Cloud VPC 4 (primary range).
Questions
How many hosts are in a /28 subnet?
A /28 has 16 addresses. Two are reserved for the network and broadcast addresses, which leaves 14 usable hosts.
What is the subnet mask for a /28?
The subnet mask for a /28 is 255.255.255.240, written in binary as 11111111.11111111.11111111.11110000. The wildcard mask is 0.0.0.15.
What is an example of a /28 range?
192.168.1.0/28 runs from 192.168.1.0 to 192.168.1.15. Hosts use 192.168.1.1 to 192.168.1.14, and 192.168.1.15 is the broadcast address.