Toolman

/17 subnet

A /17 has a subnet mask of 255.255.128.0 and 32,766 usable hosts.

The numbers

Prefix length/17
Subnet mask255.255.128.0
Wildcard mask0.0.127.255
Network bits17
Host bits15
Total addresses32,768
Usable hosts32,766
/24 networks contained128

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

PrefixUsable hostsRelationship
Twice the size/1665,534Two /17 networks combine into one /16
This network/1732,766
Half the size/1816,382One /17 splits into two /18 networks
A quarter/198,190Four /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.

Other prefix lengths

All prefix lengths · Subnet calculator