More detailsNeighboring subnets, wildcard mask, hex, reverse DNS, and binary breakdown
Neighboring /31 subnets
- Wildcard mask
- Used in Cisco ACLs and OSPF
- CIDR notation
- IP in hexadecimal
- IP as 32-bit integer
- Reverse DNS (PTR)
- Host bits / subnet bits
Binary breakdown
IP address
11000000.10101000.00000001.00000000Subnet mask
11111111.11111111.11111111.11111110Network
11000000.10101000.00000001.00000000Broadcast
11000000.10101000.00000001.00000001Quick facts for /31
- Subnet mask: 255.255.255.254
- Wildcard: 0.0.0.1
- Usable hosts: 2
- Total addresses: 2
/31 reference guideBit split, overview, sizing tables, notable networks, and FAQ
Binary bit split
11111111·11111111·11111111·11111110
Network bits (31)Host bits (1)
- Network bits
- 31
- Host bits
- 1
- Subnet mask
- 255.255.255.254
- Wildcard mask
- 0.0.0.1
- Total addresses
- 2
- Usable hosts
- 2
- Hosts formula
- 2^1 (RFC 3021)
- /24 relationship
- 128 fit per /24
Overview
A /31 block contains 2 addresses — both usable for point-to-point links (RFC 3021). Unlike /30, there is no network or broadcast address, saving 2 IPs. It is now preferred over /30 for router-to-router links.
Common use cases
- RFC 3021 point-to-point router links
- Cisco, Juniper, and bird router interconnects
- Efficient WAN link addressing in ISP networks
- Modern replacement for /30 on p2p links
Subnet sizing reference
Notable /31 networks
10.0.0.0/312 usable hosts: .0 and .1192.168.1.0/31RFC 3021 p2p example
Frequently asked questions
Common questions about /31 networks, subnet masks, and use cases.