mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-07 20:55:25 +02:00
25 lines
527 B
Markdown
25 lines
527 B
Markdown
![]() |
# ipcalc
|
||
|
|
||
|
> A tool to calculate IP information (subnet, broadcast, host range) from an IP address and netmask.
|
||
|
> More information: <https://manned.org/ipcalc>.
|
||
|
|
||
|
- Display network info for an IP address:
|
||
|
|
||
|
`ipcalc {{192.168.0.1}}`
|
||
|
|
||
|
- Display network info using CIDR notation:
|
||
|
|
||
|
`ipcalc {{192.168.0.1/24}}`
|
||
|
|
||
|
- Display network info using a separate netmask:
|
||
|
|
||
|
`ipcalc {{192.168.0.1}} {{255.255.255.0}}`
|
||
|
|
||
|
- Show only CIDR notation output:
|
||
|
|
||
|
`ipcalc {{[-c|--class]}} {{192.168.0.1/24}}`
|
||
|
|
||
|
- Show version information:
|
||
|
|
||
|
`ipcalc --version`
|