Perform simple operations and calculations on IP addresses and networks.
# To show information about an address or network with a given subnet mask:
ipcalc <1.2.3.4> <255.255.255.0>
# To show information about an address or network in CIDR notation:
ipcalc <1.2.3.4>/<24>
# To show the broadcast address of an address or network:
ipcalc -b <1.2.3.4>/<30>
# To show the network address of provided IP address and netmask:
ipcalc -n <1.2.3.4>/<24>
# To display geographic information about a given IP address:
ipcalc -g <1.2.3.4>