V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
OpenWrt 是一个专门面向嵌入式设备的 Linux 发行版。你可以将 OpenWrt 支持的型号的嵌入式设备,比如各种路由器上的系统,换成一个有更多可能性可以折腾的 Linux 系统。
OpenWrt 官方网站
Archeb
V2EX  ›  OpenWrt

OpenWRT 设置 NIC Bonding 的方法

  •  
  •   Archeb · 2019-12-20 17:06:39 +08:00 · 622 次点击
    这是一个创建于 1581 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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
    

    以上,就是这样...

    第 1 条附言  ·  2019-12-22 11:02:39 +08:00
    要先把需要 bond 的设备 link down 了才能设置 master !!!
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5671 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 01:51 · PVG 09:51 · LAX 18:51 · JFK 21:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.