关于在 debian 里被 network-tools 托管后如何重连 WIFI 的问题。
作者:互联网
ifconfig、ifup、ifdown 三个命令。
如果修改了 /etc/wpa_supplicant/wpa_supplicant.conf 后想重连 wifi 需要强制 down 了 waln0 后在 ifup 就行了。
ifdown wlan0 --force
ifup wlan0
root@AXERA:~# cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
# auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
auto usb0
allow-hotplug usb0
iface usb0 inet static
address 192.168.233.1
netmask 255.255.255.0
auto-hotplug wlan0
iface wlan0 inet manual
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
root@AXERA:~#
标签:iface,network,WIFI,etc,wlan0,重连,wpa,inet 来源: https://www.cnblogs.com/juwan/p/16595528.html