N-01 · Subnet · /9
/9 subnet
A /9 network keeps 9 of the 32 address bits for the network and leaves 23 for hosts. Its mask, host count, the blocks it fits in and example networks, all worked out below.
Short answer
- Subnet mask
- 255.128.0.0Wildcard 0.127.255.255
- Usable hosts
- 8,388,6068,388,608 addresses in total
2^23 = 8,388,608 addresses. The first is the network address and the last the broadcast, so 8,388,606 can go to devices.
The /9 mask in binary and hex
9 one bits, then 23 zero bits. The wildcard is the mask inverted.
| Mask | Dotted | Hex |
|---|---|---|
| Subnet mask | 255.128.0.0 | FF.80.00.00 |
| Wildcard | 0.127.255.255 | 00.7F.FF.FF |
The mask ends inside the second octet, at 128 (10000000). That leaves 7 host bits in the octet, so /9 networks start every 128 in it: 0, 128 and so on. Cisco access lists take the wildcard form, 0.127.255.255, where a 1 bit means “any value” (Cisco document 23602).
RFC 1878's table lists /9 as FF.80.00.00 hex, 8 M addresses, equal to 128 B in the old class terms. RFC 1878's host tables start at /17. The 8,388,606 usable figure is the same 2^23 − 2 rule, and Cisco's host and subnet table lists it.
How many /9 subnets fit
The three private ranges (RFC 1918) and one /24.
| Block | /9 subnets in it |
|---|---|
| 10.0.0.0/8 | 2 |
| 172.16.0.0/12 | none: one /9 holds 8 |
| 192.168.0.0/16 | none: one /9 holds 128 |
| 10.100.181.0/24 | none: one /9 holds 32,768 |
10.0.0.0/8 holds 2 /9 subnets. A /9 is larger than 172.16.0.0/12 and 192.168.0.0/16, so a private network of this size has to come from 10.0.0.0/8. One /9 spans 32,768 /24s.
Splitting a /9
Each extra prefix bit halves the block.
| Into | Subnets | Usable each |
|---|---|---|
| /10 | 2 | 4,194,302 |
| /11 | 4 | 2,097,150 |
| /12 | 8 | 1,048,574 |
Two /10 subnets hold 8,388,604 usable addresses between them, 2 fewer than one /9: each half gives up its own network and broadcast address.
/9 subnets of 10.0.0.0/8
10.0.0.0/8 holds 2 of them. The row in bold holds 10.100.181.150.
| Subnet | First usable | Last usable |
|---|---|---|
| 10.0.0.0/9 | 10.0.0.1 | 10.127.255.254 |
| 10.128.0.0/9 | 10.128.0.1 | 10.255.255.254 |
Check an address
Pre-filled with 10.100.181.150/9. Change the address or the prefix.
Result
10.0.0.0/9
8,388,606 usable hosts
- Network
- 10.0.0.0
- First usable
- 10.0.0.1
- Last usable
- 10.127.255.254
- Broadcast
- 10.127.255.255
- Subnet mask
- 255.128.0.0
- Wildcard mask
- 0.127.255.255
- Total addresses
- 8,388,608
Inside 10.0.0.0/8, a private range (RFC 1918). Not routable on the public internet.
Binary view
- Address · 10.100.181.150
- 00001010.01100100.10110101.10010110
- Mask · 255.128.0.0
- 11111111.10000000.00000000.00000000
- Network · 10.0.0.0
- 00001010.00000000.00000000.00000000
Bold bits are fixed for the network; orange bits number the hosts.
10.0.0.0/8 split into /9
- 10.0.0.0/9.0.0.1–.127.255.254 ◂
/9 next to /8 and /10
One bit shorter, a /8 (255.0.0.0) has 16,777,216 addresses and 16,777,214 usable, 8,388,608 more than a /9. One bit longer, /10 (255.192.0.0) has 4,194,304 addresses and 4,194,302 usable. /8 subnet · /10 subnet
Ask the calculator for a host count and it answers /9 for 4,194,303 to 8,388,606 hosts: typing "10.0.0.0 8,388,606 hosts" gives this size, one more host gives a /8.
Worked example
Take 10.100.181.150/9. The mask ends in the second octet. There the address is 100 = 01100100 and the mask 128 = 10000000; AND keeps the first 1 bit: 00000000 = 0. The octets after it become 0, so the network is 10.0.0.0. OR the wildcard 0.127.255.255 onto it to set every host bit: 10.127.255.255, the broadcast.
Devices use 10.0.0.1 through 10.127.255.254: 8,388,606 addresses. 10.100.181.150 is number 6,600,086 of them. In 10.0.0.0/8 this is subnet 1 of 2.
References
- RFC 4632, Classless Inter-domain Routing (CIDR), §3.1: prefix lengths and block sizes.
- RFC 950, Internet Standard Subnetting Procedure: subnet masks.
- RFC 1878, Variable Length Subnet Table For IPv4, the prefix table.
- Cisco Tech Note 13790, Understand Host and Subnet Quantities: usable hosts per prefix.
- RFC 1918, Address Allocation for Private Internets: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16.
Other prefixes
Related tools
- Subnet calculatorNetwork, broadcast, host range, masks and a binary view from any IPv4 or IPv6 address and prefix.
- CIDR calculatorTurn IPv4 or IPv6 ranges into the fewest CIDR blocks, merge a list, and check it for overlaps.
- VLAN plannerCarve a parent block into right-sized subnets with VLAN IDs, then export CSV or Markdown.