## How to convert IPv4 to IPv6?

 ipv6 has gradually application, now there are a lot of operators support ipv6, the day before yesterday we posted how to make computer use ipv6 address? There are a lot of friends ask? ipv6 what role, what is its representation, today we come to a Learn more about it at ipv6 related calculations and conversions.

First, what is ipv6?

We now use the ipv4 address is 32, for example such, 59.123.123.123. The total number there are about 4.3 billion, the average score for each person on the planet not a, let alone each computer, and also minus the 192,170 private network addresses, and even less, up to now, more not enough. With the development of scientific and technological progress and the Internet of Things, ipv4 apparently has failed to meet the requirements, severely constrains the application and development of the Internet, so ipv6 came into being.

Ipv6 what is it?

IPv6 is the abbreviation for Internet Protocol Version 6, wherein the Internet Protocol translated as "Internet protocol." IPv6 is the replacement for the current version of the IP protocol (IPv4) is the next generation IP protocol, known as a URL to be compiled on every grain of sand around the world.

According to the calculation method of the number of addresses, we can calculate the number of addresses IPv6 can provide are:

2 ^ 128-1 two (approximately 340 trillion)

IPV6 address is extremely rich, almost inexhaustible, known as every grain of sand on Earth can be assigned to their own address, not to mention each phone, computer, and even refrigerators, washing machines can have their own unique ip address, and suddenly tall on a lot.

Benefits two, ipv6 of

ipv6 what's the use, which is asking a lot of friends, in fact, the benefits of ipv6 is still a lot of.

1, with the number of ip addresses could not finish

128 has a large number of ipv6 ip address, provides enough IP addresses for future decades, a huge address space billions of new devices offer globally unique address, that is, people can also have a public network ip, in ipv4 period, due to the limited address, apply only to public companies, we are using a private network address, and ipv6, each device can have public network ip, then you have a public network capable Shane?

2、多等级层次有助于路由聚合，提供了路由的效率和可扩展性

3、能够更有效的处理移动性和安全机制

4、会让智能家居和物联网迎来最好的时代。

Linux书籍：https://www.linuxprobe.com/books

IPV6地址的表示采用16进制的表示方法。将128bit分为8组，每组16比特，用4个16进制数表示，各组之间用"："隔开，每组中最前面的0可以省略，但每组必须得有一个数。

1、冒分十六进制表示法

ip一：ABCD:EF01:2345:6789:ABCD:EF01:2345:6789

ip二：FEDC:BA98:7654:3210:FEDC:BA98:7654:3210

ip三：1080:0:0:0:8:800:200C:417A

2、0位压缩表示法

1080:0:0:0:8:800:200C:417A =1080::8:800:200C:417A

FF01:0:0:0:0:0:0:101=FF01::101

FF01:0:0:0:0:0:0:1101 = FF01::1101

0:0:0:0:0:0:0:1 = ::1

0:0:0:0:0:0:0:0 = ::

3、内嵌IPv4地址表示法

1、非标准转换：

0000:0000:0000:0000:0000:0000:135.75.43.52

2、标准转换

135.75.43.52 按十六进制算出即87.4B.2B.34，

0000:0000:0000:0000:0000:0000:874B:2B34或者::874B:2B34。

16进制的10、11、12、13、14、15分别用A、B、C、D、E、F来表示。

So decimal 135.75.43.52 final results are hexadecimal 87.4B.2B.34, is transformed into ipv6 :: 874B: 2B34. Of course, it can be directly converted by the tool.

### Guess you like

Origin blog.51cto.com/14414295/2430291
Recommended
Ranking
Daily