vim /etc/netplan/00-installer-config.yaml
network:
renderer: NetworkManager
wifis:
wlp2s0:
dhcp4: no
dhcp6: no
addresses:
- 192.168.1.60/24
gateway4: 192.168.1.1
nameservers:
addresses:
- 223.5.5.5
- 223.6.6.6
access-points:
"yoogo5g":
password: "123"
- 安装插件
sudo apt-get install wpasupplicant network-manager
- 应用
netplan generate
netplan apply