Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
gollum11233
V2EX  ›  Linux

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

  •  
  •   gollum11233 · Sep 27, 2021 · 2910 views
    This topic created in 1691 days ago, the information mentioned may be changed or developed.
    不能直接删掉 bond 接口( ifcfg-bond0 ),不然网就直接挂了连不上远程服务器了,有什么办法能取消掉绑定网卡的 Slave 状态,让网卡取消绑定各自独立工作,同时又不会断了远程连接。
    5 replies    2021-11-13 23:12:06 +08:00
    defunct9
        1
    defunct9  
       Sep 28, 2021
    em1 和 em2 做了 bonding,em1 主,那么直接 ifdown em2,修改了 ifcfg-em2,ifup em2,em2 就好了。然后改 em1 就行了
    iBugOne
        2
    iBugOne  
       Sep 28, 2021
    ip link set eth0 nomaster
    iceecream
        3
    iceecream  
       Oct 17, 2021
    编辑非活动网卡,踢出 bond 就可以了。
    gollum11233
        4
    gollum11233  
    OP
       Nov 10, 2021
    @iceecream 能不能请教下具体操作
    liuliancao
        5
    liuliancao  
       Nov 13, 2021
    cat /proc/net/bonding/bond0 配合 ethtool -i eth0 ethtool -i eth1 好像啥的 看下包的流量 或者你抓下包 如果是主备的话
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3020 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 07:17 · PVG 15:17 · LAX 00:17 · JFK 03:17
    ♥ Do have faith in what you're doing.