![我的 WiFi 网络断开连接后如何重新连接?](https://linux22.com/image/1123618/%E6%88%91%E7%9A%84%20WiFi%20%E7%BD%91%E7%BB%9C%E6%96%AD%E5%BC%80%E8%BF%9E%E6%8E%A5%E5%90%8E%E5%A6%82%E4%BD%95%E9%87%8D%E6%96%B0%E8%BF%9E%E6%8E%A5%EF%BC%9F.png)
我已经像这样设置了我的无线网络:
/etc/网络/接口
auto lo
auto wlan0
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.70
netmask 255.255.255.0
gateway 192.168.1.1
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.1.71
netmask 255.255.255.0
gateway 192.168.1.1
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
/etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="home-network"
psk="mypassword"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
auth_alg=OPEN
}
network={
ssid="work-network"
psk="mypassword"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
auth_alg=OPEN
}
如果无线连接因某种原因中断或 AP 断开连接,我甚至无法 ping 机器(我指的是机器)。如果我拔下 USB Wifi 并重新连接,它会在一秒钟内突然重新连接!
为什么会发生这种情况?我的设置是否出了问题?