- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2020-01-13T23:27:13+09:00","","")
#author("2020-01-20T00:55:46+09:00","","")
#navi2(Raspberry Pi/Ubuntu Server,toc,prev,next)
----
#contents
----
*Wifi 設定 [#j705f0f2]
いくつか設定方法はあるが、GUIなどのツールを用いない場合の設定は、
恐らく次の netplan を設定するのが正しいと思われる。
** netplan を用いた設定 [#b90fd49c]
+/etc/netplan/50-cloud-init.yuml を編集する。
++設定例) DHCP 利用
nework:
ethernets:
eth0:
dhcp4: true
optional: true
version: 2
wifis:
wlan0:
dhcp4: true
optional: true
access-points:
[SSID]:
password: "[Password]"
# 固定IPアドレスの場合
wlan0:
addresses:
- 192.168.1.5/24
gateway4: 192.168.1.1
nameservers:
search: [mydomain, otherdomain]
addresses: [192.168.1.1, 8.8.8.8 ]
# wlan0:
# addresses:
# - 192.168.1.5/24
# gateway4: 192.168.1.1
# nameservers:
# search: [mydomain, otherdomain]
# addresses: [192.168.1.1, 8.8.8.8 ]
# access-points は複数指定可能。
# [SSID], [Password], [mydomain, otherdomain] は、適宜修正のこと。
+次のコマンドを入力し、設定を反映する。
sudo netplan apply
# netplan apply
+再起動すると自動接続します。
----
#navi2(Raspberry Pi/Ubuntu Server,toc,prev,next)