IPv4 reference

IPv4 /4 prefix

IPv4 /4 prefix corresponds to /4, with 268,435,456 total addresses and 268,435,454 usable hosts.

Example network details for 0.0.0.0/4

CIDR
0.0.0.0/4
Prefix
/4
Network address
0.0.0.0
Broadcast address
15.255.255.255
First usable address
0.0.0.1
Last usable address
15.255.255.254
Subnet mask
240.0.0.0
Wildcard mask
15.255.255.255
Total addresses
268,435,456
Usable hosts
268,435,454

Binary masks

Subnet: 11110000.00000000.00000000.00000000

Wildcard: 00001111.11111111.11111111.11111111

The first 4 bits identify the network. The remaining 28 bits identify addresses inside it.

First subdivision

Dividing this network into 4 equal blocks produces:

Continue working with /4

What this result means

A /4 IPv4 network contains 268,435,456 consecutive addresses. The network and broadcast addresses are reserved in traditional LAN use, leaving 268,435,454 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.