1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-03-28 21:16:20 +01:00
tldr/pages/linux/ipcalc.md
2018-09-04 22:42:18 +05:30

555 B

ipcalc

Perform simple operations/calculations on IP addresses and networks.

  • Show information about an address/network:

ipcalc {{ip_address}} {{subnet_mask}}

  • Show information about an address/network in CIDR notation:

ipcalc {{ip_address}}/{{masked_bits}}

  • Show broadcast address of an address/network:

ipcalc -b {{ip_address}}/{{masked_bits}}

  • Show network address of provided IP address and netmask:

ipcalc -n {{ip_address}}/{{masked_bits}}

  • Display geographic information of provided IP address:

ipcalc -g {{ip_address}}