/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 mask | 255.255.255.254 |
|---|---|
| Binary mask | 11111111.11111111.11111111.11111110 |
| Wildcard mask | 0.0.0.1 |
| Total addresses | 2 |
| Usable host addresses | 2 |
| Block containing 192.0.2.1 | 192.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
| Prefix | Addresses | Usable addresses |
|---|---|---|
| /30 | 4 | 2 |
| /31 | 2 | 2 |
| /32 | 1 | 1 |
Split 192.0.2.0/24 into 128 /31 prefixes
The table shows the first two and last two subnets. Browse all 128 subnets
| # | CIDR | Last address |
|---|---|---|
| 1 | 192.0.2.0/31 | 192.0.2.1 |
| 2 | 192.0.2.2/31 | 192.0.2.3 |
| 127 | 192.0.2.252/31 | 192.0.2.253 |
| 128 | 192.0.2.254/31 | 192.0.2.255 |