Raspberry Pi 2 - Network connectivity in Ubuntu

I was surprised that after installing Ubuntu on my Raspberry Pi 2, it wouldn't connect via a wired connection.

After making the following changes, everything worked as expected again.

  • In /etc/netplan/50-cloud-init.yaml I had to set the following to enable the ethernet adapter:
network:
    version: 2
    ethernets:
      eth0:
        dhcp4: true
        optional: true
  • The following package was needed for WLAN drivers: linux-modules-extra-raspi
  • And finally, to be able to reference the interface as "wlan0" again instead of "Predictable Network Interface Names" - this is a short-term preference - I had to add the following to /boot/firmware/cmdline.txt: net.ifnames=0 biosdevname=0