Subnet Math With ipcalc
Work out network, broadcast, host range and mask for a CIDR block.
01Command
$ ipcalc 192.168.1.10/2402What it does
ipcalc takes an address with a prefix and reports the network address, netmask, broadcast, usable host range and class, optionally with colored output. It is much less error-prone than doing subnet math by hand.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- ipcalcEvidence: Debian packages ipcalc, a subnet calculator that prints network details for an address.
- Debian package: ipcalcEvidence: Debian packages ipcalc, a subnet calculator that prints network details for an address.
Last verified: 2026-09-22 · Category: Network
06Related solutions
One command that prints every interface with its state and IPv4/IPv6 addresses in a short table — the modern, memorable replacement for digging through `ifconfig` or the verbose `ip addr` output.
The classic forgotten-syntax command: `traceroute` shows every router between you and a destination plus the round-trip time of probes to each hop.
Show every TCP and UDP socket in listening state with the owning process name and PID — the modern replacement for netstat.