|
鼓捣了一个多星期没干别的,终于成功了6to4,看了许多国内外的网站教程,分享一下过程和经验吧
过程
需要的包:kmod-ipv6 ip6tables radvd ip 6to4
opkg update
opkg install kmod-ipv6 ip6tables radvd ip 6to4
/etc/config/network新添加,以让路由器获取ipv6地址
config 'interface' '6rd'
option 'proto' '6to4'
option 'adv_subnet' '1'
option 'adv_interface' 'lan'
/etc/config/firewall 改'wan' 为'rd6 wan'
config 'zone'
option 'name' 'wan'
option 'network' '6rd wan'
/etc/config/radvd’ 改 ‘ignore’ 为 ‘0’
config interface
option interface 'lan'
option AdvSendAdvert 1
option AdvManagedFlag 0
option AdvOtherConfigFlag 0
list client ''
option ignore 0
/etc/sysctl.conf里添加,以启动ipv6
# enable ipv6 forwarding
net.ipv6.conf.all.forwarding=1
这样就差不多了,重启下试试(ssh输入reboot)没有意外的话就可以了
资料https://www.rivy.org/2012/09/enable-ipv6-on-openwrt/
经验
编译过程中失败了不要紧,如果是网络问题可以先不用make clean,挂载v p n再直接make一遍。
我下载的AA trunk版本的,在线opkg install就有问题,提示内核不对。尽量就不要用trunk版本的。
搞ipv6前一定要清楚自己的网络是什么类型的,可以用http://www.test-ipv6.com检测,
我2周之前也还只是什么都不懂的,不要怕不懂,多逛逛国内外的网站,多试试几种教程,多用用bing,google等搜索引擎可以找到国外的好的教程。
12.07Attitude Adjustment下载下来的feed总是有问题,luci更新不了,可以换github的 编辑feed.conf.default src-git luci https://github.com/openwrt/luci.git;luci-0.11
feed更新中由于有google的源,需要挂载代理
我的是dir615d,在恢复模式下需要手动改ip为192.168.0.x 子网掩码为255.255.255.0才能连上192.168.0.1
|
|