Re: What happens if there are two interfaces?



On 12/30/2012 05:52 PM, Timothy Murphy wrote:
Pavel Simerda wrote:

It seems to figure out that when I plug it in it's better to use the
wired connection but I'm never sure.

How does it decide?

Currently it's based on interface type, AFAIK.

What does this mean?
Are you saying that ethernet is given preference over WiFi?

And how can I know which one is being used?

Looking at the routing table should be enough (ip route),

How?
"ip route" just tells me both interfaces are up,
not which one is being used.
Even "ifconfig", which gives the number of packets
passing through each interface,
is not completely conclusive.


ip route on my machine gives:
default via 192.168.4.1 dev wlan0  proto static
192.168.4.0/24 dev wlan0  proto kernel  scope link  src 192.168.4.103

Which means wlan0 is the default route. Everything goes out that way.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]