Subnets·IPv4 /2
IPv4
/2
192.0.0.0

/2 subnet — mask 192.0.0.0

/2 means the first 2 bits are the network and 30 are left for hosts. That is 1,073,741,824 addresses, with mask 192.0.0.0.

Addresses are 32 bits, so the mask is written in four dotted parts: 255.255.255.0.

Prefix
/2
Subnet mask
192.0.0.0
Wildcard
63.255.255.255
Mask in hex
C0000000
Host bits
30
Addresses
1,073,741,824
Usable hosts
1,073,741,822
/24 networks inside
4,194,304
Nibble boundary
No

Seen as bits

The leading ones are the network part and the trailing zeros the host part. Add one more one and the network splits in two, halving the addresses.

Prefixes either side

How to read this

  • /24 means the first 24 bits are the network; the remaining 8 hold the addresses inside it.
  • Each extra bit splits the network in two and halves the addresses.
  • Usable addresses are normally the total minus two — the network and broadcast addresses.
  • IPv6 has no broadcast, so nothing is subtracted. One network is conventionally a /64.

Frequently asked questions

Q. How many addresses are in a /2?

1,073,741,824, of which 1,073,741,822 can actually be handed out.

Q. What is the subnet mask for /2?

192.0.0.0, with wildcard 63.255.255.255.

Q. How many /24 networks fit in a /2?

4,194,304.

Q. How many host bits are there?

30. Each extra network bit halves the addresses.