Toolman

/6 subnet

A /6 has a subnet mask of 252.0.0.0 and 67,108,862 usable hosts.

The numbers

Prefix length/6
Subnet mask252.0.0.0
Wildcard mask3.255.255.255
Network bits6
Host bits26
Total addresses67,108,864
Usable hosts67,108,862
/24 networks contained262,144

Where a /6 is used

A routing aggregate rather than an assignment.

Why the usable count is what it is

A /6 leaves 26 bits for hosts, giving 226 = 67,108,864 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 67,108,862.

Binary layout

mask   11111100.00000000.00000000.00000000
       ^^^^^^                          
       6 network bits, 26 host bits

Splitting and combining

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

Frequently asked questions

How many hosts are in a /6?

67,108,864 addresses in total, of which 67,108,862 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 /6?

252.0.0.0. The prefix length is the count of leading 1 bits in the mask, so /6 is 6 ones followed by 26 zeros.

What is the wildcard mask for /6?

3.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 /6 compare to a /24?

A /6 is 262,144 times larger than a /24 — it contains 262,144 of them.

Other prefix lengths

All prefix lengths · Subnet calculator