From 12974671c1bfc7cdd62c7a7d4cf0b3ca81fff2e8 Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Wed, 23 Apr 2025 08:16:27 +0300 Subject: [PATCH] ipcalc: merge to common (#16232) --- pages/common/ipcalc.md | 16 ++++++++++------ pages/linux/ipcalc.md | 24 ------------------------ 2 files changed, 10 insertions(+), 30 deletions(-) delete mode 100644 pages/linux/ipcalc.md 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}}`