1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 11:06:00 +02:00

ipcalc: add page

This commit is contained in:
Raymond Douglas 2018-08-31 11:41:11 -07:00 committed by Agniva De Sarker
parent 9f74426458
commit eba372ca23

23
pages/linux/ipcalc.md Normal file
View file

@ -0,0 +1,23 @@
# 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}}`