阿里云ecs添加ipv6支持

来源:互联网 发布:巨石投手升级数据 编辑:程序博客网 时间:2024/05/22 17:39

1、 注册he.net,并生成tunnel

https://tunnelbroker.net/


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

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

0 0