Toolman

/0 subnet

A /0 has a subnet mask of 0.0.0.0 and 4,294,967,294 usable hosts.

The numbers

Prefix length/0
Subnet mask0.0.0.0
Wildcard mask255.255.255.255
Network bits0
Host bits32
Total addresses4,294,967,296
Usable hosts4,294,967,294
/24 networks contained16,777,216

Where a /0 is used

The default route. 0.0.0.0/0 matches every address, which is why it means "anywhere" in a firewall rule and "send it to the gateway" in a routing table.

Why the usable count is what it is

A /0 leaves 32 bits for hosts, giving 232 = 4,294,967,296 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 4,294,967,294.

Binary layout

mask   00000000.00000000.00000000.00000000
                                       
       0 network bits, 32 host bits

Splitting and combining

PrefixUsable hostsRelationship
This network/04,294,967,294
Half the size/12,147,483,646One /0 splits into two /1 networks
A quarter/21,073,741,822Four /2 networks fit in a /0

Frequently asked questions

How many hosts are in a /0?

4,294,967,296 addresses in total, of which 4,294,967,294 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 /0?

0.0.0.0. The prefix length is the count of leading 1 bits in the mask, so /0 is 0 ones followed by 32 zeros.

What is the wildcard mask for /0?

255.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 /0 compare to a /24?

A /0 is 16,777,216 times larger than a /24 — it contains 16,777,216 of them.

Other prefix lengths

All prefix lengths · Subnet calculator