求助, Tunnel Broker 添加 ip 地址时出错。

2015-10-11 17:10:26 +08:00
 qq3102328040

想用 HE Tunnel Broker 给阿里云的云主机添加个 ipv6 的地址,应对听歌都卡的校园网,可是在添加 ip 地址时出现了下面的问题

[root@iZ281j3obvpZ ~]# modprobe ipv6
FATAL: Module off not found.(虽然出错,但查看时 ipv6 依然加载了)
[root@iZ281j3obvpZ ~]# ip tunnel add he-ipv6 mode sit remote 66.220.7.82 local  121.42.11.xxx ttl 255
[root@iZ281j3obvpZ ~]# ip link set he-ipv6 up
[root@iZ281j3obvpZ ~]# ip addr add 2001:470:xxxx:192::2/64 dev he-ipv6
RTNETLINK answers: Operation not supported
[root@iZ281j3obvpZ ~]# ip route add ::/0 dev he-ipv6
RTNETLINK answers: Operation not supported
[root@iZ281j3obvpZ ~]# ip -f inet6 addr

小菜一枚,谷歌了一天了也没能解决,求 v2 的众神们帮忙看下。

3064 次点击
所在节点    问与答
7 条回复
yexm0
2015-10-11 17:13:33 +08:00
阿里云连 he 是走电信线路到美国的,丢包又大,速度又慢.
qq3102328040
2015-10-11 17:14:13 +08:00
查看时是这样:
he-ipv6 Link encap:IPv6-in-IPv4
UP POINTOPOINT RUNNING NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
qq3102328040
2015-10-11 17:17:20 +08:00
@yexm0 昨天都 ping 了一般,基本上延迟都在 200 以上,不知道跟我们 100k 封顶的校园网比怎么样。。
halczy
2015-10-11 17:22:49 +08:00
直接编辑 /etc/network/interfaces 试试。

这个是我用的, Ubuntu 机器,直接写进去重启即可。

```
auto he-ipv6
iface he-ipv6 inet6 v4tunnel
address 2001:470:xx:xxx::2
netmask 64
remote 216.66.xxx.xxx
local 104.167.xxx.xxx
endpoint any
ttl 255
up ip -6 route add 2000::/3 via ::216.66.xx.xx dev he-ipv6
up ip -6 addr add 2001:470:xx:xxx::1:1/128 dev he-ipv6
up ip -6 addr add 2001:470:xx:xxx::2:1/128 dev he-ipv6
down ip -6 route flush dev he-ipv6
```
qq3102328040
2015-10-11 17:44:15 +08:00
@halczy 中午时尝试直接写,失败了,刚才重启了一下,然后莫名其妙的成功了,虽然延迟 340.。。还是师范高兴,感谢。
qq3102328040
2015-10-11 17:44:28 +08:00
十分。。
fashioncj
2016-03-01 13:59:26 +08:00
给别人一个帮助:
1. @halczy 这个配置少了 gateway ,需要加上
2. 阿里云 ubuntu 禁用了 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
---

http://blog.chenjia.me/articles/160301-134110.html

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/227163

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX