Discussion:
Convert IP6 address to IP4
(too old to reply)
Jerry
2018-11-23 16:19:28 UTC
Permalink
I am looking for a Bash script that can convert an IP6 address to IP4 format.
I don't know if it is even possible in Bash but I thought I would ask.

Thanks!
--
Jerry
Dennis Williamson
2018-11-23 16:24:53 UTC
Permalink
Post by Jerry
I am looking for a Bash script that can convert an IP6 address to IP4 format.
I don't know if it is even possible in Bash but I thought I would ask.
Thanks!
--
Jerry
Your first problem is that IPv6 addresses are 128 bits and IPv4 addresses
are only 32 bits.
Daniel Schubert
2018-11-23 17:09:58 UTC
Permalink
Hi Jerry,
You cannot convert ipv4 to ipv6, as they are both distinct and independent adressing systems.It is
not only impossible with bash, it IS impossible.
Greets,
Post by Jerry
I am looking for a Bash script that can convert an IP6 address to IP4 format.
I don't know if it is even possible in Bash but I thought I would ask.
Thanks!
-- 



Daniel Schubert

Loading...