1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
| #network-config文件 version: 2 wifis: renderer: networkd wlan0: dhcp4: true optional: true access-points: "lsksp": password: "12345678" "lsk": password: "12345678"
#sudo nano /etc/netplan/50-cloud-init.yaml network: ethernets: eth0: dhcp4: true optional: true wifis: wlan0: optional: true access-points: "WiFi名": password: "你wifi的密码" dhcp4: true version: 2
#自定义 network: ethernets: eth0: dhcp4: true optional: true wifis: wlan0: optional: true access-points: lsk: password: "12345678"
lsksp: password: "12345678" addresses: [192.168.167.8/24] gateway4: 192.168.167.1 nameservers: addresses: [8.8.8.8, 144.144.144.144] dhcp4: true version: 2
|