Toolman

/2 subnet

A /2 has a subnet mask of 192.0.0.0 and 1,073,741,822 usable hosts.

The numbers

Prefix length/2
Subnet mask192.0.0.0
Wildcard mask63.255.255.255
Network bits2
Host bits30
Total addresses1,073,741,824
Usable hosts1,073,741,822
/24 networks contained4,194,304

Where a /2 is used

A quarter of the address space. Not allocated as a unit; you meet it only as an aggregate in routing discussions.

Why the usable count is what it is

A /2 leaves 30 bits for hosts, giving 230 = 1,073,741,824 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 1,073,741,822.

Binary layout

mask   11000000.00000000.00000000.00000000
       ^^                              
       2 network bits, 30 host bits

Splitting and combining

PrefixUsable hostsRelationship
Twice the size/12,147,483,646Two /2 networks combine into one /1
This network/21,073,741,822
Half the size/3536,870,910One /2 splits into two /3 networks
A quarter/4268,435,454Four /4 networks fit in a /2

Frequently asked questions

How many hosts are in a /2?

1,073,741,824 addresses in total, of which 1,073,741,822 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 /2?

192.0.0.0. The prefix length is the count of leading 1 bits in the mask, so /2 is 2 ones followed by 30 zeros.

What is the wildcard mask for /2?

63.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 /2 compare to a /24?

A /2 is 4,194,304 times larger than a /24 — it contains 4,194,304 of them.

Other prefix lengths

All prefix lengths · Subnet calculator