Up /etc/netplan/50-cloud-init.yaml の編集 作成: 2021-02-18
更新: 2021-02-25


    $ ls /sys/class/net
    eth0 lo wlan0

    $ sudo vi /etc/netplan/50-cloud-init.yaml

    設定内容:
      ssid:pr500k-5a60e2-1
      psk:[pr500k-5a60e2-1の PSK]
      ssid:pr500k-5a60e2-2
      psk:[pr500k-5a60e2-2 のPSK]
    # This file is generated from information provided by the datasource. Changes # to it will not persist across an instance reboot. 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: ethernets: eth0: addresses: - 192.168.1.150/24 dhcp4: true gateway4: 192.168.1.1 nameservers: addresses: - 192.168.1.1 - 8.8.8.8 search: [] optional: true renderer: networkd version: 2 wifis: wlan0: access-points: pr500k-5a60e2-1: password: pr500k-5a60e2-1のPSK pr500k-5a60e2-2: password: pr500k-5a60e2-2のPSK addresses: - 192.168.1.150/24 dhcp4: true gateway4: 192.168.1.1 nameservers: addresses: - 192.168.1.1 - 8.8.8.8 optional: true