Results 1 to 5 of 5

Thread: (Plz read)How to use two internet connections in Linux

  1. #1

    Question (Plz read)How to use two internet connections in Linux

    Hi.

    I've been trying to search a solution to this problem for many weeks now. I've posted on forums, and searched on google many times, but still can't find a solution.

    Both my connections are dialup (configured via wvdial), and use two different USB modems (ttyACM0, ttyUSB0).
    When I connect both of them, I can't browse anything.

    In windows, I used the trial of Wingate software to setup a local http proxy on 127.0.0.1 and used both my dialup connections as "gateways". I got combined speed of both the connections successfully in multi threaded downloads.

    So can anyone tell how can I do the same in Linux. Any proxy software similar to Wingate? (which will allow me to use two connections as gateways). Or any other solution ? (with iproute2 or something?).

    I really wish I'll find a solution from you guys.

    Thanks in advance.

  2. #2
    What you are wanting to do is called "shotgunning" your lines. Here's a site that explains it all, and several links with how-to's, and various other articles explaining how to do, and how to understand it.
    arrogance breeds ignorance

    Screaming Electron, Full of BSD Goodness

  3. #3
    Moderator
    Advisor
    redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    811
    Don't worry Ma'am. We're university students, - We know what We're doing.
    'Ruiat coelum, fiat voluntas tua.'
    Datalogi - en livsstil; Intet liv, ingen stil.

  4. #4
    Thank you guys for taking time and responding, but unfortunate for me, the links/solutions you mentioned are not applicable in my proble.

    Two of them mention bonding ethernet devices (NIC cards) and load balancing them. (While I have USB wireless modems).

    The other (56k.com) mentions something which I don't fully understand, but I am pretty sure it is talking something about Phone lines, while my both connections are wireless dialup connections: One is GPRS/EDGE I use through my cell phone, the other is a CDMA phone supporting Internet.

    I hope I've made my situation clear now, sorry for not explaining in the first post.

    Hoping to get some help.

    Thanks

  5. #5
    Moderator
    Advisor
    redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    811
    In linux it dosn't matter wether it's NIC or PPP connection, once it's connected, it's ultimately the very same inteface according to the bonding module.

    Here is a walk through for Ubunto 6.10: http://www.howtoforge.com/network_bonding_ubuntu_6.10
    Here is one for Debian: http://www.howtoforge.com/nic_bonding
    Here is one for CentOS: http://www.howtoforge.com/network_card_bonding_centos
    • You have some interfaces:
      • ppp0/eth0/ath0/ra0/etc.
      • ppp1/eth1/ath1/ra1/etc.
    • You tell bonding module to create an interface ready to consist of your orriginal interfaces
      • alias bond0 bonding
      • options bond0 mode=0 miimon=100 downdelay=200 updelay=200
    • You create this new interface consisting of your already created connections
      • ifenslave bond0 [ppp0/eth0/ath0/ra0/etc.] [ppp1/eth1/ath1/ra1/etc.]
    • You set this new interface to be the one to contact the world through
      • Code:
        iface bond0 inet static
           address 192.168.0.120
           netmask 255.255.255.0
           network 192.168.0.0
           broadcast 192.168.0.255
           gateway 192.168.0.1
           hwaddress ether 00:03:B3:48:50:2C
    The trigger is in fact the ifenslave bond0 eth0 eth1 and declaring default gateway to be within the bond0 ip-range.
    Last edited by redhead; 04-11-2008 at 06:39 PM.
    Don't worry Ma'am. We're university students, - We know what We're doing.
    'Ruiat coelum, fiat voluntas tua.'
    Datalogi - en livsstil; Intet liv, ingen stil.

Similar Threads

  1. Linux, modem support and the internet
    By imported_SuBSe7eN in forum Linux - Hardware, Networking & Security
    Replies: 10
    Last Post: 05-19-2005, 03:39 AM
  2. New to linux, cannot connect to internet
    By imported_roy in forum Linux - Hardware, Networking & Security
    Replies: 36
    Last Post: 02-23-2005, 01:56 AM
  3. Linux Benchmarking
    By comtux in forum Linux - General Topics
    Replies: 2
    Last Post: 01-08-2005, 12:17 AM
  4. what's needed for linux internet dialin server
    By Blaqb0x in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 06-26-2003, 06:22 AM
  5. Palm Pilot/PDA + Linux + Internet?
    By Jonathan in forum General Chat
    Replies: 0
    Last Post: 02-11-2002, 06:38 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •