View Single Post
  #2 (permalink)  
Old 18-06-2007, 10:11 PM
nixcraft's Avatar
nixcraft nixcraft is offline
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 244 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Hi,

You need to add following package to attach and detach slave interfaces to a bonding device
Code:
sudo apt-get update && apt-get install ifenslave-2.6
Enable bond0
Now setup bonding mode for Round-robin policy:
Code:
vi /etc/modprobe.d/arch/i386
Code:
alias bond0 bonding
options bonding mode=0 miimon=100
Now open /etc/network/interfaces and modify as follows:
Code:
auto lo
iface lo inet loopback1
auto bond0
iface bond0 inet static
   address 192.168.1.100
   netmask 255.255.255.0
   network 192.168.1.0
   broadcast 192.168.1.255
   gateway 192.168.1.254
   post-up ifenslave bond0 eth0 eth1
And just restart computer and you are done test the same:
Code:
less /proc/net/bonding/bond0
ifconfig -a
See following links for more info:
Linux Ethernet Bonding Driver HOWTO

Debian Administration :: Aggregating network interfaces

Linux bond or team multiple network interfaces (NIC) into single interface | nixCraft
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote