IP fundamentals
When to use IPv4 /31 and /32 prefixes
Small IPv4 prefixes have special operational uses; blindly subtracting two addresses from every network is incorrect.
Updated
In this guide
Conventional subnet
A /30 covers four addresses, normally two usable host addresses plus network and broadcast. This model suits many multi-access IPv4 subnets.
Point-to-point /31
RFC 3021 permits both addresses of a /31 on a point-to-point link. 192.0.2.36/31 has .36 and .37. There is no conventional directed-broadcast address within that link.
Single-host /32
A /32 matches exactly one address. It can be a host route or a loopback allocation, not a conventional Ethernet subnet with a separate gateway address. Device and routing support still matter.
Choose the correct network type
A router pair connected by a point-to-point link can use 192.0.2.10/31 and 192.0.2.11/31 when both devices support RFC 3021. Do not treat that example as a replacement for a shared multi-access LAN. A /32 route, by contrast, identifies just one destination address.
Step-by-step example
Compare ordinary /30 LAN addressing with /31 point-to-point links and /32 host routes.
- 01
Start with /30
192.0.2.0/30 includes four addresses. In the normal LAN convention, .0 is network, .3 broadcast and .1–.2 usable.
- /30
- .0 network
- Hosts
- .1, .2
- Broadcast
- .3
Illustration · example, not a live result - 02
Inspect a /31 link
192.0.2.0/31 contains .0 and .1. RFC 3021 permits both as endpoints on a point-to-point link. That exception should not be applied to arbitrary LANs without verifying support.
- Endpoint A
- 192.0.2.0
- Endpoint B
- 192.0.2.1
Illustration · example, not a live result - 03
Inspect a /32 route
192.0.2.1/32 denotes exactly one IPv4 address. It is often used as a host route or loopback assignment, not as a two-device subnet.
- /32
- 192.0.2.1 only
- Addresses
- 1
Illustration · example, not a live result
Check your understanding
Use the subnet calculator and read the convention in context, not simply the total minus two rule.
Try this tool →Try this
Compare .36/30, .36/31 and .36/32 in the CIDR-to-range converter.
CIDR to IP range converter →