I am using
network-manager. I tried bonding my two wired connections
usb0, using GUI similar to
eth0 is connected to my router and
usb0 is connected to cellphone). I can create a bond type device and add slaves, but for some reasons they didn't connect.
Googling for an answer, I found what I need to edit
/etc/network/interfaces. I tried by it didn't work.
/etc/modules for booting and executing
lsmod | grep bonding to ensure the module is loaded, and my
/etc/network/interfaces file is:
# interfaces(5) file used by ifup(8) and ifdown(8) auto lo iface lo inet loopback auto eth0 iface eth0 inet manual bond-master bond0 bond-primary eth0 usb0 auto usb0 iface usb0 inet manual bond-master bond0 bond-primary eth0 usb0 auto bond0 iface bond0 inet dhcp bond-slaves none bond-mode 6 bond-miimon 100
When I rebooted, it showed a message saying
A start job is running for Raise network interfaces... after about 5 minutes system start with no connections.
I tried with some variants I found:
auto bond0 iface bond0 inet dhcp bond-slaves eth0 usb0 bond-mode 6 bond-miimon 100 bond-primary eth0 usb0
Even I tried setting
static and adding static parameters but no one helped.
Another method that I tried was to use
ip link set and
ip link add, but when I used
ip link set eth0 master bond0, it showed me an error saying
RTNETLINK answers: Operation not supported
System info: OS: Linux Mint 19 Tara Kernel: Linux 4.15.0-34-generic (x86_64)
Finally, I want bonding my networks to increase torrent's download speed and stay connected even when a network isn't available. I found network bonding in mode balance-alb the best option to do this, but if anyone know a better way to do that, I'm open to suggestions.
To guide me I found these links: