A REAL setup guide for NIC bonding in Ubuntu Server 12.04/12.04.2 because everyone online sucks at actually posting the correct information, probably due to the current explosion of online “experts” plagiarizing other “experts” online…
This was tested on a HP DL380 with Dual Broadcom NICS.
enter root mode:
sudo bash
then install the bonding drivers:
apt-get install ifenslave-2.6
edit /etc/network/interfaces
vim /etc/network/interfaces
You can pretty much copy the following into interfaces after line 5 # The loopback network interface
################################################
auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp bond-master bond0 auto eth1 iface eth1 inet dhcp bond-master bond0 auto bond0 iface bond0 inet static address 192.168.1.xxx <----------( Enter Your Actual Server IP ) netmask 255.255.255.0 <----------( Enter Your Actual Subnet ) gateway 192.168.1.1 <----------( Enter Your Actual router/gateway IP ) bond-slaves none bond-miimon 100 bond-mode balance-rr ( Driver Mode )
################################################
edit /etc/modules
vim /etc/modules
and add bonding under rtc value
loop
lp
rtc
bonding
reboot your box or restart network services, Thats pretty much it… questions or comments? Use the comment functionality :)
What about name resolution? DO we have to add manuall in /etc/resolv.conf ? or add one more parameter on /etc/network/interfaces
dns-nameservers 8.8.8.8
Hi Kumar,
I am not sure I understand your question because DNS should not be a problem, or it does not require DNS entries in order to work properly, then again I don’t know what your network looks like. As long as you follow the tutorial it should work flawlessly, I have tested it on multiple servers and I have not had a single problem.
I did see that i missed posting a part of the process, adding “bonding” to /etc/modules, but I have rectified that issue.
let me know if I can be of further assistance.
Regards,