ipcalc and sipcalc
thufir
hawat.thufir at gmail.com
Tue Nov 28 10:55:44 UTC 2017
On Mon, 27 Nov 2017 13:02:47 +0000, Colin Watson wrote:
> * sipcalc understands IPv6, but it's mainly a subnet calculator; as far
> as I can see its "v4 in v6" output mode is for converting the other
> way, i.e. taking an IPv6 address, assuming that it's an IPv4-mapped
> address, and rendering the last four octets in IPv4 style.
>
> I'd generally recommend ipv6calc instead of either of these if you're
> trying to do address conversions.
Thanks for using your clairvoyance to understand the question I (think)
that I meant to ask! I'm trying to read or parse ipv6 addresses (when
they have a direct correlation to ipv4 addresses).
Reading the man page:
thufir at dur:~$
thufir at dur:~$ ipv6calc --ipv4_to_6to4addr 192.168.1.1
No action type specified, try autodetection...found type: conv6to4
2002:c0a8:101::
thufir at dur:~$
they give that as an example for typical usage, although they use
127.0.0.1 instead. Give me pencil, paper, and lots of time, I can
convert between binary and decimal. Not so much hexadecimal...
I went to an online hex to dec converter, and c0 converts as 192. But,
2002 hex converts to 8194, so don't see how that helps at all. Or does
it?
so, this "converts" or "translates" ipv4 to ipv6?
also, is the above correct usage? Because it seems to be saying there's
an error, no action type specified.
thanks,
Thufir
More information about the ubuntu-users
mailing list