IPv4 reference
IPv4 /12 prefix
IPv4 /12 prefix corresponds to /12, with 1,048,576 total addresses and 1,048,574 usable hosts.
Example network details for 0.0.0.0/12
- CIDR
- 0.0.0.0/12
- Prefix
- /12
- Network address
- 0.0.0.0
- Broadcast address
- 0.15.255.255
- First usable address
- 0.0.0.1
- Last usable address
- 0.15.255.254
- Subnet mask
- 255.240.0.0
- Wildcard mask
- 0.15.255.255
- Total addresses
- 1,048,576
- Usable hosts
- 1,048,574
Binary masks
Subnet: 11111111.11110000.00000000.00000000
Wildcard: 00000000.00001111.11111111.11111111
The first 12 bits identify the network. The remaining 20 bits identify addresses inside it.
First subdivision
Dividing this network into 4 equal blocks produces:
0.0.0.0/14— 262,142 usable hosts0.4.0.0/14— 262,142 usable hosts0.8.0.0/14— 262,142 usable hosts0.12.0.0/14— 262,142 usable hosts
Continue working with /12
What this result means
A /12 IPv4 network contains 1,048,576 consecutive addresses. The network and broadcast addresses are reserved in traditional LAN use, leaving 1,048,574 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.