CIDR reference · IPv4

The /17 CIDR block

32,768 addresses, 32,766 usable, subnet mask 255.255.128.0.

/17 · 255.255.128.0 Open in the calculator

Half a /16. A common size for a VPC that should never grow past 32,768 addresses, or for splitting a /16 between two availability zones.

Key numbers

Prefix length/17 (17 network bits, 15 host bits)
Subnet mask255.255.128.0
Mask in binary11111111.11111111.10000000.00000000
Wildcard mask0.0.127.255
Total addresses32,768
Usable hosts32,766 (total minus network and broadcast)
Contains128 × /24 networks
Block sizeIncrements of 128 in octet 3

Example ranges

Private (RFC 1918) blocks of this size. Click one to open it in the calculator.

BlockFirst addressLast addressUsable hosts
10.0.0.0/1710.0.0.010.0.127.25510.0.0.1 – 10.0.127.254
172.16.0.0/17172.16.0.0172.16.127.255172.16.0.1 – 172.16.127.254
192.168.0.0/17192.168.0.0192.168.127.255192.168.0.1 – 192.168.127.254

Usable addresses in the cloud

Cloud providers reserve a few addresses in every subnet for the router, DNS and future use, so the usable count is lower than the formula gives.

ProviderUsable in a /17Notes
AWS VPC subnet32,763Allowed (/16 to /28). AWS reserves the first four addresses and the last one.
Azure virtual network subnet32,763Allowed. Azure reserves the first four addresses and the last one.
Google Cloud subnet32,764Allowed. Google Cloud reserves the first two and the last two addresses.

How the numbers are derived

An IPv4 address has 32 bits. A /17 uses 17 of them for the network, leaving 15 host bits, so the block has 215 = 32,768 addresses. The first address (all host bits 0) is the network address and the last (all host bits 1) is the broadcast address, which leaves 32,766 for hosts. The subnet mask is 17 ones followed by 15 zeros, written in dotted decimal as 255.255.128.0; the wildcard mask 0.0.127.255 is its inverse, used in Cisco ACLs and OSPF configuration.

FAQ

How many hosts can a /17 have?

32,768 addresses in total, of which 32,766 are usable after removing the network and broadcast addresses. Cloud providers reserve a few more: 32,763 usable in AWS and Azure, 32,764 in Google Cloud.

How many /24 subnets fit in a /17?

128. Each step of the prefix length halves or doubles the block, so a /17 contains 2^(24 − 17) = 128 networks of /24 size.