15.1.2.3. 網路設定範例
$ sudo touch /etc/netplan/01-netcfg.yaml
$ sudo nano /etc/netplan/01-netcfg.yamlnetwork:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: yes
dhcp6: yes
optional: true
wifis:
wlan0:
dhcp4: yes
dhcp6: yes
access-points:
"your-wifi-name":
password: "your-wifi-password"Last updated
Was this helpful?