列出你的网络
ip a
修改配置
vi /etc/netplan/eth0.yaml
network:
ethernets:
eth0:
dhcp4: true
optional: true
version: 2
wifis:
wlan0:
dhcp4: true
access-points:
"你的wifi的ssid":
password: "你的密码"
or
network:
ethernets:
eth0:
dhcp4: true
x optional: true
version: 2
wifis:
wlan0:
dhcp4: false
addresses: [192.168.0.106/24]
nameservers:
addresses: [192.168.0.1]
access-points:
"你的wifi的ssid":
password: "你的密码"
应用配置
netplan apply