mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
ipcalc: merge to common (#16232)
This commit is contained in:
parent
5ada20914f
commit
12974671c1
2 changed files with 10 additions and 30 deletions
|
@ -1,6 +1,6 @@
|
|||
# ipcalc
|
||||
|
||||
> A tool to calculate IP information (subnet, broadcast, host range) from an IP address and netmask.
|
||||
> 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:
|
||||
|
@ -9,16 +9,20 @@
|
|||
|
||||
- Display network info using CIDR notation:
|
||||
|
||||
`ipcalc {{192.168.0.1/24}}`
|
||||
`ipcalc {{192.168.0.1}}/{{24}}`
|
||||
|
||||
- Display network info using a separate netmask:
|
||||
- Display network info using a dotted decimal netmask:
|
||||
|
||||
`ipcalc {{192.168.0.1}} {{255.255.255.0}}`
|
||||
|
||||
- Show only CIDR notation output:
|
||||
- Suppress bitwise output:
|
||||
|
||||
`ipcalc {{[-c|--class]}} {{192.168.0.1/24}}`
|
||||
`ipcalc {{[-b|--nobinary]}} {{192.168.0.1}}`
|
||||
|
||||
- Split a network into specified sized blocks:
|
||||
|
||||
`ipcalc {{[-s|--split]}} {{size1 size2 size3 ...}} {{192.168.0.1}}`
|
||||
|
||||
- Show version information:
|
||||
|
||||
`ipcalc --version`
|
||||
`ipcalc {{[-v|--version]}}`
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
# 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}}`
|
Loading…
Add table
Reference in a new issue