ipcalc

Perform simple operations and calculations on IP addresses and networks. More information: <https://manned.org/ipcalc>.

Install

All systems
curl cmd.cat/ipcalc.sh
Debian Debian
apt-get install ipcalc
Ubuntu
apt-get install ipcalc
Alpine
apk add ipcalc
Arch Arch Linux
pacman -S ipcalc
image/svg+xml Kali Linux
apt-get install ipcalc
CentOS
yum install ipcalc
Fedora
dnf install ipcalc
Windows (WSL2)
sudo apt-get update sudo apt-get install ipcalc
OS X
brew install ipcalc
Raspbian
apt-get install ipcalc
Docker
docker run cmd.cat/ipcalc ipcalc powered by Commando

Perform simple operations and calculations on IP addresses and networks. More information: <https://manned.org/ipcalc>.

  • Show information about an address or network with a given subnet mask:
    ipcalc 1.2.3.4 255.255.255.0
  • Show information about an address or network in CIDR notation:
    ipcalc 1.2.3.4/24
  • Show the broadcast address of an address or network:
    ipcalc -b 1.2.3.4/30
  • Show the network address of provided IP address and netmask:
    ipcalc -n 1.2.3.4/24
  • Display geographic information about a given IP address:
    ipcalc -g 1.2.3.4

© tl;dr; authors and contributors