mirror of
https://github.com/Dichgrem/Blog.git
synced 2025-02-23 14:08:37 -05:00
168 lines
7.5 KiB
HTML
168 lines
7.5 KiB
HTML
![]() |
<!DOCTYPE html>
|
|||
|
<html lang="en">
|
|||
|
|
|||
|
<head>
|
|||
|
<title>Dich'blog</title>
|
|||
|
|
|||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5">
|
|||
|
<meta name="robots" content="noodp"/>
|
|||
|
|
|||
|
<link rel="stylesheet" href="https://blog.dich.ink/style.css">
|
|||
|
<link rel="stylesheet" href="https://blog.dich.ink/color/blue.css">
|
|||
|
|
|||
|
<link rel="stylesheet" href="https://blog.dich.ink/color/background_dark.css">
|
|||
|
|
|||
|
<link rel="stylesheet" href="https://blog.dich.ink/font-hack-subset.css">
|
|||
|
|
|||
|
<meta name="description" content="">
|
|||
|
|
|||
|
<meta property="og:description" content="">
|
|||
|
<meta property="og:title" content="Dich'blog">
|
|||
|
<meta property="og:type" content="article">
|
|||
|
<meta property="og:url" content="https://blog.dich.ink/openwrt/">
|
|||
|
|
|||
|
<meta name="twitter:card" content="summary_large_image">
|
|||
|
<meta name="twitter:description" content="">
|
|||
|
<meta name="twitter:title" content="Dich'blog">
|
|||
|
<meta property="twitter:domain" content="blog.dich.ink">
|
|||
|
<meta property="twitter:url" content="https://blog.dich.ink/openwrt/">
|
|||
|
|
|||
|
|
|||
|
<link rel="alternate" type="application/atom+xml" title="RSS" href="https://blog.dich.ink/atom.xml">
|
|||
|
|
|||
|
</head>
|
|||
|
|
|||
|
<body class="">
|
|||
|
<div class="container">
|
|||
|
|
|||
|
<header class="header">
|
|||
|
<div class="header__inner">
|
|||
|
<div class="header__logo">
|
|||
|
|
|||
|
<a href="https://blog.dich.ink" style="text-decoration: none;">
|
|||
|
<div class="logo">
|
|||
|
|
|||
|
Dich'blog
|
|||
|
|
|||
|
</div>
|
|||
|
</a>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<nav class="menu">
|
|||
|
<ul class="menu__inner">
|
|||
|
<li class="active"><a href="https://blog.dich.ink">blog</a></li>
|
|||
|
|
|||
|
<li><a href="https://blog.dich.ink/tags">tags</a></li>
|
|||
|
|
|||
|
<li><a href="https://blog.dich.ink/archive">archive</a></li>
|
|||
|
|
|||
|
<li><a href="https://blog.dich.ink/about">about me</a></li>
|
|||
|
|
|||
|
<li><a href="https://github.com/Dichgrem" target="_blank" rel="noopener noreferrer">github</a></li>
|
|||
|
</ul>
|
|||
|
</nav>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</header>
|
|||
|
|
|||
|
|
|||
|
<div class="content">
|
|||
|
|
|||
|
<div class="post">
|
|||
|
|
|||
|
<h1 class="post-title"><a href="https://blog.dich.ink/openwrt/">OpenWrt 软路由部署</a></h1>
|
|||
|
<div class="post-meta-inline">
|
|||
|
|
|||
|
<span class="post-date">
|
|||
|
2023-08-08
|
|||
|
</span>
|
|||
|
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
<span class="post-tags-inline">
|
|||
|
:: tags:
|
|||
|
<a class="post-tag" href="https://blog.dich.ink/tags/openwrt/">#openwrt</a></span>
|
|||
|
|
|||
|
|
|||
|
<div class="post-content">
|
|||
|
<p>前言 openwrt是一个自由的、兼容性好的嵌入式linux发行版。作为软路由玩家必备的一款神器,可以实现诸如去广告,多拨和科学上网等多种功能。本文以openwrt在X86平台的安装为例,介绍其部署流程。</p>
|
|||
|
<span id="continue-reading"></span><h2 id="wei-shen-me-shi-x86">为什么是X86?</h2>
|
|||
|
<p>无论是作为主路由或是旁路由,传统路由器由于主频低,内存小,并不适合作为软路由;而NAS-软路由一体式又有all in boom 的风险,因此推荐X86平台作为物理机。当然,也可以采用armbian平台或是开发板,例如网心云老母鸡、树莓派等设备。截至本文撰写时间,二手平台上的价格不太利好:一台J1900平台的售价往往在200左右,而专门的多网口工控机价格在200到1000不等,树莓派更是成为了理财产品,需要慎重选择。</p>
|
|||
|
<h2 id="zhun-bei-gong-zuo">准备工作</h2>
|
|||
|
<p>1.openwrt的编译包,由eSir大佬编译的三个经典版本:</p>
|
|||
|
<p>https://drive.google.com/drive/folders/1uRXg_krKHPrQneI3F2GNcSVRoCgkqESr</p>
|
|||
|
<p>2.PE启动盘,这里推荐微PE:https://www.wepe.com.cn/download.html</p>
|
|||
|
<p>3.img写盘工具:https://www.roadkil.net/program.php?ProgramID=12#google_vignette</p>
|
|||
|
<p>4.一个U盘与一台双网口物理机</p>
|
|||
|
<p>安装流程:</p>
|
|||
|
<h2 id="yi-jin-ru-pehuan-jing">一、进入PE环境:</h2>
|
|||
|
<p>1.打开微PE,将其安装进U盘中,安装完成后将ing工具和openwrt包一起放进去;
|
|||
|
<img src="https://pic.dich.ink/1/2024/03/06/65e8665416902.webp" alt="image-xgsv.webp" />
|
|||
|
2.将U盘插入目标主机,进入BIOS-boot设置U盘优先启动,各主板进入BIOS按键不同,不确定的话建议都试一遍。
|
|||
|
<img src="https://pic.dich.ink/1/2024/03/06/65e8665ae2917.webp" alt="image-uxcl.webp" /></p>
|
|||
|
<h2 id="er-ge-shi-hua-ying-pan-bing-xie-pan">二、格式化硬盘并写盘</h2>
|
|||
|
<p>1.进入PE环境中,可以看到存在名为“分区助手”的软件,打开它并将目标主机硬盘格式化;注意不要分区!不要分区!不要设置文件系统!否则后续可能无法编译!
|
|||
|
<img src="https://pic.dich.ink/1/2024/03/06/65e8666fc739c.webp" alt="image-lxgv.webp" />
|
|||
|
点击左上角提交并执行
|
|||
|
<img src="https://pic.dich.ink/1/2024/03/06/65e8667fc956e.webp" alt="image-efkt.webp" />
|
|||
|
2.打开img写盘工具,将openwrt包写入硬盘,注意不要写进U盘里。
|
|||
|
<img src="https://pic.dich.ink/1/2024/03/06/65e86669be5c8.webp" alt="image-otsu.webp" /></p>
|
|||
|
<h2 id="san-jin-ru-pei-zhi-jie-mian">三、进入配置界面</h2>
|
|||
|
<p>1.重启系统并快速拔出U盘,避免重新进入PE;这时系统开始运行了。注意Esir固件是不跑码的,无需担心。
|
|||
|
<img src="https://pic.dich.ink/1/2024/03/06/65e8666b11d79.webp" alt="image-ogrk.webp" />
|
|||
|
2.当看到please press Enter to activate this console这个提示的时候系统就安装完毕了。可使用passwd命令设置密码。软路由将自动获取IP地址,随后我们在浏览器中打开该地址,即可看到Lucl界面。
|
|||
|
<img src="https://pic.dich.ink/1/2024/03/06/65e86687ef0fc.webp" alt="image-ariu.webp" /></p>
|
|||
|
<h2 id="hou-ji">后记</h2>
|
|||
|
<p>开源世界还存在着 DD-WERT、Tomato等系统。正如互联网的发展并非一帆风顺,OpenWRT 也出现过核心开发者出走,另立山头推出 LEDE等波折,在18年LEDE与openwrt合并后,通过众多开发者的不懈努力, OpenWRT 有了现在丰富完善的生态。</p>
|
|||
|
<p>官方Wiki:https://openwrt.org/zh/start</p>
|
|||
|
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
<div class="pagination">
|
|||
|
<div class="pagination__title">
|
|||
|
<span class="pagination__title-h">Thanks for reading! Read other posts?</span>
|
|||
|
<hr />
|
|||
|
</div>
|
|||
|
<div class="pagination__buttons">
|
|||
|
|
|||
|
<span class="button next">
|
|||
|
<a href="https://blog.dich.ink/android-tv/">
|
|||
|
<span class="button__text">Android TV 折腾小记</span>
|
|||
|
<span class="button__icon">→</span>
|
|||
|
</a>
|
|||
|
</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
</div>
|
|||
|
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
<footer class="footer">
|
|||
|
<div class="footer__inner">
|
|||
|
<div class="copyright">
|
|||
|
<span>©
|
|||
|
2024
|
|||
|
Dichgrem</span>
|
|||
|
<span class="copyright-theme">
|
|||
|
<span class="copyright-theme-sep">:: </span>
|
|||
|
Theme: <a href="https://github.com/pawroman/zola-theme-terminimal/">Terminimal</a> by pawroman
|
|||
|
</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</footer>
|
|||
|
|
|||
|
|
|||
|
</div>
|
|||
|
</body>
|
|||
|
|
|||
|
</html>
|