I am trying to calculate network address of Ip address by using Ipcalc command.

when i am using ipcalc -n ipv4 address,then it is running fine and give the network address for the IPv4.

But when i am using the same command with ipv6 address, then it is giving some errors.

For example

$ipcalc -n 192.168.456.52/16

output -->Network= --> this output is fine

but when i am using

$ipcalc -n 2001:0db8:0a0b:12f0:0000:0000:0000:0001/64

output --> ipcalc: Bad IP address

How can i solve this?????.

Thanks in advance

  • It works for me. How old is your system? – Michael Hampton May 5 '16 at 5:36
  • Can u please tell me which version of redhat you are using and which version of initscript package you are using?? – ajay May 5 '16 at 7:38
  • You need to be more specific about which ipcalc you are talking. The ipcalc package in Debian and Ubuntu, e.g., contains ipcalc by Krischan Jodies which is ten years old and understands only IPv4. – Dubu May 6 '16 at 7:51

How can i solve this?????.

You will have to read the documentation1 for your version of ipcalc for yourself to determine the solution to your problem but my guesses

  • your version of ipcalc does not support IPv6
  • you need to add the -6 switch (or similar) to advise the program you are providing an IPv6 address.
  • Gravity waves

1 You didn't provide any info about your version of ipcalc or which Distro/OS and version you are using so I can't provide RMAAS for you.

|improve this answer|||||
  • Hello lain, if ipcalc is running on your system . Then can u please answer these two things :**1** which version of Redhat you are using and 2 which version of initscripts you are using?????? – ajay May 5 '16 at 7:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for?Browse other questions tagged or ask your own question.