From eba372ca23ee35d5475eb79c3fdc995bcd0b677e Mon Sep 17 00:00:00 2001 From: Raymond Douglas Date: Fri, 31 Aug 2018 11:41:11 -0700 Subject: [PATCH] ipcalc: add page --- pages/linux/ipcalc.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/linux/ipcalc.md diff --git a/pages/linux/ipcalc.md b/pages/linux/ipcalc.md new file mode 100644 index 0000000000..79af684a74 --- /dev/null +++ b/pages/linux/ipcalc.md @@ -0,0 +1,23 @@ +# ipcalc + +> Perform simple operations/calculations on IP addresses and networks. + +- Show information about an address/network: + +`ipcalc {{ip_address}} {{subnet_mask}}` + +- Show information about an address/network in CIDR notation: + +`ipcalc {{ip_address}}/{{masked_bits}}` + +- Show broadcast address of an address/network: + +`ipcalc -b {{ip_address}}/{{masked_bits}}` + +- Show network address of provided IP address and netmask: + +`ipcalc -n {{ip_address}}/{{masked_bits}}` + +- Display geographic information of provided IP address: + +`ipcalc -g {{ip_address}}`