A subnet reference helps engineers compare CIDR prefixes, address capacity, and network boundaries. Total addresses and usable hosts are not always the same.
An IPv4 subnet cheat sheet is a quick reference that matches CIDR prefix lengths to subnet masks, address counts, and host capacity. A CIDR cheat sheet also helps identify network and broadcast boundaries, calculate wildcard masks, and avoid overlapping ranges. It supports network configuration, troubleshooting, and planning for hosting, ISP, and enterprise environments.
IPv4 addresses have 32 bits. In CIDR notation, /24 means 24 network bits and eight host bits; its mask is 255.255.255.0.
To read a subnet mask reference, remember three relationships:
The subtraction reserves network and broadcast addresses. On supported /31 point-to-point links, both addresses are usable; /32 identifies one address. Cloud reservations can further reduce capacity.
This IPv4 subnet table lists masks, total addresses, and conventional usable hosts:
A comprehensive CIDR prefix table also includes /8 with 16,777,216 addresses, /31 with two addresses for supported point-to-point links, and /32 with one. Actual assignable capacity depends on the network.
Consider 192.168.10.70/26. The mask is 255.255.255.192, with 64 addresses per subnet. Valid final-octet boundaries are 0, 64, 128, and 192; therefore, .70 belongs to 192.168.10.64/26.
Use the following steps to check the range:
For /29, 192.168.10.16/29 covers .16–.23, with usable hosts .17–.22. Subnets cannot start at arbitrary boundaries.
A wildcard mask reverses a subnet mask: subtract every octet from 255. For /24 (255.255.255.0), the wildcard is 0.0.0.255; for /26 (255.255.255.192), it is 0.0.0.63.
Wildcard masks appear in router access lists and some routing settings. In access-list matching, a zero bit requires a match and a one bit allows variation. They are not interchangeable with subnet masks; confusing them can match the wrong range.
A subnet prefix cheat sheet helps match capacity to use: /24 for a moderately sized segment, /26 for smaller groups, /28 for limited infrastructure, and /30 for a two-host connection. Supported /31 links use fewer addresses.
For variable-length subnet masking, allocate larger blocks first and respect CIDR boundaries. Document gateways and planned growth; an IPv4 CIDR chart cannot replace allocation records.
IPv6 uses 128-bit addresses and CIDR prefixes, but its subnet sizing conventions differ. A /64 is typical for an IPv6 LAN, a /48 contains 65,536 separate /64 networks, and a /128 identifies one address. IPv6 does not use IPv4-style broadcast addresses, so subtracting two to estimate usable hosts is inappropriate. Keep IPv4 and IPv6 references separate when planning dual-stack networks.
Check for these errors:
Public routing also requires registry records, authorization, and upstream prefix checks. Clouds have their own address reservations and BYOIP minimum sizes.
Hosting, ISP, and cloud teams must size blocks for workloads and growth. A /24 holds 256 total addresses, but normally only 254 usable hosts before provider reservations.
Organizations can lease IPv4 ranges, purchase IPv4 blocks, or explore BYOIP in supported clouds. Check prefix size, geolocation, reputation, and routing.
What is the subnet mask for /27?
A /27 corresponds to 255.255.255.224, providing 32 total addresses and normally 30 usable hosts.
Why does a /24 contain 256 addresses but only 254 usable hosts?
The first address identifies the network and the last is its broadcast address under conventional IPv4 subnetting.
Does a /31 subnet have zero usable addresses?
No. RFC 3021 allows both addresses to be used on supported point-to-point links. It should not be treated like a conventional LAN subnet.
Can a /28 be announced separately on the public Internet?
A /28 is valid mathematically, but independent global BGP propagation is generally restricted by upstream prefix filters. Check the provider’s routing policy.
Use the IPv4 subnet mask table to check address capacity and network boundaries before acquiring public IPv4 space. Contact InterLIR to discuss leasing, purchasing, or BYOIP options. Specialists can help assess suitable prefix sizes, availability, address history, registry requirements, and routing considerations so that the chosen block fits your infrastructure plan.
G. Masterov
Live chat is provided by Intercom and is loaded only after you enable it. You can also contact us without enabling the chat.