Assume you have two connections in Mobile Broadband and WiFi.
I would like to allocate manually given packages to given connections. For instance, my bank connection to Mobile Broadband and my internet surfing and software downloads to WiFi.
How does Ubuntu 11.10 or 11.04 allocate the usage of two connections to Google Chrome?
How can you manually decide which internet connection to use with Wget? Do you need any external command to do the allocation? - In my opinion, it would be much more orthogonal and efficient if you could have an external program to do the allocation. - I could then simply launch my Google Chrome to the wanted connection manually.
This is a question of packet routing, e.g. deciding which packets (addressed to which IP addresses) go out which interface. To answer question 1, both connections' packets are routed to the same interface. Use the
route
command to show your current routing setup. Use theifconfig -a
command to see your interfaces and the IP addresses assigned to them.There are two ways to force
wget
to use a particular internet connection: use the--bind-address=ADDRESS
option towget
(Seeman wget
for details); OR add a route to an IP address/netmask pointing to the interface packets for that address (those addresses) should use. Usingroute
affects all packets to that IP. Seeman route
. You want something like:You have to do this once per reboot, or once every time your Mobile Broadband comes up.