I would like to set up an active-backup bond for ethernet and WiFi on a freshly installed 20.04 server. I have installed wpasupplicant and wireless-tools with apt as indicated here.

When I boot the server, my wireless interface works (claims an IP address via DHCP and is pingable). It doesn't work anymore though when I run sudo netplan generate and sudo netplan apply, even if the netplan configuration is unchanged. I've run both of those with --debug and neither provided errors to help troubleshooting so the only way to get WiFi back up is to reboot. Ethernet works correctly all the time. The WiFi is a Realtek adapter with USB id 0bda:b720.

      dhcp4: true
      dhcp4: true
          password: "my-password"
  version: 2

I have also followed the suggestion here to build the driver myself and even after rebooting the problem seems to have persisted, so I'm fairly sure it's not a drivers issue.

  • Please see: /usr/share/doc/netplan/examples/wireless.yaml Is the behavior improved if you add: renderer: networkd as shown in the example? – chili555 Jun 26 at 0:04
  • You should check the output of dmesg to see what the kernel says about the driver when reconfiguring, and also the output of journalctl -u systemd-networkd. – slangasek Jun 26 at 2:14
  • @chili555 Adding renderer: networkd and rebooting doesn't change anything sadly. – Paolo Celati Jun 26 at 8:25
  • @slangasek After reconfiguring Netplan, dmesg | grep rtl doesn't report anything new. – Paolo Celati Jun 26 at 8:27
  • @slangasek I checked the generic journalctl and found a wpa_supplicant message with wlx7cc7099afdf5: Association request to the driver failed, as well as kernel messages saying RTL871X: nolinked power save enter, RTL871X: RTW_ADAPTIVITY_EN_, AUTO, chplan:0x20, Regulation:0,0, RTL871X: RTW_ADAPTIVITY_MODE_, NORMAL, RTL871X: nolinked power save leave. This repeats over and over seemingly every about 15 seconds. – Paolo Celati Jun 26 at 8:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.