1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/ipcalc.md

24 lines
578 B
Markdown
Raw Normal View History

2018-08-31 11:41:11 -07:00
# ipcalc
2018-09-01 16:29:13 -07:00
> Perform simple operations and calculations on IP addresses and networks.
2018-08-31 11:41:11 -07:00
2018-09-01 16:29:13 -07:00
- Show information about an address or network:
2018-08-31 11:41:11 -07:00
`ipcalc {{ip_address}} {{subnet_mask}}`
2018-09-01 16:29:13 -07:00
- Show information about an address or network in CIDR notation:
2018-08-31 11:41:11 -07:00
`ipcalc {{ip_address}}/{{masked_bits}}`
2018-09-01 16:29:13 -07:00
- Show the broadcast address of an address or network:
2018-08-31 11:41:11 -07:00
`ipcalc -b {{ip_address}}/{{masked_bits}}`
2018-09-01 16:29:13 -07:00
- Show the network address of provided IP address and netmask:
2018-08-31 11:41:11 -07:00
`ipcalc -n {{ip_address}}/{{masked_bits}}`
2018-09-01 16:29:13 -07:00
- Display geographic information about a given IP address:
2018-08-31 11:41:11 -07:00
`ipcalc -g {{ip_address}}`