在 dd-wrt 下,能够获取到 ipv6 地址,但是无法访问 ipv6 网络,大概是怎么回事?

2014-09-27 11:19:28 +08:00
 yanyuechuixue
校园网,ipv6是不限流量的。我想用dd-wrt直接l2tp或OpenVPN到我的vps.当然是通过ipv6的。
在配置过程中,对ddwrt启用ipv6,可以或得到一个2001开头和一个2002开头的ipv6地址,但是无法访问网络。
访问内网里的ipv6正常。
求助各位大神,大概是怎么回事?
1、下面是路由表
root@DD-WRT:~# ip -6 route
2001:cc0:2020:4011:20c:43ff:fe30:5277 dev br0 proto kernel metric 256
2001:cc0:2020:4011::/64 dev br0 proto kernel metric 256 expires 2590771sec
2001:cc0:2020:4011::/64 dev vlan2 proto kernel metric 256
2001:cc0:2020:4011::/64 dev ra0 proto kernel metric 256
2001:cc0:2020:4011::/64 dev vlan1 proto kernel metric 256
2002:7c10:5abe:4::/64 dev br0 proto kernel metric 256 expires 171571sec
fe80::/64 dev eth2 proto kernel metric 256
fe80::/64 dev br0 proto kernel metric 256
fe80::/64 dev vlan1 proto kernel metric 256
fe80::/64 dev ra0 proto kernel metric 256
fe80::/64 dev vlan2 proto kernel metric 256
fec0:0:0:4::/64 dev br0 proto kernel metric 256 expires 171571sec
unreachable default dev lo proto kernel metric -1 error -128
ff00::/8 dev eth2 metric 256
ff00::/8 dev br0 metric 256
ff00::/8 dev vlan1 metric 256
ff00::/8 dev ra0 metric 256
ff00::/8 dev vlan2 metric 256
unreachable default dev lo proto kernel metric -1 error -128

2、这个是获取到的ipv6地址。
root@DD-WRT:~# ifconfig
br0 Link encap:Ethernet HWaddr 00:0C:43:30:52:77
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: 2002:7c10:5abe:4:20c:43ff:fe30:5277/64 Scope:Global
inet6 addr: fec0::4:20c:43ff:fe30:5277/64 Scope:Site
inet6 addr: 2001:cc0:2020:4011:20c:43ff:fe30:5277/64 Scope:Global
inet6 addr: ::1:20c:43ff:fe30:5277/64 Scope:Global
inet6 addr: fe80::20c:43ff:fe30:5277/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23390 errors:0 dropped:10 overruns:0 frame:0
TX packets:13133 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1965042 (1.8 MiB) TX bytes:7188676 (6.8 MiB)

br0:0 Link encap:Ethernet HWaddr 00:0C:43:30:52:77
inet addr:169.254.255.1 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

eth2 Link encap:Ethernet HWaddr 00:0C:43:30:52:77
inet6 addr: fe80::20c:43ff:fe30:5277/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23985 errors:0 dropped:0 overruns:0 frame:0
TX packets:13178 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2445079 (2.3 MiB) TX bytes:7233020 (6.8 MiB)
Interrupt:5

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MULTICAST MTU:16436 Metric:1
RX packets:188 errors:0 dropped:0 overruns:0 frame:0
TX packets:188 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:12020 (11.7 KiB) TX bytes:12020 (11.7 KiB)

ra0 Link encap:Ethernet HWaddr 00:0C:43:30:52:A8
inet6 addr: fe80::20c:43ff:fe30:52a8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:71 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:17157 (16.7 KiB) TX bytes:0 (0.0 B)
Interrupt:6

vlan1 Link encap:Ethernet HWaddr 00:0C:43:30:52:77
inet6 addr: fe80::20c:43ff:fe30:5277/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23984 errors:0 dropped:46 overruns:0 frame:0
TX packets:13121 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2013307 (1.9 MiB) TX bytes:7157306 (6.8 MiB)

vlan2 Link encap:Ethernet HWaddr 00:0C:43:30:52:78
inet6 addr: fe80::20c:43ff:fe30:5278/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:14200 (13.8 KiB)

谢谢各位大大~!
5007 次点击
所在节点    问与答
4 条回复
Love4Taylor
2014-09-27 11:30:13 +08:00
同样会这样。Openwrt 获取到ipv6,路由上能ping出去,但是后边的计算机ping不能。。
ibigbug
2014-09-27 12:39:28 +08:00
@Love4Taylor 我之前也弄过这样,但是貌似 ipv6 的地址不能直接 nat 给电脑或者手机。
jasontse
2014-09-27 14:25:00 +08:00
没有默认路由?
yanyuechuixue
2014-09-27 20:56:01 +08:00
@Love4Taylor 我现在是路由上ping6不出去。。。客户端好办。。。

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

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

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

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

© 2021 V2EX