第一步:# vi /etc/sysconfig/network-scripts/ifcfg-bond0 DEVICE=bond0 BONDING_OPTS="mode=0 miimon=100" BOOTPROTO=none ONBOOT=yes BROADCAST=192.168.0.255 IP ...
第一步:# vi /etc/sysconfig/network-scripts/ifcfg-bond0 DEVICE=bond0 BONDING_OPTS="mode=0 miimon=100" BOOTPROTO=none ONBOOT=yes BROADCAST=192.168.0.255 IPADDR=192.168.0.180 NETMASK=255.255.255.0 NETWORK=192.168.0.0 USERCTL=no BONDING_OPTS="mode=0 miimon=100" ,mode有多種模式實現不同的功能, 雲伺服器、雲資料庫方案、網路安全防護優選 第二步:# vi /etc/sysconfig/network-scripts /ifcfg-eth0 DEVICE=eth0 BOOTPROTO=none ONBOOT=yes MASTER=bond0 SLAVE=yes USERCTL=no # vi /etc/sysconfig/network-scripts /ifcfg-eth1 DEVICE=eth1 BOOTPROTO=none ONBOOT=yes MASTER=bond0 SLAVE=yes USERCTL=no 第三步:配置/etc/modprobe.conf,添加alias bond0 bonding # vi /etc/modprobe.conf alias eth0 e1000e alias eth1 e1000e alias scsi_hostadapter mptbase alias scsi_hostadapter1 mptspi alias bond0 bonding 第四步:重啟網路服務 #service network restart