/0 Subnet Mask: 0.0.0.0
A /0 prefix fixes the first 0 bits of the address as the network, leaving 32 bits for hosts. That gives 4,294,967,296 addresses, of which 4,294,967,294 can be assigned to hosts.
| CIDR notation | /0 |
| Subnet mask | 0.0.0.0 |
| Wildcard mask | 255.255.255.255 |
| Binary mask | 00000000.00000000.00000000.00000000 |
| Hex mask | 0x00000000 |
| Total addresses | 4,294,967,296 |
| Usable hosts | 4,294,967,294 |
Example: 0.0.0.0/0
- Network address: 0.0.0.0
- First usable host: 0.0.0.1
- Last usable host: 255.255.255.254
- Broadcast address: 255.255.255.255
When to use a /0 subnet
The entire IPv4 address space. 0.0.0.0/0 means "any address" and is used for default routes and allow-all firewall rules.
Frequently Asked Questions
What is the subnet mask for /0?
The subnet mask for /0 is 0.0.0.0, and its wildcard (inverse) mask is 255.255.255.255.
How many hosts are in a /0?
A /0 contains 4,294,967,296 addresses. Subtracting the network and broadcast addresses leaves 4,294,967,294 usable hosts.