Ubuntu solves the problem of ipv6 hosts, ubuntuipv6
After switching from windows to linux, the first step is to modify hosts. Then we copied the ipv6 hosts on windows, but we found it was not easy. Later we switched back to the common hosts and found it was easy, but it was too slow.
Problem Analysis:
Ping6 ipv6.google.com is not easy to use. It may be due to the ipv6 function of ubuntu.
~ $ Ifconfig
Ppp0 Link encap: Point-to-Point Protocol
Inet addr: 172.19.70.85 P-t-P: 172.19.64.1 Mask: 255.255.255.255
Inet6 addr: 2001: da8: a807: 203: 7406: acdb: 578: 80fb/64 Scope: Global
Inet6 addr: fe80: 3005: 53d1: c819: 865b/10 Scope: Link
Inet6 addr: 2001: da8: a807: 203: 3005: 53d1: c819: 865b/64 Scope: Global
Up pointopoint running noarp multicast mtu: 1500 Metric: 1
RX packets: 41832 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 22219 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 txqueuelen: 3
RX bytes: 29185177 (29.1 MB) TX bytes: 1900399 (1.9 MB)
Here, only ppp0 information is copied.
I found that there are two ipv6 Global addresses. I found from the Internet that it seems that the default ipv6 address for ubuntu uses a temporary address. Why can't I access the ipv6 website normally if I use a temporary address? In my understanding, on the one hand, the school dynamically allocates addresses for us, and each time after dial-up login, we will get a different ipv6 address, while on the other hand, ubuntu uses a temporary address, this temporary address will not change immediately, and may change only one day or one week later. At this time, ubuntu will not be able to get the address allocated by the school correctly, so we will not be able to use ipv6 to access the Internet normally. At this time, you just need to change ubuntu to dynamic ipv6 address.
Solution Process: To dynamically change the ipv6 address, you only need to change/etc/sysctl. d/10-00006-privacy.conf after verification.
File, change net. ipv6.conf. default. use_tempaddr to 0.
~ $ Sudo vim/etc/sysctl. d/10-00006-privacy.conf
Dial again, ifconfig again
Ppp0 Link encap: Point-to-Point Protocol
Inet addr: 172.19.86.23 P-t-P: 172.19.64.1 Mask: 255.255.255.255
Inet6 addr: 2001: da8: a807: 203: f84a: 19c6: ca4c: dd38/64 Scope: Global
Inet6 addr: fe80: f84a: 19c6: ca4c: dd38/10 Scope: Link
Up pointopoint running noarp multicast mtu: 1500 Metric: 1
RX packets: 21131 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 11623 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 txqueuelen: 3
RX bytes: 15323693 (15.3 MB) TX bytes: 1315532 (1.3 MB)
Perfect solution: ipv6 hosts takes off from the wall
Refer to this blog: http://blog.csdn.net/qq_18820397/article/details/51171220