IPv4 reference
IPv4 /24 prefix
IPv4 /24 prefix corresponds to /24, with 256 total addresses and 254 usable hosts.
Example network details for 0.0.0.0/24
- CIDR
- 0.0.0.0/24
- Prefix
- /24
- Network address
- 0.0.0.0
- Broadcast address
- 0.0.0.255
- First usable address
- 0.0.0.1
- Last usable address
- 0.0.0.254
- Subnet mask
- 255.255.255.0
- Wildcard mask
- 0.0.0.255
- Total addresses
- 256
- Usable hosts
- 254
Binary masks
Subnet: 11111111.11111111.11111111.00000000
Wildcard: 00000000.00000000.00000000.11111111
The first 24 bits identify the network. The remaining 8 bits identify addresses inside it.
First subdivision
Dividing this network into 4 equal blocks produces:
0.0.0.0/26— 62 usable hosts0.0.0.64/26— 62 usable hosts0.0.0.128/26— 62 usable hosts0.0.0.192/26— 62 usable hosts
Continue working with /24
What this result means
A /24 IPv4 network contains 256 consecutive addresses. The network and broadcast addresses are reserved in traditional LAN use, leaving 254 usable host addresses.
Use the wildcard mask in access lists and routing policy where a device expects inverse mask bits. Always verify vendor syntax before applying generated values to production equipment.