CIDR prefix
/24
255.255.255.0
254 usable hosts · 256 addresses
The mask for /24 is 255.255.255.0 — 256 addresses, 254 usable hosts. The most common LAN size — the classic Class C (254 hosts).
Mask
255.255.255.0
Wildcard
0.0.0.255
Addresses
256
Hosts
254
Worked example: 192.168.0.0/24
Network address192.168.0.0/24
Broadcast address192.168.0.255
First host192.168.0.1
Last host192.168.0.254
FAQ — /24
What is the subnet mask for /24?
The subnet mask for /24 is 255.255.255.0 (wildcard: 0.0.0.255). The first 24 bits are the network part, the remaining 8 are the host part.
How many hosts fit in a /24?
A /24 block holds 256 addresses, of which 254 are usable hosts (the network and broadcast addresses are excluded).
How many /24 subnets fit in a /16?
A /16 network divides into 256 /24 subnets.
What is a /24 used for?
The most common LAN size — the classic Class C (254 hosts).