我已经像这样设置了我的无线网络:
/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 并重新连接,它会在一秒钟内突然重新连接!
为什么会发生这种情况?我的设置是否出了问题?