Calculate networks, masks and host ranges quickly from the terminal and remove guesswork. 28.03.2026 | reading time: 2 min Run `ipcalc` to turn an IP or CIDR into clear network information; it prints the network address, broadcast, netmask, wildcard, binary representation and host range so you avoid manual bit math and mistakes. Live example Run the following in a shell to inspect an address and CIDR, you will get a compact, human-readable breakdown: ```bash $ ipcalc 192.168.1.10/24 Address: 192.168.1.10 11000000.10101000.00000001.00001010 Netmask: 255.255.255.0 = 24 11111111.11111111.11111111.00000000 Wildcard: 0.0.0.255 00000000.00000000.00000000.11111111 => Network: 192.168.1.0/24 11000000.10101000.00000001.00000000 HostMin: 192.168.1.1 HostMax: 192.168.1.254 Broadcast: 192.168.1.255 Hosts/Net: 254 ``` Beyond the basics Use `ipcalc` to convert between CIDR and dotted netmasks, inspect bitwise representations for teaching or documentation, and embed it in scripts to compute ranges automatically; note that implementations vary by distribution and some provide IPv6 support while others focus on IPv4, so consult your man page for precise flags. Tools to pair with ipcalc For richer IPv6 math or more scripting output try `sipcalc`, for active network discovery use `nmap`, and for applying addresses to interfaces rely on the `ip` tool from `iproute2` — together these cover calculation, discovery and configuration. Learn, then prove it Mastering IP basics with small tools like `ipcalc` speeds troubleshooting and design; deepen that skill with systematic study and consider certification paths such as CompTIA Linux+ or LPIC-1, and explore intensive exam preparation at bitsandbytes.academy to convert knowledge into a credential. Join Bits & Bytes Academy First class LINUX exam preparation. network utilities troubleshooting scripting