Using wpa_supplicant.conf to predefine a wifi connection

Tom H tomh0665 at gmail.com
Sun Jun 28 15:38:40 UTC 2020


On Sun, Jun 28, 2020 at 5:14 PM Bo Berglund <bo.berglund at gmail.com>
wrote:
> On Sun, 28 Jun 2020 15:32:01 +0200, Oliver Grawert <ogra at ubuntu.com>
> wrote:
>> Am Sonntag, den 28.06.2020, 14:48 +0200 schrieb Bo Berglund:
>>>
>>> So how can I preconfigure the WiFi network on the machine so it can
>>> connect when it is powered on at the location?
>>
>> ubuntu uses netplan since a while for commandline based system
>> configuration, see:
>>
>> https://netplan.io/
>>
>> and edit /etc/netplan/*.yaml to your needs ...
>
> But what should be in it then?
> Here is the full current content of
> /etc/netplan/01-network-manager-all.yaml:
>
> # Let NetworkManager manage all devices on this system
> network:
>   version: 2
>   renderer: NetworkManager
>
> i.e. exactly the limited content shown in the link you posted...

For "ssid-1" and "ssid-2":

network:
  version: 2
  renderer: NetworkManager
  wifis:
    <nic-name>:
      dhcp4: yes
      access-points:
        "ssid-1":
          password: "ssid-1-password"
        "ssid-2":
          password: "ssid-2-password"




More information about the ubuntu-users mailing list