Forem

Cover image for Netplan: Configure Wi-Fi Adapter
Sergio Peris
Sergio Peris

Posted on • Originally published at sertxu.dev

Netplan: Configure Wi-Fi Adapter

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"
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

Top comments (0)