A /23 subnet mask is 255.255.254.0: 23 network bits and 9 host bits, giving 512 addresses and 510 usable hosts. A /23 always spans two consecutive /24 blocks starting on an even third octet. For example, 192.168.10.0/23 runs from 192.168.10.0 (network) to 192.168.11.255 (broadcast), with hosts 192.168.10.1–192.168.11.254. Its wildcard mask is 0.0.1.255. The full CIDR chart and calculator below cover every prefix from /16 to /32.
How a /23 Works
CIDR writes a network as an address plus a prefix length, the number of leading 1 bits in the subnet mask (Wikipedia). With 23 network bits, the third octet’s last bit becomes a host bit. That is why a /23 pairs two /24s: 10.0 with 10.1, 10.2 with 10.3, and so on, always starting on an even number. In each subnet the all-zeros host address is the network address and the all-ones is the broadcast, so usable hosts are 2⁹ − 2 = 510.
Subnet Calculator
CIDR Subnet Mask Chart (/16 to /32)
| Prefix | Subnet mask | Wildcard | Addresses | Usable hosts |
|---|---|---|---|---|
| /16 | 255.255.0.0 | 0.0.255.255 | 65,536 | 65,534 |
| /17 | 255.255.128.0 | 0.0.127.255 | 32,768 | 32,766 |
| /18 | 255.255.192.0 | 0.0.63.255 | 16,384 | 16,382 |
| /19 | 255.255.224.0 | 0.0.31.255 | 8,192 | 8,190 |
| /20 | 255.255.240.0 | 0.0.15.255 | 4,096 | 4,094 |
| /21 | 255.255.248.0 | 0.0.7.255 | 2,048 | 2,046 |
| /22 | 255.255.252.0 | 0.0.3.255 | 1,024 | 1,022 |
| /23 | 255.255.254.0 | 0.0.1.255 | 512 | 510 |
| /24 | 255.255.255.0 | 0.0.0.255 | 256 | 254 |
| /25 | 255.255.255.128 | 0.0.0.127 | 128 | 126 |
| /26 | 255.255.255.192 | 0.0.0.63 | 64 | 62 |
| /27 | 255.255.255.224 | 0.0.0.31 | 32 | 30 |
| /28 | 255.255.255.240 | 0.0.0.15 | 16 | 14 |
| /29 | 255.255.255.248 | 0.0.0.7 | 8 | 6 |
| /30 | 255.255.255.252 | 0.0.0.3 | 4 | 2 |
| /31 | 255.255.255.254 | 0.0.0.1 | 2 | 2 |
| /32 | 255.255.255.255 | 0.0.0.0 | 1 | 1 |
For private address ranges and planning an IP scheme for a plant, see private IP ranges. For how devices get addresses, see BOOTP vs DHCP, and for switching, managed vs unmanaged switch.
Frequently Asked Questions
What is the subnet mask for /23?
255.255.254.0: 23 one-bits followed by 9 zero-bits.
How many hosts are in a /23?
512 addresses, of which 510 are usable: the first is the network address and the last is the broadcast address (Wikipedia).
What is the range of a /23 subnet?
Two consecutive /24 blocks starting on an even third octet, for example 192.168.10.0/23 covers 192.168.10.0 to 192.168.11.255; usable hosts 192.168.10.1 to 192.168.11.254.
Is 192.168.1.0/23 valid?
As a network address, no: a /23 must start on an even third octet, so 192.168.1.0 belongs to 192.168.0.0/23 (192.168.0.0–192.168.1.255).
What is the wildcard mask for /23?
0.0.1.255, the inverse of 255.255.254.0, used in ACLs and some routing protocol configurations.
What is the difference between /23 and /24?
A /24 (255.255.255.0) has 256 addresses (254 hosts); a /23 doubles it to 512 (510 hosts) by moving one bit from network to host.
What is the subnet mask for /22?
255.255.252.0: 1,024 addresses and 1,022 usable hosts.
What does CIDR mean?
Classless Inter-Domain Routing: writing a network as address/prefix-length, where the prefix is the number of leading one-bits in the mask, replacing the old class A/B/C system (Wikipedia).
Can a /31 be used?
Yes, for point-to-point links (RFC 3021), where both addresses are usable because no network or broadcast address is needed.
When should I use a /23 in a plant network?
When one VLAN needs more than 254 devices; otherwise smaller subnets keep broadcast domains small, which matters for industrial Ethernet traffic.
Sources and Further Reading
- Wikipedia: Classless Inter-Domain Routing: prefix notation and mask table.
- Wikipedia: Subnet: network and broadcast addresses, host counts.
