1、 注册he.net,并生成tunnel
2、ecs配置tunnel
编辑\etc\network\interface文件,在末尾 添加he.net生成的配置
auto he-ipv6
iface he-ipv6 inet6 v4tunnel
address 2001:xxxxxxxxxxxxx
netmask 64
endpoint xxxxxxxxxxxxx
local xxxxxxxxxx
ttl 255
gateway 2001:xxxxxxxxxxx
iface he-ipv6 inet6 v4tunnel
address 2001:xxxxxxxxxxxxx
netmask 64
endpoint xxxxxxxxxxxxx
local xxxxxxxxxx
ttl 255
gateway 2001:xxxxxxxxxxx
3、 去除ecs对ipv6的禁用
编辑/etc/sysctl.conf文件
net.ipv6.conf.all.disable_ipv6 = 0
net.ipv6.conf.default.disable_ipv6 = 0
net.ipv6.conf.lo.disable_ipv6 = 0
重启服务器
检查是否生效:
$ifconfig
正常的话,会添加he-ipv6的配置
4、域名解析添加AAAA记录
https://help.aliyun.com/knowledge_detail/6555875.html
2001.xxxx即为ipv6地址
验证域名ipv6的支持
http://ipv6-test.com/validate.php