~ $ devkit:cidr-calc
CIDR Calculator
Compute the network, broadcast and usable host range for any IPv4 CIDR block.
Network
—
Broadcast
—
Subnet mask
—
Wildcard mask
—
First usable host
—
Last usable host
—
Usable hosts
—
Total addresses
—
How to use CIDR Calculator
- Enter an IPv4 address and prefix length, such as 192.168.1.10/24.
- Choose Calculate to see the network, mask, broadcast and usable address range.
Example
Input: 192.168.1.10/24 Network: 192.168.1.0 Broadcast: 192.168.1.255 Usable hosts: 254
Details and limitations
IPv4 only, with prefix lengths from 0 through 32. /31 uses the two-address point-to-point convention, and /32 represents a single host. Actual address usability also depends on network configuration.