172.31.0.0/18
Private (RFC 1918) RFC 1918Class B — /18 prefix — 16,382 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.63.255 are delivered to every device in the subnet. Also reserved — not assignable.
Usable hosts — the 16,382 addresses between those two that you can assign to servers, VMs, or interfaces.
Subnet mask — 255.255.192.0 is the dotted-decimal equivalent of /18. Older tools and Cisco configs use this format instead of CIDR slash notation.
Full Details
| CIDR Notation | 172.31.0.0/18 |
| Network Address | 172.31.0.0 |
| Broadcast Address | 172.31.63.255 |
| Subnet Mask | 255.255.192.0 |
| Wildcard Mask | 0.0.63.255 |
| Prefix Length | /18 |
| IP Address Class | Class B |
| Total IP Addresses | 16,384 |
| Usable Host Addresses | 16,382 |
| First Usable IP | 172.31.0.1 |
| Last Usable IP | 172.31.63.254 |
| Network (Hex) | 0xAC1F0000 |
| Broadcast (Hex) | 0xAC1F3FFF |
| Governing RFC | RFC 1918 |
| Address Type | Private (RFC 1918) |
Binary Representation
The first 18 bits (1s in the mask) identify the network. The remaining 14 bits identify hosts within the network.
Split into Equal Subnets
Split 172.31.0.0/18 into 2 equal /19 subnets (8,190 usable hosts each).
| # | CIDR | Network | First Usable | Last Usable | Broadcast | Hosts |
|---|---|---|---|---|---|---|
| 1 | 172.31.0.0/19 | 172.31.0.0 | 172.31.0.1 | 172.31.31.254 | 172.31.31.255 | 8,190 |
| 2 | 172.31.32.0/19 | 172.31.32.0 | 172.31.32.1 | 172.31.63.254 | 172.31.63.255 | 8,190 |
Split 172.31.0.0/18 into 4 equal /20 subnets (4,094 usable hosts each).
| # | CIDR | Network | First Usable | Last Usable | Broadcast | Hosts |
|---|---|---|---|---|---|---|
| 1 | 172.31.0.0/20 | 172.31.0.0 | 172.31.0.1 | 172.31.15.254 | 172.31.15.255 | 4,094 |
| 2 | 172.31.16.0/20 | 172.31.16.0 | 172.31.16.1 | 172.31.31.254 | 172.31.31.255 | 4,094 |
| 3 | 172.31.32.0/20 | 172.31.32.0 | 172.31.32.1 | 172.31.47.254 | 172.31.47.255 | 4,094 |
| 4 | 172.31.48.0/20 | 172.31.48.0 | 172.31.48.1 | 172.31.63.254 | 172.31.63.255 | 4,094 |
Split 172.31.0.0/18 into 8 equal /21 subnets (2,046 usable hosts each).
| # | CIDR | Network | First Usable | Last Usable | Broadcast | Hosts |
|---|---|---|---|---|---|---|
| 1 | 172.31.0.0/21 | 172.31.0.0 | 172.31.0.1 | 172.31.7.254 | 172.31.7.255 | 2,046 |
| 2 | 172.31.8.0/21 | 172.31.8.0 | 172.31.8.1 | 172.31.15.254 | 172.31.15.255 | 2,046 |
| 3 | 172.31.16.0/21 | 172.31.16.0 | 172.31.16.1 | 172.31.23.254 | 172.31.23.255 | 2,046 |
| 4 | 172.31.24.0/21 | 172.31.24.0 | 172.31.24.1 | 172.31.31.254 | 172.31.31.255 | 2,046 |
| 5 | 172.31.32.0/21 | 172.31.32.0 | 172.31.32.1 | 172.31.39.254 | 172.31.39.255 | 2,046 |
| 6 | 172.31.40.0/21 | 172.31.40.0 | 172.31.40.1 | 172.31.47.254 | 172.31.47.255 | 2,046 |
| 7 | 172.31.48.0/21 | 172.31.48.0 | 172.31.48.1 | 172.31.55.254 | 172.31.55.255 | 2,046 |
| 8 | 172.31.56.0/21 | 172.31.56.0 | 172.31.56.1 | 172.31.63.254 | 172.31.63.255 | 2,046 |
Split 172.31.0.0/18 into 16 equal /22 subnets (1,022 usable hosts each).
| # | CIDR | Network | First Usable | Last Usable | Broadcast | Hosts |
|---|---|---|---|---|---|---|
| 1 | 172.31.0.0/22 | 172.31.0.0 | 172.31.0.1 | 172.31.3.254 | 172.31.3.255 | 1,022 |
| 2 | 172.31.4.0/22 | 172.31.4.0 | 172.31.4.1 | 172.31.7.254 | 172.31.7.255 | 1,022 |
| 3 | 172.31.8.0/22 | 172.31.8.0 | 172.31.8.1 | 172.31.11.254 | 172.31.11.255 | 1,022 |
| 4 | 172.31.12.0/22 | 172.31.12.0 | 172.31.12.1 | 172.31.15.254 | 172.31.15.255 | 1,022 |
| 5 | 172.31.16.0/22 | 172.31.16.0 | 172.31.16.1 | 172.31.19.254 | 172.31.19.255 | 1,022 |
| 6 | 172.31.20.0/22 | 172.31.20.0 | 172.31.20.1 | 172.31.23.254 | 172.31.23.255 | 1,022 |
| 7 | 172.31.24.0/22 | 172.31.24.0 | 172.31.24.1 | 172.31.27.254 | 172.31.27.255 | 1,022 |
| 8 | 172.31.28.0/22 | 172.31.28.0 | 172.31.28.1 | 172.31.31.254 | 172.31.31.255 | 1,022 |
| 9 | 172.31.32.0/22 | 172.31.32.0 | 172.31.32.1 | 172.31.35.254 | 172.31.35.255 | 1,022 |
| 10 | 172.31.36.0/22 | 172.31.36.0 | 172.31.36.1 | 172.31.39.254 | 172.31.39.255 | 1,022 |
| 11 | 172.31.40.0/22 | 172.31.40.0 | 172.31.40.1 | 172.31.43.254 | 172.31.43.255 | 1,022 |
| 12 | 172.31.44.0/22 | 172.31.44.0 | 172.31.44.1 | 172.31.47.254 | 172.31.47.255 | 1,022 |
| 13 | 172.31.48.0/22 | 172.31.48.0 | 172.31.48.1 | 172.31.51.254 | 172.31.51.255 | 1,022 |
| 14 | 172.31.52.0/22 | 172.31.52.0 | 172.31.52.1 | 172.31.55.254 | 172.31.55.255 | 1,022 |
| 15 | 172.31.56.0/22 | 172.31.56.0 | 172.31.56.1 | 172.31.59.254 | 172.31.59.255 | 1,022 |
| 16 | 172.31.60.0/22 | 172.31.60.0 | 172.31.60.1 | 172.31.63.254 | 172.31.63.255 | 1,022 |