yum install ethtool -y
-----------------------------------------------
Create a new bond NIC called bond0 (192.168.0.100 is the bonding IP)
gedit /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
DNS1=8.8.8.8
IPADDR=192.168.0.100
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
USERCTL=no
BOOTPROTO=none
NM_CONTROLLED=no
-----------------------------------------------
gedit /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=AA:A8:2A:20:05:C7
NM_CONTROLLED=no
ONBOOT=yes
USERCTL=no
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
-----------------------------------------------
gedit /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
HWADDR=AA:A8:2A:20:05:C8
NM_CONTROLLED=no
ONBOOT=yes
USERCTL=no
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
-----------------------------------------------
gedit /etc/sysconfig/network-scripts/ifcfg-eth2
DEVICE=eth2
HWADDR=AA:A8:2A:20:05:C9
NM_CONTROLLED=no
ONBOOT=yes
USERCTL=no
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
-----------------------------------------------
gedit /etc/sysconfig/network-scripts/ifcfg-eth3
DEVICE=eth3
HWADDR=AA:A8:2A:20:05:CA
NM_CONTROLLED=no
ONBOOT=yes
USERCTL=no
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
-----------------------------------------------
gedit /etc/modprobe.d/bonding.conf
alias bond0 bonding
options bond0 mode=1 miimon=100 downdelay=200 updelay=200
-----------------------------------------------
-----------------------------------------------
modprobe bonding
service network restart
-----------------------------------------------
--------------------------------------------------------------- Finished--------------------------------------
check the Bonding status use the command below:
cat /proc/net/bonding/bond0
-----------------------------------------------
2016年3月14日星期一
訂閱:
發佈留言 (Atom)
沒有留言:
發佈留言