树莓派openwrt+ipv6
树莓派openwrt+ipv6尝试
A attempt about flashing openwrt to RaspberryPi and enable ipv6.
1.刷入openwrt
从网上发现树莓派能够刷入openwrt,同时科协技术部缺少一个能免费上网的东西,于是想使用树莓派刷入openwrt挂上shadowsocks来免费上网。
至于如何ipv6免费上网,可以参考我的这篇博客[校园ipv6免流量][]。
[校园ipv6免流量]: https://jpokerpoke.blogspot.com/2016/03/ipv6vpsshadowsocksproxierfier.html
I have seen many sites about how to flash openwrt to RaspberryPi.Also,the techology department of NWPU Science and Techology Association need a way to surf the internet free.So,i attempt to do something.
How to surf the internet free?You can view my blogger,[校园ipv6免流量][]。
[校园ipv6免流量]: https://jpokerpoke.blogspot.com/2016/03/ipv6vpsshadowsocksproxierfier.html
下载openwrt镜像 openwrt。
但是官方的有问题,wiki上写了支持树莓派3,没有bcm2710版本所以选择了lede项目组的镜像,下载地址 LEDE project
Download the image of openwrt openwrt.
There some issues about official source. Also the wiki says it supports RaspberryPi 3B,but there is no version of bcm2710.So I choose the image of LEDE project openwrt.
写入openwrt镜像
-
windows
使用Win32DiskImager Download pages
Use Win32DiskImager Download pages -
Linux
使用dd命令烧写镜像
Use dd comand to flash.
dd if=lede-brcm2708-bcm2710-rpi-3-ext4-sdcard.img of=/dev/sdb
2.配置openwrt
Set up openwrt.
首先需要开启ssh服务和luci的web页面。
关于luci。
First of all, turn on ssh service and luci.
About luci.
因为openwrt默认没有开启ssh服务,所以没法远程登陆=。=,还好我有个显示屏可以用。
By default, the ssh service isn't enable. So, there's no way to login by ssh. Fortunately, I have a lcd display.
两种方法开启ssh服务。
Two ways to enable ssh service.
- 直接关闭防火墙
Turn off the firewall.
/etc/init.d/firewall stop
- 修改防火墙配置
Edit the document of firewall.
vim /etc/config/firewall
# 通过搜索直接找到ssh命令所在行,取消注释就行
# Unmark the ssh lines by searching.
# in vim use `\ssh`
安装luci。
Install luci.
opkg install luci
3.进入浏览器配置路由器
Login the web to configure the router.
纯图形化的界面,没啥说的了。
A easy interface , nothing to introduce.
4.问题
Issues.
如果在网线接口里面启用了dhcpv6协议,会只获得ipv6地址,并不会获得ipv4地址,而且无法连通,原因未知。你也没法使用ping6命令。
If you enable dhcpv6 proto in interface , you will get a ipv6 address , but no ipv4 address . What's more , you cannot use the ping6 commmand . Also , it cannot connect the internet . I don't know the solution.