ShunjiHashimoto / tang

収穫サポートロボットTANG
2 stars 1 forks source link

IPアドレスの固定 #211

Closed ShunjiHashimoto closed 2 years ago

ShunjiHashimoto commented 2 years ago

old

# 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:
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
    ethernets:
        eth0:
            dhcp4: true
            optional: true
    version: 2
    wifis:
            wlan0:
                    dhcp4: true
                    optional: true
                    access-points:
                            "TPLink-5G":
                                    # "hashimoto":
                                    auth:
                                            key-management: psk
                                            password: "23232871"
                                            # password: "1206Hasi"
ShunjiHashimoto commented 2 years ago

https://office54.net/iot/linux/ubuntu-ipaddress-netplan これの通りに設定したら、固定できた。