The /2 subnet

A /2 subnet uses the mask 192.0.0.0 and holds 1,073,741,824 addresses, 1,073,741,822 of them usable.

Reference data last reviewed:

/2
Prefix length
192.0.0.0
Subnet mask
63.255.255.255
Wildcard mask
1,073,741,822
Usable hosts

The /2 mask is 2 network bits followed by 30 host bits, for a total of 32 bits.

2 network bits (the 1s)30 host bits (the 0s)

A /2 is a very large IPv4 block. Its mask is 192.0.0.0 and it holds 1,073,741,824 addresses, which puts it at the scale of a regional allocation or an entire private supernet rather than a single LAN.

Networks this size are almost always carved into smaller subnets before use. You will see a /2 as an aggregate route or a private-address supernet such as 10.0.0.0/8, not as a single broadcast domain.

Below you can see the exact network, broadcast, and host range for any /2 you enter, calculated instantly in your browser.

Calculate a /2 network

Accepts CIDR (192.0.2.0/24), IP + mask (192.0.2.0 255.255.255.0), or a bare IP (defaults to /24).

Network address0.0.0.0
Usable host range0.0.0.1 - 63.255.255.254
Broadcast address63.255.255.255
Usable hosts1,073,741,822
Subnet mask192.0.0.0
Wildcard mask63.255.255.255
CIDR notation0.0.0.0/2
Total addresses1,073,741,824
IP (binary)00001010.00000000.00000000.00000000
Mask (binary)11000000.00000000.00000000.00000000
Try:

Example: 10.0.0.0/2

Taking 10.0.0.0/2 as a worked example, the block breaks down like this:

Network address0.0.0.0
Usable range0.0.0.1 - 63.255.255.254
Broadcast address63.255.255.255
Total addresses1,073,741,824
Usable hosts1,073,741,822
Size64 class A blocks

A note on the example: 10.0.0.0 is in 10.0.0.0/8, private-use space under RFC 1918. The largest private range, 16,777,216 addresses. The usual choice for a big internal network. Every example on this site uses reserved space on purpose, so nothing here points at somebody's real network.

Splitting a /2 into smaller subnets

Borrowing bits from the host part doubles the number of subnets and halves the size of each one. This is what a /2 looks like at the next 4 prefix lengths.

How a /2 block divides into longer prefixes
Split intoSubnetsMaskUsable hosts each
/32224.0.0.0536,870,910
/44240.0.0.0268,435,454
/58248.0.0.0134,217,726
/616252.0.0.067,108,862

Each subnet has to start on a multiple of its own size, which is what keeps the blocks from overlapping. Working the other way, from a host count back to a prefix, is what subnet by host count is for.

Do this from the terminal

The same numbers are available as keyless JSON, and there are good local tools that need no network at all. Naming them costs nothing and is more useful than pretending this page is the only option.

curl -s https://subnetkit.dev/api/cidr/2.json | jq

# or locally, with no network at all:
ipcalc 10.0.0.0/2
sipcalc 10.0.0.0/2

ipcalc ships in most Linux distributions and sipcalc handles IPv4 and IPv6. The SubnetKit API is the one to reach for in a build step or a script that wants the same values this page shows.

Frequently asked questions

What is the subnet mask for a /2?

A /2 uses the subnet mask 192.0.0.0. Its wildcard mask, used in access lists, is 63.255.255.255.

How many hosts are in a /2 subnet?

A /2 has 1,073,741,824 total addresses and 1,073,741,822 usable hosts (the total minus the network and broadcast addresses, except for /31 and /32).

What is a /2 used for?

Very large network. It is equivalent to 64 class A blocks.

How do I calculate a /2 network?

Set the host bits to zero for the network address and to one for the broadcast address. The calculator on this page does it for any /2 block you enter.

How many /3 subnets fit in a /2?

2, each with 536,870,910 usable hosts and the mask 224.0.0.0. Every extra bit you borrow doubles the number of subnets and halves the size of each one.

Opening a port on a /2

A firewall rule needs two halves: the range and the port. The wildcard mask 63.255.255.255 matches this whole block in an access list. For the other half, the port number reference lists what each TCP and UDP port carries and whether it is encrypted by default, so you can tell what you are about to expose to 1,073,741,822 addresses.

Sources

The arithmetic on this page follows the documents below. Every number is computed from the prefix length rather than stored, and the calculation is covered by tests over all 33 prefixes.

Spotted something wrong? Tell us and it gets corrected. How the data is maintained is described on the about page.