不重啟系統下變更 bonding mode

    內容表格
    1. 1. RedHat 5/6
    2. 2. RedHat 4

    NOTE:

    • 此方法尚未經過實際操作
    • 在 RedHat 7 系統下無法執行,當停用網路 bond0 後,找不到路徑 /sys/class/net/bond0/bonding/mode。

    RedHat 5/6

    1. Find current bonding mode:

    # cat /sys/class/net/bond0/bonding/mode
    balance-rr   0
    

    2. Change the bonding mode:

    # ifdown bond0
    
    # echo 1 > /sys/class/net/bond0/bonding/mode
    
    # cat /sys/class/net/bond0/bonding/mode
    active-backup 1
    

    3. Up the bond0 again:

    # ifup bond0
    

    4. Check if the bonding mode has been changed:

    # cat /proc/net/bonding/bond0
    

    RedHat 4

    1. Find current bonding mode:

    # cat /proc/net/bonding/bond0
    ...
    Bonding mode: round-robin
    

    2. Down all bonding information and change the bonding mode:

    # ifdown bond0
    NOTE: please down other bonding interfaces if you have
    
    # rmmod bonding
    

    Edit /etc/modprobe.conf to change the bonding options (the line should look like ):options bonding mode=0 miimon=100

    This can be changed to: options bonding mode=1 miimon=100

    3. Up the bond0 (and other bonding interface) again. The bonding module will be reloaded automatically:

    # ifup bond0
    

    4. Check if the bonding mode has been changed:

    # cat /proc/net/bonding/bond0
    
    標籤 (Edit tags)
    • No tags
    您必須 登入 才能發佈評論。
    Powered by MindTouch Core