七種bond模式說明:mod=0:(balance-rr) Round-robin policy(平衡掄迴圈策略)mod=1:(active-backup) Active-backup policy(主-備份策略)mod=2:(balance-xor) XOR policy(平衡策略)mod=3:b ...
七種bond模式說明:
mod=0:(balance-rr) Round-robin policy(平衡掄迴圈策略)
mod=1:(active-backup) Active-backup policy(主-備份策略)
mod=2:(balance-xor) XOR policy(平衡策略)
mod=3:broadcast(廣播策略)
mod=4:(802.3ad) IEEE 802.3ad Dynamic link aggregation(IEEE 802.3ad 動態鏈接聚合)
mod=5:(balance-tlb) Adaptive transmit load balancing(適配器傳輸負載均衡)
mod=6:(balance-alb) Adaptive load balancing(適配器適應性負載均衡)
1.關閉網路管理服務
systemctl stop NetworkManager && systemctl disable NetworkManager
systemctl restart network
2.修改網卡配置
3.在/etc/modprobe.d/下創建配置文件bonding.conf,插入下列參數
#系統在啟動時載入bonding模塊,對外虛擬網路介面設備為 bond0;miimon=200表示系統每200ms監測一次鏈路連接狀態
4.編輯/etc/rc.local文件,配置開機綁定
5.驗證
ifconfig查看3塊網卡mac地址相同
cat /proc/net/bonding/bond0,查看網卡綁定狀態