NadirTools

Subnet Mask Reference and Host Capacity Matrix

2 min read

Complete lookup table for CIDR prefixes from /16 to /32, listing subnet masks, wildcards, and host capacities.

CIDR to Subnet Mask Reference Table

Use this comprehensive lookup table to quickly reference common subnet divisions for IPv4 routing. This covers prefixes from `/16` down to `/32`.

CIDR PrefixSubnet MaskWildcard MaskTotal IPsUsable HostsTypical Use Case
`/32``255.255.255.255``0.0.0.0`11Single Host Route / Loopback
`/31``255.255.255.254``0.0.0.1`22Point-to-Point Links (RFC 3021)
`/30``255.255.255.252``0.0.0.3`42Legacy Point-to-Point Router Links
`/29``255.255.255.248``0.0.0.7`86Small Office WAN / Edge Interfaces
`/28``255.255.255.240``0.0.0.15`1614Small Department LAN
`/27``255.255.255.224``0.0.0.31`3230Medium Department / Server Racks
`/26``255.255.255.192``0.0.0.63`6462Large Floor / Guest Wi-Fi Segments
`/25``255.255.255.128``0.0.0.127`128126Half of a standard Class C block
`/24``255.255.255.0``0.0.0.255`256254Standard Home/Office Network
`/23``255.255.254.0``0.0.1.255`512510Enterprise Branch Campus
`/22``255.255.252.0``0.0.3.255`10241022Large Enterprise LAN
`/16``255.255.0.0``0.0.255.255`6553665534Massive Corporate Wide Area Network

Traditionally, a `/30` subnet was used to connect two routers together because it provided 4 IPs (1 network, 2 usable, 1 broadcast). However, RFC 3021 introduced the `/31` subnet specifically for point-to-point links.

In a `/31` subnet, the network and broadcast address rules are suspended. There are only two IPs, and both are completely usable, saving address space on large ISP backbones.

Frequently Asked Questions

Q: What is a /32 subnet used for?

A /32 represents a single, distinct IP address. It is frequently used for loopback interfaces on routers or defining specific host routes in routing tables.

Q: How does a /31 subnet work without a broadcast address?

Under RFC 3021, on point-to-point links, broadcast addresses are unnecessary because there are only two endpoints on the wire. Thus, both IPs in a /31 are assigned to the two routers.

Q: Why is /24 the most common subnet mask?

/24 aligns perfectly with the 8-bit octet boundaries of an IPv4 address, making it incredibly easy for humans to read and segment. It provides 254 usable hosts, which fits most standard office environments.