Home Net Guide

Home / Subnet calculator / /0

/0 subnet: mask 0.0.0.0

A /0 network holds 4,294,967,296 addresses: every IPv4 address there is. It is a route or rule that means anywhere, not a network that devices sit on. Its subnet mask is 0.0.0.0.

Prefix length (CIDR)
/0
Subnet mask
0.0.0.0
Wildcard mask
255.255.255.255
Mask in binary
00000000.00000000.00000000.00000000
Network bits / host bits
0 / 32
Total addresses
4,294,967,296 (2 to the power of 32)
Usable host addresses
Not applicable: a /0 matches every address and is not a network of devices
Contains
16,777,216 networks of size /24

What a /0 is used for

0.0.0.0/0 means every IPv4 address. You meet it as the default route in a routing table (send anything with no more specific route this way), as "anywhere" in a firewall rule, and in VPN settings, where allowing 0.0.0.0/0 sends all of your traffic through the tunnel.

Worked example: which /0 is 100.20.1.130 in?

There is only one /0 and it contains every address, so 100.20.1.130, like any other address, is in 0.0.0.0/0.

Network
0.0.0.0/0
Addresses
0.0.0.0 to 255.255.255.255
Broadcast address
None: a /0 has no broadcast address

Open this example in the subnet calculator to see it bit by bit, or to try your own address.

The only /0

NetworkUsable rangeBroadcast
0.0.0.0/00.0.0.0 to 255.255.255.255None

One size up and one size down

Each bit removed from the prefix doubles a network, and each bit added halves it. A /1 is half the size, with 2,147,483,646 usable addresses. The table of every prefix size compares them all.