Netplan: Configure Wi-Fi Adapter

Published at 18 Feb 2025

In order to configure a Wi-Fi interface using Netplan, we have to edit the desired Netplan yaml file.

Here is an example for configuring the Wi-Fi interface wlan0.

network:
	version: 2
	renderer: networkd
	wifis:
		wlan0:
			dhcp4: yes
			access-points:
				"My own Wi-Fi":
					password: "super-secret-password"

Here we're setting the wlan0 interface to connect to the Wi-Fi network named (SSID) My own Wi-Fi using the password super-secret-password.

To apply the changes, we should run the command:

netplan apply