Simultaneous use of 2 internet connections on one interface

New to Debian (Or Linux in general)? Ask your questions here!

Simultaneous use of 2 internet connections on one interface

Postby 1860 » 2013-03-03 06:13

My OS is Debian Squeeze and I only have one ethernet card.
I wanted to know if it is possible to use both of my internet connections at the same time and get more bandwidth.
One of the connections is an ADSL 1Mb and the other is a WiMAX 1Mb, and both have their own routers so can I have 2Mb bandwidth on one interface?! Another thing, I can only use the WiMAX at nights, so the ADSL is my primary connection.
1860
 
Posts: 2
Joined: 2013-03-02 18:59

Re: Simultaneous use of 2 internet connections on one interf

Postby edbarx » 2013-03-03 11:48

Please be informed that I have never used two simultaneous connections but my intuition tells me that you have to tweak /etc/network/interfaces so that your computer connects with two interfaces to the network at the same time. To do that you will need to know the device node for both interfaces. I think these two lines do what you need but you have to do some reading.
Code: Select all
allow-hotplug eth0
iface eth0 inet dhcp


More information from:
Code: Select all
man interfaces


As I don't use a network manager and manually connect to my wifi, you may find that a graphical network manager may already allow two internet connections.
Debian == { > 30, 000 packages }; Debian != systemd
The worst infection of all, is a false sense of security!
It is hard to get away from CLI tools.
User avatar
edbarx
 
Posts: 5401
Joined: 2007-07-18 06:19
Location: 35° 50 N, 14 º 35 E

Re: Simultaneous use of 2 internet connections on one interf

Postby dilberts_left_nut » 2013-03-03 12:02

Yes I think you can, but it will be a non-trivial exercise. :)

What you want is called interface (or network or connection) aggregation.

Start here - http://www.debian-administration.org/ar ... interfaces
(Note the age - some things may have changed)

In your case, given you only have one card, you will probably need to set up a virtual interface with the other modem as the gateway, then aggregate the real and virtual interfaces as described.

edit: All that may not be required actually... and probably won't work the way you want.

Try this first - http://www.tldp.org/HOWTO/Adv-Routing-H ... links.html

edit2: Looking more, you might need the virt interface but not the bonding.

edit3: Just noticed this is the Beginners Section ... so the easy answer is probably 'no', unless you are determined and have some learning time to devote to this project.
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 5077
Joined: 2009-10-05 07:54
Location: enzed

Re: Simultaneous use of 2 internet connections on one interf

Postby 1860 » 2013-03-03 15:09

dilberts_left_nut wrote:Yes I think you can, but it will be a non-trivial exercise. :)

What you want is called interface (or network or connection) aggregation.

Start here - http://www.debian-administration.org/ar ... interfaces
(Note the age - some things may have changed)

In your case, given you only have one card, you will probably need to set up a virtual interface with the other modem as the gateway, then aggregate the real and virtual interfaces as described.

edit: All that may not be required actually... and probably won't work the way you want.

Try this first - http://www.tldp.org/HOWTO/Adv-Routing-H ... links.html

edit2: Looking more, you might need the virt interface but not the bonding.

edit3: Just noticed this is the Beginners Section ... so the easy answer is probably 'no', unless you are determined and have some learning time to devote to this project.


Thanx! I'll definitely give it a try.
1860
 
Posts: 2
Joined: 2013-03-02 18:59


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable