Toolman

/7 subnet

A /7 has a subnet mask of 254.0.0.0 and 33,554,430 usable hosts.

The numbers

Prefix length/7
Subnet mask254.0.0.0
Wildcard mask1.255.255.255
Network bits7
Host bits25
Total addresses33,554,432
Usable hosts33,554,430
/24 networks contained131,072

Where a /7 is used

Occasionally used to summarise two adjacent /8s in a routing table.

Why the usable count is what it is

A /7 leaves 25 bits for hosts, giving 225 = 33,554,432 addresses. Two of those cannot be assigned to a machine: the one with all host bits set to zero is the network address, which names the subnet itself, and the one with all host bits set to one is the broadcast address. That leaves 33,554,430.

Binary layout

mask   11111110.00000000.00000000.00000000
       ^^^^^^^                         
       7 network bits, 25 host bits

Splitting and combining

PrefixUsable hostsRelationship
Twice the size/667,108,862Two /7 networks combine into one /6
This network/733,554,430
Half the size/816,777,214One /7 splits into two /8 networks
A quarter/98,388,606Four /9 networks fit in a /7

Frequently asked questions

How many hosts are in a /7?

33,554,432 addresses in total, of which 33,554,430 are usable. The first is the network address and the last is the broadcast address, so two are always lost.

What is the subnet mask for /7?

254.0.0.0. The prefix length is the count of leading 1 bits in the mask, so /7 is 7 ones followed by 25 zeros.

What is the wildcard mask for /7?

1.255.255.255 — the bitwise inverse of the subnet mask. Cisco access lists and OSPF network statements take the wildcard rather than the mask; a zero bit must match and a one bit is ignored.

How does a /7 compare to a /24?

A /7 is 131,072 times larger than a /24 — it contains 131,072 of them.

Other prefix lengths

All prefix lengths · Subnet calculator