Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Suppose i am connected to two networks-

  1. DSL connection.

2.Mobile broadband.

Which one will be considered as the base one and will be used??

Because both do get connected at the same time..!!

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

The one with a 'better' gateway metric will be chosen. To find out which one it is, open terminal and type this:

route -n

I see that I have a gateway with metric 0.0.0.0:

0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth0

So eth0 is my preferred adapter.

Another (probably easier) way to find out is to look at the route to Google's DNS server (8.8.8.8)

ip route get 8.8.8.8

This is my output:

8.8.8.8 via 192.168.0.1 dev eth0  src 192.168.0.2 
    cache 

You can see that it is going via eth0. Try this on your machine and have a look at the results.

share|improve this answer
    
Thanx a lot..!! This Question was storming my brains from long...!! Also,is there absolutely no way that the connection is shared by both connections?? So that bandwidth increases?? i read a post already here...but just asking that is there absolutely no way to do it?? –  Nirmik May 19 '12 at 16:52
1  
There is a way to do it, it's referred to as NIC Bonding (I think it has many other synonyms). I've never done it but there's a help page on the Ubuntu Help Wiki: help.ubuntu.com/community/UbuntuBonding –  Shah May 19 '12 at 18:19
    
Thanx a lot..!! that was helpfull..!! :) –  Nirmik May 19 '12 at 18:25
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.