Page 1 of 1

Network Bonding with Failover

PostPosted: Thu Jan 10, 2013 9:34 pm
by Micro
"Ethernet bonding refers to aggregating multiple ethernet channels together to form a single channel. This is primarily used for redundancy in ethernet paths or for load balancing." To enable bonding in Debian you need to have the package below. Versions may vary
Code: Select all
apt-get install ifenslave-2.6

Then to start the process you need to shut down both of the network interfaces that you want to bond. (not limited to just 2 interfaces if you are wondering. I have bonded 4-10Gig fibre chanels into a 40Gig pipe. To a sys admin, that is bad a$$ throughput) Neways:
Code: Select all
ifdown eth0

Code: Select all
ifdown eth1

Code: Select all
/etc/init.d/networking stop

Then we need to modify
Code: Select all
vi /etc/network/interfaces
or
Code: Select all
gedit /etc/network/interfaces

To look like below. And of course we use a static address in our homes. Turn of DHCP on router, change IP Pools to something other than basic 192.168.0.100, plus limit IP range to only the amount of devices on our home network. Therefore no other connections can be made. Security in this day and age is paramount

auto bond0

iface bond0 inet static
address 10.31.1.5
netmask 255.255.255.0
network 10.31.1.0
gateway 10.31.1.254
slaves eth0 eth1
bond-mode active-backup
bond-miimon 100
bond-downdelay 200
bond-updelay 200
Then to active the bond and start network:
Code: Select all
ifup bond0

Code: Select all
/etc/init.d/networking start

Re: Network Bonding with Failover

PostPosted: Thu Jan 10, 2013 11:22 pm
by pam
am also planning to setup 3x 2G broadband at home.

Thanks Micro.

Re: Network Bonding with Failover

PostPosted: Thu Jan 10, 2013 11:48 pm
by Micro
Np at all. I usually do this in RHEL so I had to look up the Debian way. May start making some how to's on how I STIG my Linux boxes. But not too sure anyone would really have interest in securing their machine and locking down world writable directories and such. More for the Enterprise arena than home computing. Glad to see it's of interest to ya pam :), and ya never know when a port or a nic can drop dead at any time. Now your services at least won't be affected ;)

Re: Network Bonding with Failover

PostPosted: Fri Jan 11, 2013 12:33 am
by pam
Very true..my intent is to build a bonded network with 2g connections as they are pretty cheap and working at low speeds..128-144 kbps(13- 14 KBps download speed)....with a 4GB cap for each so a total of 12 GB.
So on bonding that comes to around 390 kbps--around 40KBps download ..... starters for streaming youtube....
...lets see

Re: Network Bonding with Failover

PostPosted: Fri Jan 11, 2013 12:45 am
by Micro
Broadband hmmm, very interesting. So three 2gb connections bonded on a single box would give you a single 6gb net. You should yield close to 800 kb sec on download and just about 60kb sec upload. But if you on your home network and are transfering files across multiple boxes through a gigabit capable switch, bonding will double your transfer rates if you link two ports and triple if you use three and so on..

Re: Network Bonding with Failover

PostPosted: Fri Jan 11, 2013 1:01 am
by pch.shot
<BREW>

Re: Network Bonding with Failover

PostPosted: Sun Jan 13, 2013 5:33 am
by TheeMahn
Micro wrote:"Ethernet bonding refers to aggregating multiple ethernet channels together to form a single channel. This is primarily used for redundancy in ethernet paths or for load balancing." To enable bonding in Debian you need to have the package below. Versions may vary
Code: Select all
apt-get install ifenslave-2.6

Then to start the process you need to shut down both of the network interfaces that you want to bond. (not limited to just 2 interfaces if you are wondering. I have bonded 4-10Gig fibre chanels into a 40Gig pipe. To a sys admin, that is bad a$$ throughput) Neways:
Code: Select all
ifdown eth0

Code: Select all
ifdown eth1

Code: Select all
/etc/init.d/networking stop

Then we need to modify
Code: Select all
vi /etc/network/interfaces
or
Code: Select all
gedit /etc/network/interfaces

To look like below. And of course we use a static address in our homes. Turn of DHCP on router, change IP Pools to something other than basic 192.168.0.100, plus limit IP range to only the amount of devices on our home network. Therefore no other connections can be made. Security in this day and age is paramount

auto bond0

iface bond0 inet static
address 10.31.1.5
netmask 255.255.255.0
network 10.31.1.0
gateway 10.31.1.254
slaves eth0 eth1
bond-mode active-backup
bond-miimon 100
bond-downdelay 200
bond-updelay 200
Then to active the bond and start network:
Code: Select all
ifup bond0

Code: Select all
/etc/init.d/networking start

Loan me your pipe ;)

Re: Network Bonding with Failover

PostPosted: Mon Jan 14, 2013 1:26 am
by Micro
Was talking about work of course. 4-10gb bond on a dell r910 RHEL/oracle 11G db. You can have my measley 50meg anytime. I would never refuse, just tell me what to spin up and it's yours...