ddxiami

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1992|回复: 0

[调试] 为阿里云ECS(CentOS7)配置IPv6地址

[复制链接]
发表于 2017-6-30 10:44:29 | 显示全部楼层 |阅读模式
步骤:1. 编辑 /etc/sysctl.conf 文件,将其中三条禁用IPv6的设置更改为:net.ipv6.conf.all.disable_ipv6 = 0net.ipv6.conf.default.disable_ipv6 = 0net.ipv6.conf.lo.disable_ipv6 = 02.再运行 sysctl -p 的命令,启用IPv6
3. 转到 tunnelbroker.net 网站,在 Example Configurateions 里选择 Linux-route2 的配置方法,示例命令如下:modprobe ipv6ip tunnel add he-ipv6 mode sit remote 216.218.221.6 local 121.43.110.72 ttl 255ip link set he-ipv6 upip addr add 2001:470:18:401::2/64 dev he-ipv6ip route add ::/0 dev he-ipv6ip -f inet6 addr4. 在境外机子,使用Ping6及curl测试IPv6隧道地址访问,结果正常:

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|技术文档库 ( 闽ICP备15017263号-2 )|网站地图

GMT+8, 2025-5-19 00:30 , Processed in 0.034901 second(s), 16 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表