经过实测,走bond 1是个不错的选择;
cat << EOF > /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=none
TYPE=Ethernet
USERCTL=no
IPADDR=0.0.0.0
NETMASK=255.255.255.0
GATEWAY=0.0.0.0
EOF
cat << EOF > /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
TYPE=Ethernet
BOOTPROTO=none
MASTER=bond0
SLAVE=yes
USERCTL=yes
EOF
cat << EOF > /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
ONBOOT=yes
TYPE=Ethernet
BOOTPROTO=none
MASTER=bond0
SLAVE=yes
USERCTL=yes
EOF
cat << EOF >> /etc/modprobe.d/bond.conf
alias bond0 bonding
options bond0 mode=1 miimon=100
EOF
这篇博客介绍了如何通过配置文件设置网络bonding,以实现eth0和eth1接口的bond0聚合。配置包括在`/etc/sysconfig/network-scripts/`目录下创建ifcfg-bond0、ifcfg-eth0和ifcfg-eth1文件,并在`/etc/modprobe.d/`下添加bond.conf,设定bond0为模式1(平衡-负载分担)并启用miimon监测。
952

被折叠的 条评论
为什么被折叠?



