# ifupdown has been replaced by netplan(5) on this system. See
# /etc/netplan for current configuration.
# To re-enable ifupdown on this system, you can run:
# sudo apt install ifupdown
auto wlan0
allow-hotplug wlan0
#iface wlan0 inet static
iface wlan0 inet dhcp
# address 192.168.1.52
# netmask 255.255.255.0
wpa_conf /etc/wpa_supplicant/wpa_supplicant.conf
3. 修改/etc/wpa_supplicant/wpa_supplicant.conf文件
1
$ sudo vim /etc/wpa_supplicant/wpa_supplicant.conf