您的位置:首页 > 其它

阿里云ecs添加ipv6支持

2016-10-17 09:57 260 查看

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: