How to calculate
Use the prefix length to separate the network and host bits. Set every host bit to zero for the first address and to one for the last address. Count the addresses as two raised to the number of host bits.
Worked example
Use IPv4 or IPv6 address with optional CIDR suffix 192.168.1.130/26. The result is 192.168.1.128/26.
Input and result notes
Enter a prefix with a slash in the address field or supply a separate prefix or IPv4 dotted mask. An IPv4 /31 is treated as an RFC 3021 point-to-point link. IPv4 usable counts follow host-bit rules and can include special-use addresses. IPv6 results count the whole block.