/24 subnet
A /24 fixes the first 24 bits of the address and leaves 8 for hosts. That gives 256 addresses and subnet mask 255.255.255.0.
Example: 192.168.1.0/24
- CIDR block
- 192.168.1.0/24
- Network address
- 192.168.1.0
- Broadcast address
- 192.168.1.255
- Usable host range
- 192.168.1.1 – 192.168.1.254
- Total addresses
- 256
- Usable hosts
- 254
- Subnet mask
- 255.255.255.0
- Wildcard mask
- 0.0.0.255
- Mask in binary
- 11111111.11111111.11111111.00000000
Check another address in the subnet calculator.
Where you see a /24
- This was the size of a Class C network, and it is the most common size for an office or home LAN.
- Networks commonly filter internet route announcements longer than /24, so a /24 is the smallest IPv4 block that is reliably reachable when announced on its own.
- 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24 are reserved for documentation and examples (RFC 5737).
What fits inside a /24
Splitting 192.168.1.0/24 into /26 blocks starts with 192.168.1.0/26, 192.168.1.64/26, 192.168.1.128/26, 192.168.1.192/26.
How many fit in a larger block
- A /8 holds 65,536 blocks of /24.
- A /16 holds 256 blocks of /24.
A /24 in the cloud
| Provider | Usable addresses |
|---|---|
| AWS VPC | 251 |
| Azure Virtual Network | 251 |
| Google Cloud VPC | 252 |
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 /24 subnet?
A /24 has 256 addresses. Two are reserved for the network and broadcast addresses, which leaves 254 usable hosts.
What is the subnet mask for a /24?
The subnet mask for a /24 is 255.255.255.0, written in binary as 11111111.11111111.11111111.00000000. The wildcard mask is 0.0.0.255.
What is an example of a /24 range?
192.168.1.0/24 runs from 192.168.1.0 to 192.168.1.255. Hosts use 192.168.1.1 to 192.168.1.254, and 192.168.1.255 is the broadcast address.