阿里云ecs添加ipv6支持

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
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值