Raspberry Pi 2 - Network connectivity on Ubuntu 22.04 LTS
TL;DR: This works out of the box with Raspberry Pi OS.
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 add 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
- Additionally, to make the Pi discoverable using
<hostname>.local
, I had to install "avahi-daemon".