RedHat NIC bonding

RedHat NIC bonding

/etc/modprobe.conf or /etc/modules.conf for RHEL3 and below
alias bond0 bonding
options bonding mode=1 miimon=100 downdelay=200 updelay=200 
alias eth0 tg3 
alias eth1 tg3 
alias scsi_hostadapter megaraid_mbox 
alias usb-controller ohci-hcd

/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
USERCTL=no
BOOTPROTO=none
HWADDR=00:14:5E:57:98:8E
ONBOOT=yes
MASTER=bond0
SLAVE=yes
TYPE=Ethernet


/etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
USERCTL=no
BOOTPROTO=none
HWADDR=00:14:5E:57:98:90
ONBOOT=yes
MASTER=bond0
SLAVE=yes
TYPE=Ethernet

/etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
USERCTL=no
BOOTPROTO=static
BROADCAST=10.3.1.255
IPADDR=10.3.1.235
NETMASK=255.255.255.0
NETWORK=10.3.1.0
ONBOOT=yes
TYPE=Ethernet
 
/etc/sysconfig/network-scripts/ifcfg-bond0:1
DEVICE=bond0:1
USERCTL=no
BOOTPROTO=static
BROADCAST=10.3.1.255
IPADDR=10.3.1.237
NETMASK=255.255.255.0
NETWORK=10.3.1.0
ONBOOT=yes
TYPE=Ethernet

run rmmod bonding then service network restart

No comments: