Modern point-to-point (255.255.255.254 = /31 in CIDR notation). RFC 3021 lets you use both addresses on a /31. Used for router interconnects.
RFC 3021 lets you use both addresses on a /31. Used for router interconnects.
For the full deep dive (use cases, examples, AWS-specific sizing), see the /31 prefix page →
The /31 subnet uses 255.255.255.254 as its subnet mask — meaning the first 31 bits of every address identify the network, and the remaining 1 bits identify the host within that network. That gives you 2 total addresses (2 usable on standard RFC math, after subtracting the network and broadcast addresses).
The wildcard mask — the bitwise inverse of the subnet mask — is 0.0.0.1. Wildcards are what Cisco access-control lists and OSPF area definitions use instead of subnet masks; the "1" bits mark "don't care" positions. For a /31, that leaves 1 don't-care host bits.
To find the network address for any IP in a /31 block, perform a bitwise AND between the IP and the subnet mask. To find the broadcast, OR the network address with the wildcard. Modern tools — like our subnet calculator — do this in microseconds, but the underlying mechanics are straightforward binary arithmetic.
A /31 holds 2 addresses, both of which are usable per RFC 3021. Specifically designed for point-to-point links where you don't need a network or broadcast address — saving you address space on backbone connections.
Cloud-provider quirks matter at every prefix size: AWS and Azure reserve 5 IPs per subnet, GCP reserves 4, and OCI reserves 3. So a /31 on standard RFC math gives you 2 usable hosts, but on AWS or Azure that drops to 0. The capacity-planning gap bites hardest at small prefixes (a /28 has 14 usable on paper, only 11 on AWS) but exists at every size. Our cloud-aware calculator applies the right math automatically.
The subnet mask 255.255.255.254 equals /31 in CIDR notation. This means 31 bits of the 32-bit address identify the network, and 1 bits identify the host.
A subnet with mask 255.255.255.254 (/31) supports 2 usable hosts on standard RFC math. On AWS or Azure (5 reserved IPs), 0 hosts. On GCP (4 reserved), 0.
The wildcard mask is the bitwise inverse of the subnet mask. For 255.255.255.254, the wildcard is 0.0.0.1. Cisco access control lists use wildcard masks instead of subnet masks.