I wanted to create in my Ubuntu 16.04 a bond connection on two wifi interfaces ideally just from command line (or script that will start it when needed rather than using the permanent conenction).
I installed bonding packages and tried this:
sudo modprobe bonding mode=3 miimon=100
(broadcast to two adapters at once)
sudo ifconfig bond0 192.168.2.10 broadcast 192.168.2.255 netmask 255.255.255.0
sudo ifconfig bond0 up
sudo ifenslave bond0 wlp1s0 wlx00c0ca955ecd
(my two wifi interfaces that are up and running ok otherwise)
Command watch cat /proc/net/bonding/bond0
shows that the bond connection is up but it does not work properly for some reason.
I thought that perhaps adding the route would help but it does not:
/sbin/route -n
sudo ip route add default via 192.168.2.1 dev bond0
Otherwise, wlp1s0
and wlx00c0ca955ecd
are two wireless adapters connected to 2MB/s and 8MB/s conenctions (DHCP). By the way, wlp1s0
and wlx00c0ca955ecd
work fine by themselves. But when I try to enslave them, the bonding connection does not seem to work at all for some reason.
Now, I have the default Ubuntu 16.04 GUI network manager running. I wonder if this may be interfering but I wanted to keep it as it makes life easier for laptop users/connecting to various wifi etc.
The GUI allows also graphical way of setting up bonding but it does not allow to choose wifi adapters. It only allows vlan which creates aliases wlp1s0.0
and wlx00c0ca955e.0
to specific wifi adapters and specific networks. However, this does not work either ...
Any idea how to approach this?