Network Bonding with Failover

Build it and learn to secure your system/server.


Network Bonding with Failover

Postby Micro » Thu Jan 10, 2013 9:34 pm

"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
Image
https://www.linkedin.com/in/josephperrello
Thermaltake Series Core X9 SPCC E-ATX Cube Case
CORSAIR Vengeance LPX 64GB Quad Channel DDR4
EVGA 120-G1-0750-XR 80 PLUS GOLD 750W PSU
APC BR1300G Back-UPS Pro 780W/1300VA UPS
ASRock X99 Extreme4 LGA X99 Motherboard
OC-Intel Core i7-5820K @ 4.1GHz × 12
Corsair H100i V2 CPU Cooler. 240mm
Kernel Linux 4.6.4-1-ARCH x86_64
MATE Desktop Environment 1.12.1
OS - SAMSUNG 950 PRO M.2 512GB
DATA - 2 SSD 840 EVO RAID 0
MEDIA - 4 HDD 3TB RAID 0
NVIDIA GeForce GTX750 Ti
ViewSonic PJD7820HD
OS - Filesystem F2FS
Arch Linux
User avatar
Micro
Site Admin
 
Posts: 485
Joined: Tue Apr 24, 2012 1:16 pm
Age: 41
Operating System: Other Linux



Re: Network Bonding with Failover

Postby pam » Thu Jan 10, 2013 11:22 pm

am also planning to setup 3x 2G broadband at home.

Thanks Micro.
DONOTSPAMORTROLL:
http://forumubuntusoftware.info/viewtopic.php?f=9&t=11
Download Ultimate Edition and Oz Unity 3.0 from copy:-
https://www.copy.com/s/oBnDBsDOvxF8jW1EuLKM/Public
Download Ultimate Edition from sourceforge:-
http://sourceforge.net/projects/ultimat ... rce=navbar
Download Oz Unity 3.0 from sourceforge:-
http://sourceforge.net/projects/ueoz/files/UEOz/
Download Ultimate Edition torrents from linuxtracker:-
http://linuxtracker.org/index.php?page= ... 0&active=1
Download Oz Unity 3.0 torrents from linuxtracker:-
http://linuxtracker.org/index.php?page= ... 0&active=1
Image Image
Visit:http://www.ultimateeditionoz.com
User avatar
pam
Site Admin
 
Posts: 1087
Joined: Wed May 25, 2011 5:56 am
Location: India
Age: 33
Operating System: Ultimate Edition 3.5 64 BIT



Re: Network Bonding with Failover

Postby Micro » Thu Jan 10, 2013 11:48 pm

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 ;)
Image
https://www.linkedin.com/in/josephperrello
Thermaltake Series Core X9 SPCC E-ATX Cube Case
CORSAIR Vengeance LPX 64GB Quad Channel DDR4
EVGA 120-G1-0750-XR 80 PLUS GOLD 750W PSU
APC BR1300G Back-UPS Pro 780W/1300VA UPS
ASRock X99 Extreme4 LGA X99 Motherboard
OC-Intel Core i7-5820K @ 4.1GHz × 12
Corsair H100i V2 CPU Cooler. 240mm
Kernel Linux 4.6.4-1-ARCH x86_64
MATE Desktop Environment 1.12.1
OS - SAMSUNG 950 PRO M.2 512GB
DATA - 2 SSD 840 EVO RAID 0
MEDIA - 4 HDD 3TB RAID 0
NVIDIA GeForce GTX750 Ti
ViewSonic PJD7820HD
OS - Filesystem F2FS
Arch Linux
User avatar
Micro
Site Admin
 
Posts: 485
Joined: Tue Apr 24, 2012 1:16 pm
Age: 41
Operating System: Other Linux



Re: Network Bonding with Failover

Postby pam » Fri Jan 11, 2013 12:33 am

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
DONOTSPAMORTROLL:
http://forumubuntusoftware.info/viewtopic.php?f=9&t=11
Download Ultimate Edition and Oz Unity 3.0 from copy:-
https://www.copy.com/s/oBnDBsDOvxF8jW1EuLKM/Public
Download Ultimate Edition from sourceforge:-
http://sourceforge.net/projects/ultimat ... rce=navbar
Download Oz Unity 3.0 from sourceforge:-
http://sourceforge.net/projects/ueoz/files/UEOz/
Download Ultimate Edition torrents from linuxtracker:-
http://linuxtracker.org/index.php?page= ... 0&active=1
Download Oz Unity 3.0 torrents from linuxtracker:-
http://linuxtracker.org/index.php?page= ... 0&active=1
Image Image
Visit:http://www.ultimateeditionoz.com
User avatar
pam
Site Admin
 
