OpenWrt 是一个专门面向嵌入式设备的 Linux 发行版。你可以将 OpenWrt 支持的型号的嵌入式设备,比如各种路由器上的系统,换成一个有更多可能性可以折腾的 Linux 系统。
OpenWrt 官方网站
Archeb
V2EX  ›  OpenWrt

OpenWRT 设置 NIC Bonding 的方法

  •  
  •   Archeb · Dec 20, 2019 · 1281 views
    This topic created in 2353 days ago, the information mentioned may be changed or developed.

    OpenWRT 官方文档在这方面实在是太过欠缺

    网上能搜到的资料更是少之又少,能搜到的资料要么就是完全不能用,要么就是过时了,早就已经没有 ifenslave 这个包了

    因为 V 站谷歌索引比较好所以在这记录一下

    https://forum.openwrt.org/t/best-way-to-configure-bonding-in-openwrt/26290/3 这里写的方法缺了点东西,没法直接用

    研究了一下...要先设置 nic 的 type

    ip link add bond1 type bond mode balance-rr
    ip link set tap_link1 type bond_slave
    ip link set tap_link1 master bond1
    ip link set tap_link2 type bond_slave
    ip link set tap_link2 master bond1
    ip addr add 10.8.0.1/24 dev bond1
    ip link set bond1 up
    

    以上,就是这样...

    Supplement 1  ·  Dec 22, 2019
    要先把需要 bond 的设备 link down 了才能设置 master !!!
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   865 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 402ms · UTC 20:16 · PVG 04:16 · LAX 13:16 · JFK 16:16
    ♥ Do have faith in what you're doing.