How to setup of Raspberry Pi 3 B+ onboard WiFi for Ubuntu Server 18.04? In particular, with netplan
?
This is a clean install of the Ubuntu Server 18.04 image for Raspberry Pi 3. File: ubuntu-18.04.2-preinstalled-server-arm64+raspi3.img.xz
.
The installed file /etc/network/interfaces
states that netplan
has replaced ifupdown
.
# ifupdown has been replaced by netplan(5) on this system. See
# /etc/netplan for current configuration.
/etc/netplan
has one file 50-cloud-init.yaml
# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
version: 2
ethernets:
eth0:
dhcp4: true
match:
macaddress: <MAC 'eth0' [IF1]>
set-name: eth0
Netplan.io provides some general Netplan configuration examples.
To configure netplan, save configuration files under
/etc/netplan/
with a.yaml
extension (e.g./etc/netplan/config.yaml
), then runsudo netplan apply
.
... yet, no guideance specific to a RaspberryPi. ...in particular, with respect to the existing /etc/netplan/50-cloud-init.yaml file on the RaspberryPi Ubuntu Server install.
What would be the netplan
template for the RaspberryPi? Can the existing /etc/cloud/cloud.cfg.d
be left enabled? What is lost if cloud.cfg.d
on the Raspberry Pi is disabled? ... (... and, wondering ... how much of this issue needs RaspPi knowledge vs. Ubuntu knowledge.)
Note: Since this question is at the intersection of Ubuntu & Raspberry Pi, a related question was also posted on AskUbuntu.