aiastia / note

笔记
17 stars 5 forks source link

https://www.tunnelbroker.net/ ipv6 教程 #50

Open aiastia opened 3 years ago

aiastia commented 3 years ago

6、重启网络模块

/etc/init.d/network restart

7、测试IPv6环境

ping6 2001:4860:4860::8888

aiastia commented 3 years ago

vi /etc/network/interfaces

aiastia commented 3 years ago

启用 IPv6 由于阿里云的网络不支持 IPv6,所以官方镜像默认是禁用了相关设置,需要修改一下才能用 IPv6。 vi /etc/sysctl.conf 将下面三项修改为 0: net.ipv6.conf.all.disable_ipv6 = 0 net.ipv6.conf.default.disable_ipv6 = 0 net.ipv6.conf.lo.disable_ipv6 = 0 添加 DNS vi /etc/resolvconf/resolv.conf.d/base 加入一下内容:

nameserver 2001:4860:4860::8844 nameserver 2001:470:20::2 保存后,执行

resolveconf -u

aiastia commented 3 years ago

执行ifconfig, 看到 he-ipv6 网卡。 Tunnel-broker4.png

没有的话,执行ifup he-ipv6即可

接着连通测试

ping6 -c 5 2001:4860:4860::8888 ping6 -c 5 ipv6.google.com Ping 通了,说明网络已连通,能正常解析域名,说明 DNS 也正常。 其他 IPv6 测试工具: http://ipv6-test.com/ https://ipv6test.google.com/ http://test-ipv6.com/