/31 Subnet Mask and Host Range

A /31 IPv4 prefix uses mask 255.255.255.254 and contains 2 addresses. See the range for 192.0.2.1.

Subnet mask255.255.255.254
Binary mask11111111.11111111.11111111.11111110
Wildcard mask0.0.0.1
Total addresses2
Usable host addresses2
Block containing 192.0.2.1192.0.2.0 – 192.0.2.1

On a point-to-point link, both addresses in a /31 can be assigned, one to each endpoint. RFC 3021

Address capacity by prefix
PrefixAddressesUsable addresses
/3042
/3122
/3211

Split 192.0.2.0/24 into 128 /31 prefixes

The table shows the first two and last two subnets. Browse all 128 subnets

#CIDRLast address
1192.0.2.0/31192.0.2.1
2192.0.2.2/31192.0.2.3
127192.0.2.252/31192.0.2.253
128192.0.2.254/31192.0.2.255

Open this example in the calculator