taap.digitalnetwork engineering toolkit

/8 subnet mask: how many hosts?

Answer
255.0.0.0 /8 · 16,777,214 usable hosts

A /8 prefix is the mask 255.0.0.0. It leaves 24 host bits: 16,777,216 addresses in total and 16,777,214 usable hosts (network and broadcast excluded).

subnet4 · adjust the values
Accepts 10.0.0.1/8, 10.0.0.1 255.0.0.0 or just the IP with the prefix below.
Close-up of a network switch with ports and lights
Close-up of a network switch with ports and lights. Photo: Jonathan Castañeda / Unsplash

/8 at a glance

ItemValue
Mask255.0.0.0
Wildcard0.255.255.255
Addresses16,777,216
Usable hosts16,777,214
Mask in binary11111111.00000000.00000000.00000000
Example network10.0.0.0/8

Neighboring prefixes

PrefixMaskUsable hosts
/8255.0.0.016,777,214
/9255.128.0.08,388,606

To work out another address with this prefix, change the IP in the calculator above: you get network, broadcast and range in binary.

Step by step

  1. Host bits: 32 − 8 = 24.
  2. Addresses: 224 = 16,777,216.
  3. Usable hosts: 16,777,216 − 2 (network and broadcast) = 16,777,214.
  4. The prefix ends exactly on an octet boundary: 1 octet(s) at 255 and the rest at 0. Networks step by 1 in octet 1.

Example with 10.0.0.0/8

ItemAddress
Network10.0.0.0/8
First host10.0.0.1
Last host10.255.255.254
Broadcast10.255.255.255

Nearby prefixes

PrefixMaskUsable hosts
/8255.0.0.016,777,214
/9255.128.0.08,388,606
/10255.192.0.04,194,302
/11255.224.0.02,097,150

In practice

A /8 contains 65,536 /24 networks of 254 hosts each: that is how many typical LANs fit in the block. Going from /8 to /7 doubles the block to 33,554,432 addresses (33,554,430 usable hosts); going to /9 halves it to 8,388,606 usable hosts.

To try other values, open the IPv4 subnet calculator with these numbers already filled in.

More questions like this

Frequently asked questions

Why subtract 2 hosts?

The first address identifies the network and the last is the broadcast; neither can be assigned to a device. On /31 links (RFC 3021) both are used.

How do I configure it on Cisco?

With the dotted mask: ip address 192.168.10.1 255.0.0.0. ACLs and OSPF use the wildcard 0.255.255.255.