InfraNestInfraNest

What is a /31 subnet?

2 usable hosts out of 2 addresses, behind netmask 255.255.255.254.

Prefix/31
Netmask255.255.255.254
Total addresses2
Usable hosts2
Example block10.0.0.0/31
Usable host range10.0.0.0 – 10.0.0.1
Open this in the tool

A /31 fixes the first 31 bits of the address as the network and leaves 1 for hosts — 2 addresses in all.

A /31 is the exception. It has no network or broadcast address, so both of its addresses are usable — which is exactly what a point-to-point link between two routers needs (RFC 3021).

128 of them fit inside a /24.

Other subnet sizes

Subnet Calculator

Start in seconds

Bring your whole infrastructure into one modern dashboard.

Free plan · No credit card required · Set up in minutes