What does /24 mean?
A /24 keeps the first three numbers fixed and lets the last one vary: 256 addresses, 254 usable hosts. The netmask is 255.255.255.0. In 192.168.1.0/24, the network is 192.168.1.0, the broadcast is 192.168.1.255, and hosts are 192.168.1.1 to 192.168.1.254.
Worked example: 192.168.1.0/24. Type any block to compare.
192.168.1.0/24 is 256 addresses: 192.168.1.0 to 192.168.1.255. 254 usable for hosts (the first is the network address, the last is broadcast).
- Network
192.168.1.0- First usable
192.168.1.1- Last usable
192.168.1.254- Broadcast
192.168.1.255- Addresses
256- Usable hosts
254- Netmask
255.255.255.0- Wildcard (ACL) mask
0.0.0.255- Historic class
C- Range type
Private network · not routed on the internet
Special-purpose range
Private network 192.168.0.0/16 RFC 1918
The private range most home routers use (192.168.0.x, 192.168.1.x).
Split it into subnets
4 subnets.
| Subnet | Usable range | Hosts | Broadcast |
|---|---|---|---|
192.168.1.0/26 | 192.168.1.1 – 192.168.1.62 | 62 | 192.168.1.63 |
192.168.1.64/26 | 192.168.1.65 – 192.168.1.126 | 62 | 192.168.1.127 |
192.168.1.128/26 | 192.168.1.129 – 192.168.1.190 | 62 | 192.168.1.191 |
192.168.1.192/26 | 192.168.1.193 – 192.168.1.254 | 62 | 192.168.1.255 |
Is this IP in the range?
Range to CIDR blocks
What to know
/24 is the default LAN on most home routers (192.168.0.0/24 or 192.168.1.0/24, with the router at .1) and the most common subnet size in offices and cloud VPCs. In AWS, a /24 subnet gives 251 usable addresses after the 5 reserved ones; Google Cloud reserves 4, leaving 252.
On the public internet, /24 is the longest (most specific) IPv4 prefix most networks accept in BGP, so it is also the smallest block an organization can usually announce on its own.
Gotchas
- Two sites that both use 192.168.1.0/24 cannot be joined by a site-to-site VPN without renumbering or NAT. Pick something less common, such as a random 10.x.y.0/24, for networks you might connect later.
255.255.255.0and/24are the same thing.0.0.0.255is the wildcard mask used in Cisco ACLs and OSPF, not a netmask.
Related explainers
- What does /22 mean?A /22 has 1,024 addresses and 1,022 usable hosts, netmask 255.255.252.0: four /24s joined together. Used...
- What does /16 mean?A /16 fixes the first two octets: 65,536 addresses, 65,534 usable hosts, netmask 255.255.0.0. The largest...
- Private IPv4 address ranges (RFC 1918)The three private IPv4 ranges are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. Their sizes, exact...
- IPv4 subnet cheat sheetEvery IPv4 prefix length from /0 to /32 with its netmask, total addresses and usable hosts. How to read...