172.31.0.0/20
Private (RFC 1918) RFC 1918Class B — /20 prefix — 4,094 usable hosts
Network address — the base address of the block (172.31.0.0). All devices in this subnet share this prefix. Cannot be assigned to a host.
Broadcast address — packets sent to 172.31.15.255 are delivered to every device in the subnet. Also reserved — not assignable.
Usable hosts — the 4,094 addresses between those two that you can assign to servers, VMs, or interfaces.
Subnet mask — 255.255.240.0 is the dotted-decimal equivalent of /20. Older tools and Cisco configs use this format instead of CIDR slash notation.
Full Details
| CIDR Notation | 172.31.0.0/20 |
| Network Address | 172.31.0.0 |
| Broadcast Address | 172.31.15.255 |
| Subnet Mask | 255.255.240.0 |
| Wildcard Mask | 0.0.15.255 |
| Prefix Length | /20 |
| IP Address Class | Class B |
| Total IP Addresses | 4,096 |
| Usable Host Addresses | 4,094 |
| First Usable IP | 172.31.0.1 |
| Last Usable IP | 172.31.15.254 |
| Network (Hex) | 0xAC1F0000 |
| Broadcast (Hex) | 0xAC1F0FFF |
| Governing RFC | RFC 1918 |
| Address Type | Private (RFC 1918) |
Binary Representation
The first 20 bits (1s in the mask) identify the network. The remaining 12 bits identify hosts within the network.
Subnet Breakdown — splitting into /21
This /20 block can be divided into 2 /21 subnets.
| CIDR | Network | Broadcast | First Usable | Last Usable | Hosts |
|---|---|---|---|---|---|
| 172.31.0.0/21 | 172.31.0.0 | 172.31.7.255 | 172.31.0.1 | 172.31.7.254 | 2,046 |
| 172.31.8.0/21 | 172.31.8.0 | 172.31.15.255 | 172.31.8.1 | 172.31.15.254 | 2,046 |