diff --git a/pages/common/ipcalc.md b/pages/common/ipcalc.md index f796d0193f..9c6159e0cd 100644 --- a/pages/common/ipcalc.md +++ b/pages/common/ipcalc.md @@ -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: . - 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]}}` diff --git a/pages/linux/ipcalc.md b/pages/linux/ipcalc.md deleted file mode 100644 index 0752f41fe3..0000000000 --- a/pages/linux/ipcalc.md +++ /dev/null @@ -1,24 +0,0 @@ -# ipcalc - -> Perform simple operations and calculations on IP addresses and networks. -> More information: . - -- 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}}`