Skip to main content
added 171 characters in body
Source Link
sezanzeb
  • 401
  • 6
  • 23

I just added a powerline connection to my computer in case the wifi crashes again. It's really slow though and should only be used as a fallback.

When I'm connected to both the powerline ethernet and the wifi, it will communicate via ethernet. But I want it to use the wifi connection instead.

There is this answer from 6 years ago which kinda looks like it would help: https://unix.stackexchange.com/a/212835/227331 but it uses ifconfig and I haven't been able to do this via the ip command

Here is it for reference:

$ sudo modprobe bonding
$ sudo ifconfig bond0 192.168.0.1 netmask 255.255.0.0
$ sudo ifenslave bond0 eth0 wlan0

I tried to translate the mentioned command using this tutorial: https://www.andreafortuna.org/2017/05/22/how-to-use-the-ip-command-instead-of-ifconfig/

and came up with sudo ip address add 192.168.0.1/16 dev bond0

sudo ip address add 192.168.0.1/16 dev bond0

but it says Cannot find device "bond0"

I just added a powerline connection to my computer in case the wifi crashes again. It's really slow though and should only be used as a fallback.

When I'm connected to both the powerline ethernet and the wifi, it will communicate via ethernet. But I want it to use the wifi connection instead.

There is this answer from 6 years ago which kinda looks like it would help: https://unix.stackexchange.com/a/212835/227331 but it uses ifconfig and I haven't been able to do this via the ip command

I tried to translate the mentioned command using this tutorial: https://www.andreafortuna.org/2017/05/22/how-to-use-the-ip-command-instead-of-ifconfig/

and came up with sudo ip address add 192.168.0.1/16 dev bond0

but it says Cannot find device "bond0"

I just added a powerline connection to my computer in case the wifi crashes again. It's really slow though and should only be used as a fallback.

When I'm connected to both the powerline ethernet and the wifi, it will communicate via ethernet. But I want it to use the wifi connection instead.

There is this answer from 6 years ago which kinda looks like it would help: https://unix.stackexchange.com/a/212835/227331 but it uses ifconfig and I haven't been able to do this via the ip command

Here is it for reference:

$ sudo modprobe bonding
$ sudo ifconfig bond0 192.168.0.1 netmask 255.255.0.0
$ sudo ifenslave bond0 eth0 wlan0

I tried to translate the mentioned command using this tutorial: https://www.andreafortuna.org/2017/05/22/how-to-use-the-ip-command-instead-of-ifconfig/

and came up with

sudo ip address add 192.168.0.1/16 dev bond0

but it says Cannot find device "bond0"

Source Link
sezanzeb
  • 401
  • 6
  • 23

Making network-manager prefer using the wifi connection

I just added a powerline connection to my computer in case the wifi crashes again. It's really slow though and should only be used as a fallback.

When I'm connected to both the powerline ethernet and the wifi, it will communicate via ethernet. But I want it to use the wifi connection instead.

There is this answer from 6 years ago which kinda looks like it would help: https://unix.stackexchange.com/a/212835/227331 but it uses ifconfig and I haven't been able to do this via the ip command

I tried to translate the mentioned command using this tutorial: https://www.andreafortuna.org/2017/05/22/how-to-use-the-ip-command-instead-of-ifconfig/

and came up with sudo ip address add 192.168.0.1/16 dev bond0

but it says Cannot find device "bond0"