Subnet mask 255.255.192.0
/18
255.255.192.0 · 16,382 usable hosts
| CIDR prefix | /18 |
| Subnet mask | 255.255.192.0 |
| Wildcard mask | 0.0.63.255 |
| Binary | 11111111.11111111.11000000.00000000 |
| Total addresses | 16,384 |
| Usable hosts | 16,382 |
How many hosts it holds
16,384 addresses, of which 16,382 can be assigned to hosts — the first is the network address and the last is the broadcast, and neither goes on an interface.
Reading the mask
A subnet mask is 18 one-bits followed by 14 zero-bits, written as four decimal octets. The ones mark the part of the address that identifies the network and the zeros mark the part that identifies the host, which is why the mask is always a solid run of ones — a mask with a gap in it would split the host part in two and is not valid.
11111111.11111111.11000000.00000000
255.255.192.0
The prefix length is simply the count of those ones, so 255.255.192.0 is /18 and nothing has to be calculated to convert between them.
The wildcard, and where it turns up
Cisco access lists and OSPF network statements take a wildcard mask rather than a subnet mask — the same value with every bit inverted, 0.0.63.255 here. It trips people up because the two look alike and mean opposite things: in a subnet mask a one means "this bit is the network", and in a wildcard a one means "ignore this bit".
Frequently asked questions
What CIDR prefix is 255.255.192.0?
255.255.192.0 is /18. The mask has 18 bits set, and the prefix length is that count.
How many hosts does 255.255.192.0 allow?
16,384 addresses in total and 16,382 usable, after the network and broadcast addresses are taken out.
What is the wildcard mask for 255.255.192.0?
0.0.63.255 — the mask with every bit flipped. Cisco access lists and OSPF network statements take the wildcard rather than the mask, which is the usual reason to want it.
Other masks
- 255.255.224.0 — /19
- 255.255.240.0 — /20
- 255.255.248.0 — /21
- 255.255.252.0 — /22
- 255.255.254.0 — /23
- 255.255.255.0 — /24
- 255.255.255.128 — /25
- 255.255.255.192 — /26
- 255.255.255.224 — /27
- 255.255.255.240 — /28
- 255.255.255.248 — /29
- 255.255.255.252 — /30