วันพฤหัสบดีที่ 20 สิงหาคม พ.ศ. 2558

Set Bonding NIC on CentOS

1. #ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no
ETHTOOL_OPTS="autoneg off speed 1000 duplex full"


2. #ifcfg-eth1
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no
ETHTOOL_OPTS="autoneg off speed 1000 duplex full"
*** comment if centos 6.5

3. # Broadcom Corporation NetXtreme BCM5722 Gigabit Ethernet PCI Express
   #ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
#MASTER=bond0
#SLAVE=yes
USERCTL=no
ONBOOT=yes
IPADDR=192.168.xxx.xxx
NETMASK=255.255.255.0
NETWORK=192.168.xxx.255
GATEWAY=192.168.xxx.xxx

4. modprobe.conf
++++ Centos 5.4
# nano /etc/modprobe.conf
alias eth0 tg3
alias eth1 tg3
alias bond0 bonding
options bonding miimon=100 mode=4
alias scsi_hostadapter mptbase
alias scsi_hostadapter1 mptsas
alias scsi_hostadapter2 ata_piix

+++ Centos 6.5
# nano /etc/modprobe.d/bonding.conf
---
alias eth0 tg3
alias eth1 tg3
alias bond0 bonding
options bonding miimon=100 mode=4
alias scsi_hostadapter mptbase
alias scsi_hostadapter1 mptsas
alias scsi_hostadapter2 ata_piix
---
5. # /etc/init.d/networks restart

6. # cat /proc/net/bonding/bond0

ไม่มีความคิดเห็น:

แสดงความคิดเห็น