V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
gollum11233
V2EX  ›  Linux

Bond 模式下如何取消双网卡中某一网卡的 Slave 状态

  •  
  •   gollum11233 · 2021-09-27 16:10:32 +08:00 · 1960 次点击
    这是一个创建于 934 天前的主题,其中的信息可能已经有所发展或是发生改变。
    不能直接删掉 bond 接口( ifcfg-bond0 ),不然网就直接挂了连不上远程服务器了,有什么办法能取消掉绑定网卡的 Slave 状态,让网卡取消绑定各自独立工作,同时又不会断了远程连接。
    5 条回复    2021-11-13 23:12:06 +08:00
    defunct9
        1
    defunct9  
       2021-09-28 09:36:30 +08:00
    em1 和 em2 做了 bonding,em1 主,那么直接 ifdown em2,修改了 ifcfg-em2,ifup em2,em2 就好了。然后改 em1 就行了
    iBugOne
        2
    iBugOne  
       2021-09-28 10:03:49 +08:00
    ip link set eth0 nomaster
    iceecream
        3
    iceecream  
       2021-10-17 20:22:12 +08:00
    编辑非活动网卡,踢出 bond 就可以了。
    gollum11233
        4
    gollum11233  
    OP
       2021-11-10 13:48:44 +08:00
    @iceecream 能不能请教下具体操作
    liuliancao
        5
    liuliancao  
       2021-11-13 23:12:06 +08:00
    cat /proc/net/bonding/bond0 配合 ethtool -i eth0 ethtool -i eth1 好像啥的 看下包的流量 或者你抓下包 如果是主备的话
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2757 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 00:25 · PVG 08:25 · LAX 17:25 · JFK 20:25
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.