LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-02-2010, 07:07 AM   #1
notihnio
LQ Newbie
 
Registered: Oct 2009
Location: Greece
Distribution: slackware-current
Posts: 23

Rep: Reputation: 5
bonding 2 or more adsl connections


hello to all!!

i wonder if it is possible to use linux (especially slackware) to bond 2 (ethernet modems) adsl connections. For example if i have 2 connection of 24mbs download and 512 upload i will create achieve 48 mgps dowload and 1 mgps upload .

something like that


adsl1 modem <------ eth1--- (slackbox router) --- eth0---> my server
adsl2 modem <------ eth2----

thank you very much

Last edited by notihnio; 11-02-2010 at 07:08 AM.
 
Old 11-02-2010, 08:33 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
I believe that the first requirement is that your ISP supports bonding. Check that before proceeding.
 
1 members found this post helpful.
Old 11-02-2010, 10:12 AM   #3
CmdoColin
Member
 
Registered: Jul 2009
Posts: 31

Rep: Reputation: 17
Yes, your ISP or you need to provide the "other end". An ISP generally charge for this feature, and they generally want to own and manage the router

What happens is:

IP address 1 --- adsl1 modem <------ eth1---- (slackbox router) --- eth0---> my server

IP address 2 --- adsl2 modem <------ eth2----

As such any connection I have will be via that IP address. If my TCP SYN packet goes out of eth1, it will have one IP address. The SYN-ACK will come back to that IP address (interface). If my ACK then goes out of eth2, then the remote server has no record of that IP with those ports. (and firewalls can add even more problems to this)

So to do this, you need be able to control the layer 3. You could do this to a remote server, and then have a GRE tunnel to it. But that termination point needs solid bandwidth. Probably the easier approach with 2 circuits would be to load balance them. Look at your traffic and then config the router to split it between the two adsl connections.

eg 50% of my traffic is to my server, the "other" traffic is random. As such I could send all my server requests out of eth1, and everything else out of eth2

That load balancing generally needs tinkering with as your traffic patterns change, but it's the easiest way to spread data across 2 circuits. The downside is, (and using my example) if all I'm doing is uploading and downloading files to my server, I have a circuit sitting their doing nothing...
 
1 members found this post helpful.
Old 11-07-2010, 10:22 AM   #4
notihnio
LQ Newbie
 
Registered: Oct 2009
Location: Greece
Distribution: slackware-current
Posts: 23

Original Poster
Rep: Reputation: 5
thank you all for your help!!

stress_junkie you are true! my isp support that service!!!

CmdoColin yes i believe it is a good way too!! i don't want this structure to download files exactly. I want want to create an online music streaming service via my Apache!! so i want to have as much upload i could!! can i spread those data from 2 circuits or more?????
 
Old 11-09-2010, 02:57 AM   #5
Steviepower
Member
 
Registered: May 2010
Location: Eindhoven
Distribution: ubuntu/debian
Posts: 152

Rep: Reputation: 25
offtopic: try subsonic, works amazing for music streaming depending on what you want of course
ontopic: if it's about more clients connecting you could also use load balancing, problem is just that you can't have any connections that go over the max upload of one link. if you have lots of incoming connections that shouldn't be a problem tho.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bonding or Teaming 2 adsl pppoe connections. wicko Linux - Networking 1 12-19-2007 03:30 PM
Bonding two internet connections zamri Linux - Networking 6 08-19-2005 10:42 AM
Combined ADSL connections snowzie Linux - Wireless Networking 1 05-29-2005 10:42 PM
bonding ADSL jober Linux - Networking 3 12-09-2004 02:26 PM
adsl bonding, PPP eddy_bear Linux - Networking 1 04-29-2004 11:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration