On 01/29/2017 12:53 PM, Per Jessen wrote:
James Knott wrote:
On 01/29/2017 10:11 AM, Per Jessen wrote:
On my home network, I normally use WiFi for my notebook
computer, but will use Ethernet when I want to download a lot of data etc.. It just works that way. I'll have to try it out. Did you need any special setup? Is it with wicked or NetworkManager?
I use NetworkManager on my notebook. As I mentioned in another note, each interface has a metric that is used to select the preferred connection, when both are available. Cool - I rarely use NetworkManager, just never got used to it.
It works in a similar manner in both Linux and Windows, as that has long been part of routing. What does your route table look like when you have both interfaces active (presumably on the same network) ? Just being curious.
Here it is with both Ethernet & WiFi connected to my local network:
ip route show default via 172.16.1.1 dev eth0 proto static metric 100 default via 172.16.1.1 dev wlan0 proto static metric 600 172.16.1.0/24 dev eth0 proto kernel scope link src 172.16.1.42 metric 100 172.16.1.0/24 dev wlan0 proto kernel scope link src 172.16.1.40 metric 600
And again, with WiFi connected to my cell phone:
ip route show default via 172.16.1.1 dev eth0 proto static metric 100 default via 192.168.43.1 dev wlan0 proto static metric 600 172.16.1.0/24 dev eth0 proto kernel scope link src 172.16.1.42 metric 100 192.168.43.0/24 dev wlan0 proto kernel scope link src 192.168.43.244 metric 600
Note the metric values for each interface. At 600, WiFi has a higher cost than Ethernet (100). This means Ethernet will be the preferred connection. The exception would be to a network that's available only via WiFi, which is the 192.168.43.0 network on my cell phone. In a computer, the metric is assigned, but might also take bandwidth into consideration. Routers use routing protocols, such as OSPF, EIGRP, RIP etc., to automagically calculate a metric based on factors such as bandwidth, hop count, traffic load, etc., in addition to assigned metrics. BTW, the addresses listed above are secret, so tell anyone about them. ;-) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org