# How to convert an IPv4 to an IPv6 address

Hi,

I would like to understand the mathematical process of converting an ipv4 address to an ipv6.
For example, if I use google ip to convert to ipv6 it looks like this.

216.58.220.110 ->  0:0:0:0:0:ffff:d83a:dc6e

Can you explain?

Cheers
LVL 1
###### Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
216.               58.             220.               110  convert to binary
11011000. 00111010. 11011100. 01101110      then each 4 consecutive digits convert to Hex
1101 1000. 0011 1010. 1101 1100. 0110 1110
d        8       3        a    :    d         c        6         e
0
Fixer of ProblemsCommented:
More confusing info here:  https://en.wikipedia.org/wiki/IPv6_address   Converting to any IPv6 address may not produce any kind of useful result because the networks between you and your network destination must all support the IPv6 address you are trying to use.  Many ISPs do Not currently support IPv6.
0
InstructorCommented:
I would like to understand the mathematical process of converting an ipv4 address to an ipv6.
There really isn't one.  At least an official standard.

As for the "conversion calculators", I just went to 5 different ones and every single one generated a different result.

Most of them convert the IPv4 decimal address to hex and them do things like add FFFF to the v6 address somewhere and pad the rest with 0's or some variation.
0

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

TrainerCommented:
In a way, everyone is saying that you do not need to convert a ipv4 address to use an ipv6 address in your network.
To explain, ipv4 is a series of four numbers - each number between 0 and 255 and separated with the dot (.).  [216.58.220.110]
To provide for more addresses, the ipv6  network has been implemented which uses 8 sets of numbers separated by a colon(:).  Each group is a number between 0 and 65535.  Eight numbers that can vary up to 65535 versus four numbers that max at 255 - it is clear that many more addresses are available in the new numbering system.
These numbers are stored in hexadecimal - a base 16 numbering system from 0-9 then a,b,c,d,e,f to count to 16(hexadecimal).  [0:0:0:0:0:ffff:d83a:dc6e]
Although the network adapters can communicate using both address systems at the same time, the ipv4 numbers do not get 'converted' to use the ipv6.
A separate DHCP and DNS network services provides address resolution to use the ipv6 numbers.  There is much more on the numbering system available.  Ipv6 addresses can be abbreviated, etc.
0
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.