public:it:openwrt

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
public:it:openwrt [2022/08/16 13:43] – [VMWare 创建 OpenWrt 虚拟机] oakfirepublic:it:openwrt [2022/09/27 17:56] (当前版本) – [VLAN] oakfire
行 2: 行 2:
   * [[https://openwrt.org/]]   * [[https://openwrt.org/]]
   * [[https://openwrt.org/packages/start|Packages]], ''opkg''   * [[https://openwrt.org/packages/start|Packages]], ''opkg''
 +===== device =====
 +  * https://openwrt.org/docs/guide-developer/adding_new_device
 +===== Tips =====
 +  * openwrt 内 ''git clone'' 时遇到 报错 <code>git: 'remote-https' is not a git command. See 'git --help'</code>,安装 git-http 可解决此问题 ''opkg install git-http''
 +===== feeds =====
 +  * https://openwrt.org/docs/guide-developer/feeds
 +  * [[https://openwrt.org/docs/guide-developer/toolchain/single.package|Building a single package]] - 编译单一 package的步骤
 +===== ubus =====
 +  * https://openwrt.org/docs/techref/ubus
 ===== UCI ===== ===== UCI =====
   * https://openwrt.org/docs/guide-user/base-system/uci   * https://openwrt.org/docs/guide-user/base-system/uci
行 9: 行 18:
   * https://github.com/openwrt/luci/wiki/Documentation   * https://github.com/openwrt/luci/wiki/Documentation
   * [[http://openwrt.github.io/luci/api/index.html|Server side Lua APIs]]   * [[http://openwrt.github.io/luci/api/index.html|Server side Lua APIs]]
 +  * 大部分数据获取通过 [[https://openwrt.org/docs/techref/ubus|ubus]], 由实现 jsonrpc2.0 协议的 ''uhttpd-mod-ubus'' 模块提供功能
  
 ===== uHTTPd ===== ===== uHTTPd =====
   * https://openwrt.org/docs/guide-user/services/webserver/http.uhttpd   * https://openwrt.org/docs/guide-user/services/webserver/http.uhttpd
   * https://openwrt.org/docs/guide-user/services/webserver/uhttpd   * https://openwrt.org/docs/guide-user/services/webserver/uhttpd
 +
 +===== VLAN =====
 +  * [[https://info.support.huawei.com/info-finder/encyclopedia/zh/VLAN.html|VLAN介绍]]
 +  * [[https://openwrt.org/docs/guide-user/network/vlan/switch_configuration|openwrt 对于 vlan 操作的介绍]], 
 +    * 使用 openwrt swconfig 驱动方式的 switch 设备可以用 ''switch_vlan'' 的方式进行 vlan 划分;
 +    * 而使用 linux 最新 DSA switch 驱动方式的,则使用 openwrt v21.0 之后的luci 界面表现的 ''bridge_vlan'' 方式划分vlan。
 +    * DSA switch 驱动会把每个lan口都表现为一个lan设备, ifconfig 会看到 lan1到lan4不等
 +
 ===== VMWare 创建 OpenWrt 虚拟机 ===== ===== VMWare 创建 OpenWrt 虚拟机 =====
  
行 28: 行 46:
     - 在 vmware 扩展硬盘;     - 在 vmware 扩展硬盘;
     - 进入openwrt, 安装必要软件: ''opkg update'', ''opkg install block-mount e2fsprogs fdisk blkid''     - 进入openwrt, 安装必要软件: ''opkg update'', ''opkg install block-mount e2fsprogs fdisk blkid''
-    - 配置<code bash>fdisk /dev/sda+    - 配置新分区<code bash>fdisk /dev/sda
 m  # enter help m  # enter help
 n  # add new n  # add new
  • public/it/openwrt.1660628594.txt.gz
  • 最后更改: 2022/08/16 13:43
  • oakfire