Skip to content
Tape and Square

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.

MaskDottedHex
Subnet mask255.128.0.0FF.80.00.00
Wildcard0.127.255.25500.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/82
172.16.0.0/12none: one /9 holds 8
192.168.0.0/16none: one /9 holds 128
10.100.181.0/24none: 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.

IntoSubnetsUsable each
/1024,194,302
/1142,097,150
/1281,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.

SubnetFirst usableLast usable
10.0.0.0/910.0.0.110.127.255.254
10.128.0.0/910.128.0.110.255.255.254

Check an address

Pre-filled with 10.100.181.150/9. Change the address or the prefix.

/9

Also accepts 192.168.1.130 255.255.255.192, 192.168.1.0 60 hosts or IPv6 like 2001:db8::/48.

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
PRIVATE

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

  1. 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