From 2ff04e054a70efda01ee87de219f1a4546192f8a Mon Sep 17 00:00:00 2001 From: Jeffery Date: Mon, 5 May 2025 03:28:17 +0000 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20OpenWRT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OpenWRT.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 OpenWRT.md diff --git a/OpenWRT.md b/OpenWRT.md new file mode 100644 index 0000000..432fb1d --- /dev/null +++ b/OpenWRT.md @@ -0,0 +1,41 @@ +# 安裝 + +## 1. 下載映像檔壓縮檔 + +```console +wget https://downloads.openwrt.org/releases/23.05.3/targets/x86/64/openwrt-23.05.3-x86-64-generic-ext4-combined.img.gz +``` + +## 2. 解壓縮映像檔 + +```console +gzip -d openwrt-23.05.3-x86-64-generic-ext4-combined.img.gz +``` + +## 3. 將映像檔移到 ISO + +```console +cp openwrt-23.05.3-x86-64-generic-ext4-combined.img /var/lib/vz/template/iso +``` + +## 4. 建立無硬碟的虛擬機,紀錄虛擬機編號 +## 5. 將映像檔指派到虛擬機 + +```console +qm disk import 201 /var/lib/vz/template/iso/openwrt-23.05.3-x86-64-generic-ext4-combined.img local-lvm +``` + +## 6. 虛擬機選項: 開機順序全部取消 +## 7. 進入虛擬機,修改網路 + +```console +vi /etc/config/network +``` + +```console +service network restart +``` + +## 8. 嘗試連線OpenWRT +Username: root +Password: \ No newline at end of file