CIDR reference · IPv4

The /9 CIDR block

8,388,608 addresses, 8,388,606 usable, subnet mask 255.128.0.0.

/9 · 255.128.0.0 Open in the calculator

Rarely used on its own; a /9 is half of a /8. You meet it when splitting 10.0.0.0/8 into two halves, for example one per data centre region.

Key numbers

Prefix length/9 (9 network bits, 23 host bits)
Subnet mask255.128.0.0
Mask in binary11111111.10000000.00000000.00000000
Wildcard mask0.127.255.255
Total addresses8,388,608
Usable hosts8,388,606 (total minus network and broadcast)
Contains32,768 × /24 networks
Block sizeIncrements of 128 in octet 2

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/910.0.0.010.127.255.25510.0.0.1 – 10.127.255.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 /9Notes
AWS VPC subnetn/aNot allowed: AWS subnets must be between /16 and /28.
Azure virtual network subnet8,388,603Allowed. Azure reserves the first four addresses and the last one.
Google Cloud subnet8,388,604Allowed. Google Cloud reserves the first two and the last two addresses.

How the numbers are derived

An IPv4 address has 32 bits. A /9 uses 9 of them for the network, leaving 23 host bits, so the block has 223 = 8,388,608 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 8,388,606 for hosts. The subnet mask is 9 ones followed by 23 zeros, written in dotted decimal as 255.128.0.0; the wildcard mask 0.127.255.255 is its inverse, used in Cisco ACLs and OSPF configuration.

FAQ

How many hosts can a /9 have?

8,388,608 addresses in total, of which 8,388,606 are usable after removing the network and broadcast addresses. Cloud providers reserve a few more: 8,388,603 usable in AWS and Azure, 8,388,604 in Google Cloud.

How many /24 subnets fit in a /9?

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