【树莓派4B测评】树莓派4安装路由器系统OpenWrt
<div class='showpostmsg'><p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:宋体">【树莓派</span>4B<span style="font-family:宋体">测评】树莓派</span>4<span style="font-family:宋体">安装路由器系统</span>OpenWrt</span></span></p><p style="text-align:justify"> </p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:16.0pt"><span style="font-family:宋体">1</span></span><span style="font-size:16.0pt"><span style="font-family:宋体">,OpenWrt介绍</span></span></span></span></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif">OpenWrt<span style="font-family:宋体">是一个用于嵌入式设备的</span>GNU/Linux<span style="font-family:宋体">发行版,具有强大的扩展性。不同于其他许多用于路由器的发行版,</span>OpenWrt<span style="font-family:宋体">是一个从零开始编写的、功能齐全的、容易修改的高性能,高稳定性,高可扩展性的路由器操作系统。</span></span></span></p>
<p style="text-align:justify"> </p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:16.0pt"><span style="font-family:宋体">2</span></span><span style="font-size:16.0pt"><span style="font-family:宋体">,树莓派4安装OpenWrt</span></span></span></span></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:宋体">官方的</span>OpenWrt<span style="font-family:宋体">没有提供界面化的配置方式,对于新手来说非常不方便,我这次安装的是国内网友做好的提供</span>web<span style="font-family:宋体">页面配置功能(</span>luci<span style="font-family:宋体">)的版本。镜像下载后使用</span>Win32DiskImager<span style="font-family:宋体">软件将镜像写入</span>TF<span style="font-family:宋体">卡,安装到树莓派,并使用网线将树莓派的网口直接和电脑的网口相连,电脑的</span>IP<span style="font-family:宋体">地址设置为自动获取,树莓派上电,等待电脑端获取</span>IP<span style="font-family:宋体">地址后就可以进行相关参数的配置了。</span></span></span></p>
<p style="text-align:justify"> </p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:16.0pt"><span style="font-family:宋体">3</span></span><span style="font-size:16.0pt"><span style="font-family:宋体">,登录后台</span></span></span></span></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:宋体">在浏览器内输入</span>192.168.1.1<span style="font-family:宋体">,会直接跳转到</span>OpenWrt<span style="font-family:宋体">的</span>web<span style="font-family:宋体">管理登录界面。</span></span></span></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:宋体">默认用户名:</span>root</span></span></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:宋体">默认登录密码:</span>password</span></span></p>
<p style="text-align:justify"></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:16.0pt"><span style="font-family:宋体">4</span></span><span style="font-size:16.0pt"><span style="font-family:宋体">,路由器模式的配置</span></span></span></span></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:宋体">路由器模式是路由器使用中最常见模式,因为树莓派</span>4<span style="font-family:宋体">只有一个有线的网口,我们这次的网络拓扑是树莓派</span>4<span style="font-family:宋体">通过有线连接至上级路由器,树莓派发射无线</span>WiFi<span style="font-family:宋体">信号提供无线上网的网络。</span></span></span></p>
<p style="text-align:justify"> </p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:宋体">点击配置界面的“网络”</span>-<span style="font-family:宋体">“接口”</span>-<span style="font-family:宋体">“添加新接口”,按照图片上的顺序进行配置。</span></span></span></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:宋体">新接口的名称,新接口的协议,还有包括以下接口。</span></span></span></p>
<p style="text-align:justify"></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:宋体">提交后选择刚刚创建的“</span>WLAN<span style="font-family:宋体">”接口,点击“防火墙设置”,选择</span> <span style="font-family:宋体">“</span>wan<span style="font-family:宋体">(空)”</span> <span style="font-family:宋体">并保存即可。</span></span></span></p>
<p style="text-align:justify"></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:宋体">然后选择“</span>LAN<span style="font-family:宋体">”</span>-<span style="font-family:宋体">“物理设置”</span>,<span style="font-family:宋体">勾选“桥接接口”,接口只选“无线网络:</span>Master OpenWrt<span style="font-family:宋体">”。</span></span></span></p>
<p style="text-align:justify"></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:宋体">如果默认的网关地址和上级路由器冲突的话,还需要在“</span>LAN<span style="font-family:宋体">”</span>-<span style="font-family:宋体">“基本设置”里更改。</span></span></span></p>
<p style="text-align:justify"></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:宋体">最后设置</span>WiFi<span style="font-family:宋体">密码,加密选择</span> <span style="font-family:宋体">“</span>WPA2-PSK<span style="font-family:宋体">”</span>,<span style="font-family:宋体">密码需要</span>8<span style="font-family:宋体">位及以上,最后点击“保存</span>&<span style="font-family:宋体">应用”。</span></span></span></p>
<p style="text-align:justify"></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:宋体">系统会重启,然后将树莓派的网口和上级路由器的</span>LAN<span style="font-family:宋体">口连接,整个系统的配置就完成了。</span></span></span></p>
<p style="text-align:justify"> </p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:16.0pt"><span style="font-family:宋体">5</span></span><span style="font-size:16.0pt"><span style="font-family:宋体">,OpenWrt功能展示</span></span></span></span></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:宋体">系统功能</span></span></span></p>
<p style="text-align:justify"></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:宋体">服务功能</span></span></span></p>
<p style="text-align:justify"></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:宋体">网络存储功能</span></span></span></p>
<p style="text-align:justify"></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif">VPN<span style="font-family:宋体">功能</span></span></span></p>
<p style="text-align:justify"></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:宋体">网络功能</span></span></span></p>
<p style="text-align:justify"></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:宋体">宽带监控和统计功能</span></span></span></p>
<p style="text-align:justify"></p>
<p style="text-align:justify"> </p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-size:12.0pt"><span style="font-family:宋体">总结:OpenWrt的强大之处就在于其丰富的插件功能,可以根据自己的需要来安装或卸载需要的插件,缺点嘛就是因为太复杂了,有技术门槛,对于像我这样的技术小白难度很大。完全玩起来需要大量的时间学习和摸索。</span></span></span></span></p>
</div><script> var loginstr = '<div class="locked">查看本帖全部内容,请<a href="javascript:;" style="color:#e60000" class="loginf">登录</a>或者<a href="https://bbs.eeworld.com.cn/member.php?mod=register_eeworld.php&action=wechat" style="color:#e60000" target="_blank">注册</a></div>';
if(parseInt(discuz_uid)==0){
(function($){
var postHeight = getTextHeight(400);
$(".showpostmsg").html($(".showpostmsg").html());
$(".showpostmsg").after(loginstr);
$(".showpostmsg").css({height:postHeight,overflow:"hidden"});
})(jQuery);
} </script><script type="text/javascript">(function(d,c){var a=d.createElement("script"),m=d.getElementsByTagName("script"),eewurl="//counter.eeworld.com.cn/pv/count/";a.src=eewurl+c;m.parentNode.insertBefore(a,m)})(document,523)</script> <p>不错啊,正好需要!</p>
<p>openwrt我没装成功过,,,借楼主文章学习一下试试。</p>
页:
[1]