/17 subnet
A /17 has a subnet mask of 255.255.128.0 and 32,766 usable hosts.
The numbers
| Prefix length | /17 |
| Subnet mask | 255.255.128.0 |
| Wildcard mask | 0.0.127.255 |
| Network bits | 17 |
| Host bits | 15 |
| Total addresses | 32,768 |
| Usable hosts | 32,766 |
| /24 networks contained | 128 |
Where a /17 is used
Half a /16 — a reasonable size for one availability zone inside a VPC.
Why the usable count is what it is
A /17 leaves 15 bits for hosts, giving 215 = 32,768 addresses. Two of those cannot be assigned to a machine: the one with all host bits set to zero is the network address, which names the subnet itself, and the one with all host bits set to one is the broadcast address. That leaves 32,766.
Binary layout
mask 11111111.11111111.10000000.00000000
^^^^^^^^^^^^^^^^^
17 network bits, 15 host bits
Splitting and combining
| Prefix | Usable hosts | Relationship | |
|---|---|---|---|
| Twice the size | /16 | 65,534 | Two /17 networks combine into one /16 |
| This network | /17 | 32,766 | — |
| Half the size | /18 | 16,382 | One /17 splits into two /18 networks |
| A quarter | /19 | 8,190 | Four /19 networks fit in a /17 |
Frequently asked questions
How many hosts are in a /17?
32,768 addresses in total, of which 32,766 are usable. The first is the network address and the last is the broadcast address, so two are always lost.
What is the subnet mask for /17?
255.255.128.0. The prefix length is the count of leading 1 bits in the mask, so /17 is 17 ones followed by 15 zeros.
What is the wildcard mask for /17?
0.0.127.255 — the bitwise inverse of the subnet mask. Cisco access lists and OSPF network statements take the wildcard rather than the mask; a zero bit must match and a one bit is ignored.
How does a /17 compare to a /24?
A /17 is 128 times larger than a /24 — it contains 128 of them.