Posts: 1087
Joined: Wed May 25, 2011 5:56 am
Location: India
Age: 33
Operating System: Ultimate Edition 3.5 64 BIT



Re: Network Bonding with Failover

Postby Micro » Fri Jan 11, 2013 12:45 am

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..
Image
https://www.linkedin.com/in/josephperrello
Thermaltake Series Core X9 SPCC E-ATX Cube Case
CORSAIR Vengeance LPX 64GB Quad Channel DDR4
EVGA 120-G1-0750-XR 80 PLUS GOLD 750W PSU
APC BR1300G Back-UPS Pro 780W/1300VA UPS
ASRock X99 Extreme4 LGA X99 Motherboard
OC-Intel Core i7-5820K @ 4.1GHz × 12
Corsair H100i V2 CPU Cooler. 240mm
Kernel Linux 4.6.4-1-ARCH x86_64
MATE Desktop Environment 1.12.1
OS - SAMSUNG 950 PRO M.2 512GB
DATA - 2 SSD 840 EVO RAID 0
MEDIA - 4 HDD 3TB RAID 0
NVIDIA GeForce GTX750 Ti
ViewSonic PJD7820HD
OS - Filesystem F2FS
Arch Linux
User avatar
Micro
Site Admin
 
Posts: 485
Joined: Tue Apr 24, 2012 1:16 pm
Age: 41
Operating System: Other Linux



Re: Network Bonding with Failover

Postby pch.shot » Fri Jan 11, 2013 1:01 am

<BREW>
Systems Windows XP Pro 32 bit & various Linux in Virtual Box and VMWare Player
Intel i7 2600K cpu with built in Intel 3000 video
1 OCZ Vertex 3 120 gig ssd(System)
1 Western Digital 2 Terabyte Green internal hard drive(Storage)
Kingston ddr3 1333 ram(4 gig)
MSI Z68A-GD80(G3)mobo w/hdmi video and optical audio
Realtek HD audio
Realtek lan
1 LG sata optical drive
Antec Sonata IV case/620 watt psu
50 inch LG plasma tv/monitor
Sony surround sound amp
Axiom speakers
optical sound
User avatar
pch.shot
U.E. God
U.E. God
 
Posts: 3685
Joined: Sat Feb 02, 2008 12:28 pm
Location: Chippawa, Canada
Age: 64
Operating System: Microsoft Windows



Re: Network Bonding with Failover

Postby TheeMahn » Sun Jan 13, 2013 5:33 am

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 ;)
Home of Ultimate Edition. Got a question? Please review the F.A.Q. Browse the How to section.

Main O/S: Builder of O/S Guess.
Mainboard: ASUS Hero VI (AM4)
CPU: AMD 1700X water cooled (Deepcool Captain Genome Cooling tower)
Ram: 16 GB GSkill Trident RGB Series Dual Channel DDR4 3200
Video: MSI RX470 8GB Gaming card.
Hard Disks: MASSIVE on the network.(10 Gigabit, 48 port, multiple servers)
Monitors: 4K Samsung 28", HannsG HH281, Various others
750 Watt modular PSU (Rosswell)
1100 Watt Amp & 4 X 600 Watt speakers

Servers in the basement.
User avatar
TheeMahn
Site Admin
 
Posts: 4199
Joined: Fri Oct 12, 2007 10:02 am
Location: U.S.A.
Age: 47
Operating System: Ultimate Edition Developer



Re: Network Bonding with Failover

Postby Micro » Mon Jan 14, 2013 1:26 am

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...
Image
https://www.linkedin.com/in/josephperrello
Thermaltake Series Core X9 SPCC E-ATX Cube Case
CORSAIR Vengeance LPX 64GB Quad Channel DDR4
EVGA 120-G1-0750-XR 80 PLUS GOLD 750W PSU
APC BR1300G Back-UPS Pro 780W/1300VA UPS
ASRock X99 Extreme4 LGA X99 Motherboard
OC-Intel Core i7-5820K @ 4.1GHz × 12
Corsair H100i V2 CPU Cooler. 240mm
Kernel Linux 4.6.4-1-ARCH x86_64
MATE Desktop Environment 1.12.1
OS - SAMSUNG 950 PRO M.2 512GB
DATA - 2 SSD 840 EVO RAID 0
MEDIA - 4 HDD 3TB RAID 0
NVIDIA GeForce GTX750 Ti
ViewSonic PJD7820HD
OS - Filesystem F2FS
Arch Linux
User avatar
Micro
Site Admin
 
Posts: 485
Joined: Tue Apr 24, 2012 1:16 pm
Age: 41
Operating System: Other Linux


Return to Server and Security

Who is online

Users browsing this forum: No registered users and 4 guests