Details
| Property | Value |
|---|---|
| Network bits | 31 |
| Host bits | 1 |
| Mask in binary | 11111111.11111111.11111111.11111110 |
| Mask in hex | 0xFFFFFFFE |
| Total addresses | 21 = 2 |
| Usable hosts | 2 (RFC 3021 point-to-point) |
| Subnets per /24 | 128 |
| Historic class equivalent | — |
Typical use: Point-to-point link without network/broadcast (RFC 3021).
First /31 blocks in 192.168.1.0/24
| Network | First host | Last host | Broadcast |
|---|---|---|---|
| 192.168.1.0/31 | 192.168.1.0 | 192.168.1.1 | — |
| 192.168.1.2/31 | 192.168.1.2 | 192.168.1.3 | — |
| 192.168.1.4/31 | 192.168.1.4 | 192.168.1.5 | — |
| 192.168.1.6/31 | 192.168.1.6 | 192.168.1.7 | — |
| 192.168.1.8/31 | 192.168.1.8 | 192.168.1.9 | — |
| 192.168.1.10/31 | 192.168.1.10 | 192.168.1.11 | — |
| 192.168.1.12/31 | 192.168.1.12 | 192.168.1.13 | — |
| 192.168.1.14/31 | 192.168.1.14 | 192.168.1.15 | — |
Example: 192.168.1.0/31
Network 192.168.1.0, no broadcast address, hosts 192.168.1.0 to 192.168.1.1.
Neighbouring prefixes
Each step of one bit halves (or doubles) the size: a /31 holds two /32s.