美文网首页
【IPv6】使用tunnelbroker开启IPv6隧道

【IPv6】使用tunnelbroker开启IPv6隧道

作者: 高巨龙 | 来源:发表于2019-01-05 12:01 被阅读80次

    开启IPv6功能

    本文以Ubuntu系统的腾讯云VPS为测试机。ECS 里面的系统配置,由于腾讯云的网络不支持IPv6,所以他官方镜像里面相关的设置都是被禁用了的,想要使用 IPv6 就要做一些修改。首先修改 /etc/sysctl.conf ,将其中两条禁用IPv6的设置更改为0:


    配置IPv6.png
    net.ipv6.conf.all.disable_ipv6 = 0
    net.ipv6.conf.default.disable_ipv6 = 0
    
    • 运行下面的命令,启用IPv6,使设置生效。:
     sysctl -p
    

    配置tunnelbroker

    1、登录https://www.tunnelbroker.net/register.php注册,然后在邮件里认证。

    2、Create Regular Tunnel

    IPv4 Endpoint (Your side):填写你的IPV4。

    一般服务器都有ping功能,路由器可能关闭了ICMP,需要开通。否则会报错:

    IP is not ICMP pingable. Please make sure ICMP is not blocked. If you are blocking ICMP, please allow 66.220.2.74 through your firewall.

    3、隧道服务器,默认选的是 Los Angeles, CA, US

    4、点击Create Tunnel

    可以看到自己刚才输入的IPV4,及IPV6。

    5、点击Example Configurations,选择自己的OS。配置后重启!即可使用。测试如下:

    ubuntu@VM-28-187-ubuntu:~$ ping6 ipv6.baidu.com
    PING ipv6.baidu.com(2400:da00:2::29) 56 data bytes
    From tunnel516546-pt.tunnel.tserv22.tyo1.ipv6.he.net icmp_seq=1 Destination unreachable: Address unreachable
    From tunnel516546-pt.tunnel.tserv22.tyo1.ipv6.he.net icmp_seq=2 Destination unreachable: Address unreachable
    

    相关文章

      网友评论

          本文标题:【IPv6】使用tunnelbroker开启IPv6隧道

          本文链接:https://www.haomeiwen.com/subject/mrerrqtx.html