Buffalo WZR-600DHP OpenWrt使用Comcast的IPv6
source link: http://maskray.me/blog/2016-12-10-buffalo-wzr-600dhp-openwrt-comcast-ipv6
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Buffalo WZR-600DHP OpenWrt使用Comcast的IPv6
根据https://wiki.openwrt.org/toh/buffalo/wzr-600dhp在Buffalo WZR-600DHP上安装OpenWrt。Buffalo路由器的好处在于brick了还能借助bootloader用tftp安装。
我的Internet service provider为COMCAST-7922 - Comcast Cable Communications, LLC, US,提供了4个IPv6 delegated prefix /64。
配置odhcpd的DHCPv6 relay,修改/etc/config/dhcp
:
修改/etc/config/network
。wan和wan6的bridge没啥用,注释掉option type 'bridge'
。
如果不填写ip6assign '60'
的话,在连接路由器的设备上dhcpcd -6
会看到:
我使用的openwrt-15.05.1-ar71xx-generic-wzr-600dhp-squashfs-sysupgrade.bin
比较古怪,默认禁用了eth0
(lan)及eth1
(wan)的IPv6。
用sysctl
把它们改成0。要持久化配置的话,修改/etc/config/firewall
:
修改完两个文件后/etc/init.d/network reload; /etc/init.d/dhcp reload
。
笔记本电脑
我的笔记本电脑安装Arch Linux,使用netctl、netctl-auto管理网络。向/etc/netctl/$profile
添加两行:
默认的DHCPv6客户端dhclient不工作,不明原因,观察/usr/lib/network/ip
发现设置DHCP6Client
即可指定DHCPv6客户端。
之后访问http://test-ipv6-ct.comcast.net,查看IPv6评分,10 of 10。
路由器上opkg install tcpdump
,之后在笔记本电脑上mkfifo fifo; ssh [email protected] 'tcpdump -s0 -Unw - -i eth1' > fifo
,另一个shell里wireshark -ki fifo
。
IPv6一直弄不好,在TUNA群里大家讨论诊断了很久,王邈给出了很多诊断建议。小结下有这些东西:
注意以下值:
怕ip6tables产生影响的话,ip6tables -F; ip6tables -P ACCEPT FORWARD
。
对于OpenWrt系统,当disable_ipv6=1
的时候,如果接口外面套了bridge,那么对外发送IPv6包(如connect、sendto等syscall)找不到路由时会报告EACCES(Permision denied);即使有路由,tcpdump也看不到有包发出去。当心套上bridge后会丢失一些错误信息,ip -6 a a $ip6 dev br-wan
不会报错,但ip -6 a a $ip6 dev eth1
会报告EACCES(Permission denied)。
之前使用D-Link DIR-860 B1,https://www.amazon.com上有打折后$30.75的。通过网页界面安装OpenWrt很方便,但是室友报告Steam上很多游戏有明显丢包。
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK