IPv4 reference

IPv4 /2 prefix

IPv4 /2 prefix corresponds to /2, with 1,073,741,824 total addresses and 1,073,741,822 usable hosts.

Example network details for 0.0.0.0/2

CIDR
0.0.0.0/2
Prefix
/2
Network address
0.0.0.0
Broadcast address
63.255.255.255
First usable address
0.0.0.1
Last usable address
63.255.255.254
Subnet mask
192.0.0.0
Wildcard mask
63.255.255.255
Total addresses
1,073,741,824
Usable hosts
1,073,741,822

Binary masks

Subnet: 11000000.00000000.00000000.00000000

Wildcard: 00111111.11111111.11111111.11111111

The first 2 bits identify the network. The remaining 30 bits identify addresses inside it.

First subdivision

Dividing this network into 4 equal blocks produces:

Continue working with /2

What this result means

A /2 IPv4 network contains 1,073,741,824 consecutive addresses. The network and broadcast addresses are reserved in traditional LAN use, leaving 1,073,741,822 usable host addresses.

Use the wildcard mask in access lists and routing policy where a device expects inverse mask bits. Always verify vendor syntax before applying generated values to production equipment.