/18 subnet
A /18 fixes the first 18 bits of the address and leaves 14 for hosts. That gives 16,384 addresses and subnet mask 255.255.192.0.
Example: 192.168.0.0/18
- CIDR block
- 192.168.0.0/18
- Network address
- 192.168.0.0
- Broadcast address
- 192.168.63.255
- Usable host range
- 192.168.0.1 – 192.168.63.254
- Total addresses
- 16,384
- Usable hosts
- 16,382
- Subnet mask
- 255.255.192.0
- Wildcard mask
- 0.0.63.255
- Mask in binary
- 11111111.11111111.11000000.00000000
Check another address in the subnet calculator.
What fits inside a /18
Splitting 192.168.0.0/18 into /20 blocks starts with 192.168.0.0/20, 192.168.16.0/20, 192.168.32.0/20, 192.168.48.0/20.
How many fit in a larger block
- A /8 holds 1,024 blocks of /18.
- A /16 holds 4 blocks of /18.
A /18 in the cloud
| Provider | Usable addresses |
|---|---|
| AWS VPC | 16,379 |
| Azure Virtual Network | 16,379 |
| Google Cloud VPC | 16,380 |
Each provider reserves addresses in every subnet: AWS VPC 5, Azure Virtual Network 5, Google Cloud VPC 4 (primary range).
Questions
How many hosts are in a /18 subnet?
A /18 has 16,384 addresses. Two are reserved for the network and broadcast addresses, which leaves 16,382 usable hosts.
What is the subnet mask for a /18?
The subnet mask for a /18 is 255.255.192.0, written in binary as 11111111.11111111.11000000.00000000. The wildcard mask is 0.0.63.255.
What is an example of a /18 range?
192.168.0.0/18 runs from 192.168.0.0 to 192.168.63.255. Hosts use 192.168.0.1 to 192.168.63.254, and 192.168.63.255 is the broadcast address.