如果路由器上是原生v6的话,建议使用NDP

http://blog.martianz.cn/article/2013-05-27-openwrt-ipv6

可以获得Global的IPv6地址

如果走isatap隧道的话,参照blahgeek的IPv6 NAT:

https://blog.blahgeek.com/2014/02/22/openwrt-ipv6-nat/

2014-09-09 10:28 GMT+08:00 杨海宇 <[email protected]>:

> 研究生宿舍这边,动态ipv4,原生ipv6,但是openwrt配置ipv6失败了。。
> 路由上ping6 ipv6.google.com成功,笔记本上失败
>
> root@OpenWrt:~# ifstatus wan6
> {
>         "up": true,
>         "pending": false,
>         "available": true,
>         "autostart": true,
>         "uptime": 35743,
>         "l3_device": "eth0",
>         "proto": "dhcpv6",
>         "device": "eth0",
>         "metric": 0,
>         "delegation": true,
>         "ipv4-address": [
>
>         ],
>         "ipv6-address": [
>                 {
>                         "address": "2402:f000:5:7a01:e82:68ff:fefd:2782",
>                         "mask": 64,
>                         "preferred": 604610,
>                         "valid": 2591810
>                 }
>         ],
>         "ipv6-prefix": [
>
>         ],
>         "ipv6-prefix-assignment": [
>
>         ],
>         "route": [
>                 {
>                         "target": "2402:f000:5:7a01::",
>                         "mask": 64,
>                         "nexthop": "::",
>                         "metric": 256,
>                         "valid": 2591810,
>                         "source": "::\/0"
>                 },
>                 {
>                         "target": "::",
>                         "mask": 0,
>                         "nexthop": "fe80::3e8a:b0ff:fe86:5ec9",
>                         "metric": 1024,
>                         "valid": 1610,
>                         "source": "2402:f000:5:7a01:e82:68ff:fefd:2782\/64"
>                 },
>                 {
>                         "target": "::",
>                         "mask": 0,
>                         "nexthop": "fe80::3e8a:b0ff:fe86:5ec9",
>                         "metric": 1024,
>                         "valid": 1610,
>                         "source": "::\/128"
>                 }
>         ],
>         "dns-server": [
>
>         ],
>         "dns-search": [
>
>         ],
>         "inactive": {
>                 "ipv4-address": [
>
>                 ],
>                 "ipv6-address": [
>
>                 ],
>                 "route": [
>
>                 ],
>                 "dns-server": [
>
>                 ],
>                 "dns-search": [
>
>                 ]
>         },
>         "data": {
>
>         }
> }
>
>
>
> root@OpenWrt:~# cat /etc/config/network
> config interface 'loopback'
>         option ifname 'lo'
>         option proto 'static'
>         option ipaddr '127.0.0.1'
>         option netmask '255.0.0.0'
>
> config globals 'globals'
>         option ula_prefix 'fd64:cde1:d2a2::/48'
>
> config interface 'lan'
>         #option ifname 'eth0'
>         option force_link '1'
>         option type 'bridge'
>         option proto 'static'
>         option ipaddr '192.168.1.1'
>         option netmask '255.255.255.0'
>         option ip6assign '60'
>
> config interface 'wan'
>         option ifname 'eth0'
>         option proto 'dhcp'
>         option ipv6 '1'
> 笔记本上
>    IPv6 Address . . . . . . . . . . . . :
> fd64:cde1:d2a2:0:c892:b785:298:46b2
>    Temporary IPv6 Address. . .  . : fd64:cde1:d2a2:0:cc0d:2f38:c81d:3975
>    Link-local IPv6 Address. . . .. . : fe80::c892:b785:298:46b2%16
>
>
> 多谢了!
>
> --
>
> ---
> 您收到此邮件是因为您订阅了 Google 网上论坛的“TUNA 主邮件列表”论坛。
> 要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到[email protected]。
> 要查看更多选项,请访问 https://groups.google.com/d/optout。
>



-- 
Best Regards!

Naitong Yu(于乃通)
Department of Computer Science and Technology
Room 4-503, FIT Building, Tsinghua University, Beijing, 100084, P.R. China
Cell: 86-132-6175-7220

-- 

--- 
您收到此邮件是因为您订阅了 Google 网上论坛的“TUNA 主邮件列表”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到[email protected]。
要查看更多选项,请访问 https://groups.google.com/d/optout。

回复