Dual internet connection setup

5

1

So I'm currently connected to two internet connections. My 3G network and the company's wireless connection. But I don't really understand which one I'm using. Is there a way to find out which connection is being used. And is there a way to use both at the same time. Either by load balancing or dedicating each to separate tasks. For instance, one for downloading, one for surfing?

I'm on Ubuntu 9.10

gAMBOOKa

Posted 2010-02-02T00:11:13.740

Reputation: 341

Answers

1

Use the route command to show your routing table. Typically, your computer will have a default route (possibly the last network interface added) through which all your traffic will be routed.

The default route will have a destination of 0.0.0.0 or maybe just the word 'default'. That's where your traffic is going through. You can change it with the route command also.

http://www.cyberciti.biz/faq/linux-setup-default-gateway-with-route-command/

It may be possible to configure individual programs to bind to different network interfaces.

You may also look into bonding your network interfaces but I have never tried it.

Donald Byrd

Posted 2010-02-02T00:11:13.740

Reputation: 829

1

This is an answer to similar question.

To download files by a specific route you can use Wget: wget --bind-address=<localIP> <file>, where <localIP> may be either your 3G (external) or company (internal) IP.

Route metrics can be set through NetworkManager (the tray applet).

Also this howto explains how to set routing policy to work for multiple Internet providers; you'll probably want to create a post-up script for 3G PPP interface that would set everything up.

whitequark

Posted 2010-02-02T00:11:13.740

Reputation: 14 146

Added multiple provider routing setup HOWTO. – whitequark – 2010-02-02T01:29:26.510