LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-18-2010, 01:56 PM   #1
anoopch
Member
 
Registered: Oct 2010
Location: Tamil Nadu, India
Distribution: Slackware 13.1
Posts: 42

Rep: Reputation: 0
Question Merging or Sharing Internet Connection


Hi Tuxies...

How do you do? Hope u are doing good and well..

I got a new Internet connection, a High-speed connection 8 Mbps (Hmm highest i can afford in India. LOL). I was previously using a 2 Mbps connection. Now if i connect these in a hub and then connect it my system..

Will i get 10 Mbps( 8 + 2 ) speeds/bandwidth?

or

Will i be restricted only to 2 Mbps..

I'm just a budding kid.. so i'm very sorry, if i had said something technically wrong..

Please ask questions if you are not clear.. ty..

Is there any other way to make it a 10 Mbps (I mean by 2+8) connection?

Last edited by anoopch; 10-19-2010 at 01:19 PM.
 
Old 10-18-2010, 03:24 PM   #2
vss2094
Member
 
Registered: Aug 2009
Location: Jeddah, KSA
Distribution: Slackware64-Multilib**
Posts: 49

Rep: Reputation: 16
Hi welcome to LQ!

you may probably want to look here.
 
Old 10-19-2010, 01:15 PM   #3
anoopch
Member
 
Registered: Oct 2010
Location: Tamil Nadu, India
Distribution: Slackware 13.1
Posts: 42

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by vss2094 View Post
Hi welcome to LQ!

you may probably want to look here.

Thank you that helped.. But not the answer for my question i think....
 
Old 10-19-2010, 03:48 PM   #4
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
Quote:
I got a new Internet connection, a High-speed connection 8 Mbps (Hmm highest i can afford in India. LOL). I was previously using a 2 Mbps connection. Now if i connect these in a hub and then connect it my system..

Will i get 10 Mbps( 8 + 2 ) speeds/bandwidth?

or

Will i be restricted only to 2 Mbps..
You will get either 8 Mbps or 2 Mbps depending on which connection is used to setup your network. Presumably you get your IP from the connection via DHCP then the one replying and serving out gateway addresses will be the one that dictates the speed. If you use static IP addressing then you will have a gateway set in /etc/resolv.conf that will force one connection to be used.

You cannot just connect to two outgoing internet connections and expect them to both be used and "added together" in performance.

You need load balancing which may be done in a special router or on a linux box with two ethernet connections. Have a look here for tips on the Linux box option and google for "load balancing router". This example will give you some idea.
 
Old 10-19-2010, 04:55 PM   #5
vss2094
Member
 
Registered: Aug 2009
Location: Jeddah, KSA
Distribution: Slackware64-Multilib**
Posts: 49

Rep: Reputation: 16
@anoopch

Glad to see it helped.

Well it is answered nicely by bgeddy.

As far as learning is concerned, check this idea too.

Happy learning !!
 
Old 10-19-2010, 05:04 PM   #6
anoopch
Member
 
Registered: Oct 2010
Location: Tamil Nadu, India
Distribution: Slackware 13.1
Posts: 42

Original Poster
Rep: Reputation: 0
Question

Quote:
Originally Posted by bgeddy View Post
You will get either 8 Mbps or 2 Mbps depending on which connection is used to setup your network. Presumably you get your IP from the connection via DHCP then the one replying and serving out gateway addresses will be the one that dictates the speed. If you use static IP addressing then you will have a gateway set in /etc/resolv.conf that will force one connection to be used.

You cannot just connect to two outgoing internet connections and expect them to both be used and "added together" in performance.

You need load balancing which may be done in a special router or on a linux box with two ethernet connections. Have a look here for tips on the Linux box option and google for "load balancing router". This example will give you some idea.


Yeah that made me to learn a lot.. thanks... never knew such a topic existed...

Is load balancing possible only in a specific hardware ie) router?

Can we make a software or configure a linux server to be a load-balancing server?


Can we configure Smooth Wall Express3 to be so?
 
Old 10-19-2010, 05:05 PM   #7
anoopch
Member
 
Registered: Oct 2010
Location: Tamil Nadu, India
Distribution: Slackware 13.1
Posts: 42

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by vss2094 View Post
@anoopch

Glad to see it helped.

Well it is answered nicely by bgeddy.

As far as learning is concerned, check this idea too.

Happy learning !!
Yup.. thnks for the readme... that too contributed in growing my brain's storage..
 
Old 10-19-2010, 06:29 PM   #8
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
Quote:
Is load balancing possible only in a specific hardware ie) router?

Can we make a software or configure a linux server to be a load-balancing server?
You can setup a Slackware box to perform load balancing. Have a loook at Neils Horn's blog here that mentions this. Neils himself often contributes here and may well chip in. Personally I have not setup load balancing but have cionfigured a Slackware box as a router using iptables to perfom Nat functionality and share an internet connection across my network using iptables. My brother has setup a load balancing router to up his bandwidth using an ADSL connection and a 3G usb dongle via the Vodaphone network. This was all serving a Windows network. He is limited to slow speeds over ADSL due to his location and wants to up his connection speeds. This worked but not as efficiently as he had hoped.
 
Old 10-20-2010, 05:57 AM   #9
anoopch
Member
 
Registered: Oct 2010
Location: Tamil Nadu, India
Distribution: Slackware 13.1
Posts: 42

Original Poster
Rep: Reputation: 0
Smile Here is what my LAN setup looks...

complexnat.png

This is the LAN layout i'm saying about.

I plan to use a Firewall like SmartWall Express 3.0.

Can you please explain a bit more on this..

1. Where does the firewall comes?

Between Netgear and Slacware server

Between Slackware server and Internet Hub

another suggestions?
 
Old 10-20-2010, 06:09 AM   #10
anoopch
Member
 
Registered: Oct 2010
Location: Tamil Nadu, India
Distribution: Slackware 13.1
Posts: 42

Original Poster
Rep: Reputation: 0
Smile Lot of options.. yeah.. thanks bgeddy

Quote:
Originally Posted by bgeddy View Post
You can setup a Slackware box to perform load balancing. Have a loook at Neils Horn's blog here that mentions this. Neils himself often contributes here and may well chip in. Personally I have not setup load balancing but have cionfigured a Slackware box as a router using iptables to perfom Nat functionality and share an internet connection across my network using iptables. My brother has setup a load balancing router to up his bandwidth using an ADSL connection and a 3G usb dongle via the Vodaphone network. This was all serving a Windows network. He is limited to slow speeds over ADSL due to his location and wants to up his connection speeds. This worked but not as efficiently as he had hoped.

That was wonderful.. Same as my Scenario..
 
Old 10-20-2010, 02:30 PM   #11
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
Quote:
1. Where does the firewall comes?

Between Netgear and Slacware server

Between Slackware server and Internet Hub
Any firewall should protect the attached networks and so would come between the Slackware server and the internet hub. You may have the server set up to run the firewall as well as a file/other server although it would be best to isolate a machine for this purpose if possible.

To be honest I have never personally tried the mutli-Wan/ load balancing setup and my Brother's experience of this was rather disappointing in performance. I believe better gains may be seen when multiple PC's on a network share internet access across more than one Wan connection. That is not quite the same as one PC using more than one Wan connection to gain bandwidth.

You really need to research this yourself as my direct experience is limited. This site is good as are many others. The Networking Forum here on LQ may be a better place to get help as this is rather specialised. Don't forget search keywords like "dual Wan/ load balancing/ mutli ISP/ etc" will yield loads of useful results via Google.

Perhaps someone has direct experience of such a setup but, as mentioned, mine is "second hand" and somewhat limited. This is really quite a complex area of networking and routing and will teach you a lot. Good luck with this.
 
Old 10-20-2010, 02:36 PM   #12
anoopch
Member
 
Registered: Oct 2010
Location: Tamil Nadu, India
Distribution: Slackware 13.1
Posts: 42

Original Poster
Rep: Reputation: 0
Smile You are a Genius..

Quote:
Originally Posted by bgeddy View Post
Any firewall should protect the attached networks and so would come between the Slackware server and the internet hub. You may have the server set up to run the firewall as well as a file/other server although it would be best to isolate a machine for this purpose if possible.

To be honest I have never personally tried the mutli-Wan/ load balancing setup and my Brother's experience of this was rather disappointing in performance. I believe better gains may be seen when multiple PC's on a network share internet access across more than one Wan connection. That is not quite the same as one PC using more than one Wan connection to gain bandwidth.

You really need to research this yourself as my direct experience is limited. This site is good as are many others. The Networking Forum here on LQ may be a better place to get help as this is rather specialised. Don't forget search keywords like "dual Wan/ load balancing/ mutli ISP/ etc" will yield loads of useful results via Google.

Perhaps someone has direct experience of such a setup but, as mentioned, mine is "second hand" and somewhat limited. This is really quite a complex area of networking and routing and will teach you a lot. Good luck with this.
Hey thanks a lot for your help... Even though you say that you are not experienced, i learned a lot of stuff.. Certain info that i never knew existed....
 
Old 10-21-2010, 03:01 AM   #13
SavoTU
Member
 
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 155

Rep: Reputation: 22
I have not tried it with Slackware but along time ago tested it in Windows. I has it set up for a single machine and found it much slower for normal browsing and only saw improvement in torrents, it would also give problems with lots of sites as cookies would not carry across ip addresses which would cause all sorts of login problems.

I had a quick read of Neils Horn's blog and his setup would be your best bet, he saw the cashing of sites as a problem but this would solve some of the problems i experienced. Also i dont think you are going to get it working with just 1 network card buy a cheap pci network card and have them both set for dhcp, flow the instructions in Neils blog and then if you are happy work from there, if not write it off as a bad idea.
 
Old 10-21-2010, 06:28 AM   #14
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 89
Noticed the interesting subject...

I still use that setup described on my blog, although with a different usb stick now.
Like I explained in the post, it works perfectly for downloading large files with bittorrent software, where you have several connections open at the same time.
But if you're the only user on the system and download a file from a single source, you will use only one of the links.
 
Old 10-21-2010, 07:29 AM   #15
anoopch
Member
 
Registered: Oct 2010
Location: Tamil Nadu, India
Distribution: Slackware 13.1
Posts: 42

Original Poster
Rep: Reputation: 0
Smile Thnaks Neil.. I read your post.. I'm trying to do that..

Quote:
Originally Posted by niels.horn View Post
Noticed the interesting subject...

I still use that setup described on my blog, although with a different usb stick now.
Like I explained in the post, it works perfectly for downloading large files with bittorrent software, where you have several connections open at the same time.
But if you're the only user on the system and download a file from a single source, you will use only one of the links.

So..
I think it will surely benefit in a LAN Network, where multiple users request multiple connections right?

I think we can route a particular group of systems to use ISP1 and the other to use the ISP2.. I don't have knowledge in this type of routing.. any info on that?


My scenario is multiple windows clients on the LAN use VOIP s/w to communicate with. Hence require considerable bandwidth. We got 40 client Systems in LAN.. Of which 30 will always be working.. Do you think i will benefit, if i use load balancing?
 
  


Reply

Tags
internet connection, internetconnection, sharing


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
internet connection sharing vaalu Linux - Newbie 1 11-16-2008 07:24 PM
Internet Connection Sharing siralek88 Linux - Networking 3 01-07-2005 07:11 PM
Internet Connection Sharing usa1234 Linux - Networking 1 10-28-2004 06:27 PM
Merging two networks to share internet connection Maranza Linux - Networking 17 02-02-2004 09:32 PM
Internet Connection Sharing joe7.1 Linux - Newbie 0 02-07-2002 01:25 AM


All times are GMT -5. The time now is 05:22 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration