V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
yanyuechuixue
V2EX  ›  问与答

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

  •  
  •   yanyuechuixue · 2014-09-27 11:19:28 +08:00 · 5007 次点击
    这是一个创建于 3703 天前的主题,其中的信息可能已经有所发展或是发生改变。
    校园网,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)

    谢谢各位大大~!
    4 条回复    2014-09-27 20:56:01 +08:00
    Love4Taylor
        1
    Love4Taylor  
       2014-09-27 11:30:13 +08:00
    同样会这样。Openwrt 获取到ipv6,路由上能ping出去,但是后边的计算机ping不能。。
    ibigbug
        2
    ibigbug  
       2014-09-27 12:39:28 +08:00
    @Love4Taylor 我之前也弄过这样,但是貌似 ipv6 的地址不能直接 nat 给电脑或者手机。
    jasontse
        3
    jasontse  
       2014-09-27 14:25:00 +08:00 via Android
    没有默认路由?
    yanyuechuixue
        4
    yanyuechuixue  
    OP
       2014-09-27 20:56:01 +08:00 via Android
    @Love4Taylor 我现在是路由上ping6不出去。。。客户端好办。。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1096 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 23:27 · PVG 07:27 · LAX 15:27 · JFK 18:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.