Comments on: How to Calculate IP Subnet Address with ipcalc Tool https://www.tecmint.com/calculate-ip-subnet-address-with-ipcalc-tool/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Fri, 14 Jul 2023 02:30:31 +0000 hourly 1 By: spezialist https://www.tecmint.com/calculate-ip-subnet-address-with-ipcalc-tool/comment-page-1/#comment-1135472 Fri, 19 Apr 2019 08:30:36 +0000 https://www.tecmint.com/?p=32336#comment-1135472 I agree, a good tutorial, but there is one sad nuance: under RHEL/CentOS, the functionality of the ipcalc utility is very limited :-(. Because of this, all the above mentioned practical examples of using the ipcalc utility are not applicable under RHEL/CentOS.

# rpm -q initscripts

initscripts-9.49.46-1.el7.x86_64
# ipcalc 192.168.20.0/24

Usage: ipcalc [OPTION...]
  -c, --check         Validate IP address for specified address family
  -4, --ipv4          IPv4 address family (default)
  -6, --ipv6          IPv6 address family
  -b, --broadcast     Display calculated broadcast address
  -h, --hostname      Show hostname determined via DNS
  -m, --netmask       Display default netmask for IP (class A, B, or C)
  -n, --network       Display network address
  -p, --prefix        Display network prefix
  -s, --silent        Don't ever display error messages

Help options:
  -?, --help          Show this help message
  --usage             Display brief usage message
]]>
By: Stefan Lasiewski https://www.tecmint.com/calculate-ip-subnet-address-with-ipcalc-tool/comment-page-1/#comment-1132499 Mon, 15 Apr 2019 23:11:02 +0000 https://www.tecmint.com/?p=32336#comment-1132499 Great tutorial, thanks. From the comments that I read on Facebook, many people would have benefited from an example that showed a couple of uncommon networks, such as 192.168.20.0/23, instead of a /24.

Thanks for working on this.

]]>
By: Stefan Lasiewski https://www.tecmint.com/calculate-ip-subnet-address-with-ipcalc-tool/comment-page-1/#comment-1132496 Mon, 15 Apr 2019 23:08:46 +0000 https://www.tecmint.com/?p=32336#comment-1132496 In reply to Allwin.

Download Windows Subsystem for Linux, install Ubuntu, and not only will you get ipcalc but you’ll get Ubuntu’s powerful Bash environment.

]]>
By: Allwin https://www.tecmint.com/calculate-ip-subnet-address-with-ipcalc-tool/comment-page-1/#comment-1129626 Thu, 11 Apr 2019 14:18:31 +0000 https://www.tecmint.com/?p=32336#comment-1129626 Do you have similar tool for windows based machines.

]]>