1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 00:42:08 +02:00
tldr/pages/linux/ipcalc.md
2021-09-02 20:33:49 +02:00

24 lines
612 B
Markdown

# ipcalc
> 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}}`