自从我连接以太网电缆后,wifi 连接就丢失了

自从我连接以太网电缆后,wifi 连接就丢失了

我在办公室使用 wifi 时遇到了麻烦。问题是,wifi 网络与办公室 LAN 完全分开,如果我想使用 ssh 或 git 等协议,我必须使用 wifi。
我配置了 wifi 路由器,使其具有永久 DHCP 租约在我的 Atheros 卡上(使用 ath9k 驱动程序),并将密码加密更改为 WPA2(之前使用 wep... 真遗憾)。还切换到通道 9,因为该区域充斥着 ch.11、6、7... 发射器。

在我再次连接以太网电缆之前,一切都正常。现在网络管理员(在 Natty 11.04 上)将以下内容吐到我的系统日志上:

Oct  3 16:24:05 x wpa_supplicant[883]: Trying to associate with {box bssid} (SSID='xxxxx' freq=2452 MHz)
Oct  3 16:24:05 x NetworkManager[782]: <info> (wlan0): supplicant connection state:  scanning -> associating
Oct  3 16:24:05 x kernel: [ 9792.310325] wlan0: authenticate with {box bssid} (try 1)
Oct  3 16:24:05 x kernel: [ 9792.319767] wlan0: authenticated
Oct  3 16:24:05 x kernel: [ 9792.319802] wlan0: associate with {box bssid} (try 1)
Oct  3 16:24:05 x wpa_supplicant[883]: Associated with {box bssid}
Oct  3 16:24:05 x NetworkManager[782]: <info> (wlan0): supplicant connection state:  associating -> associated
Oct  3 16:24:05 x kernel: [ 9792.343240] wlan0: RX AssocResp from {box bssid} (capab=0x411 status=0 aid=1)
Oct  3 16:24:05 x kernel: [ 9792.343246] wlan0: associated
Oct  3 16:24:08 x kernel: [ 9795.442339] wlan0: deauthenticated from {box bssid} (Reason: 2)
Oct  3 16:24:08 x wpa_supplicant[883]: CTRL-EVENT-DISCONNECTED bssid={box bssid} reason=0
Oct  3 16:24:08 x NetworkManager[782]: <info> (wlan0): supplicant connection state:  associated -> disconnected
Oct  3 16:24:08 x kernel: [ 9795.507836] cfg80211: All devices are disconnected, going to restore regulatory settings
Oct  3 16:24:08 x kernel: [ 9795.507843] cfg80211: Restoring regulatory settings
Oct  3 16:24:08 x kernel: [ 9795.507847] cfg80211: Calling CRDA to update world regulatory domain
Oct  3 16:24:08 x kernel: [ 9795.512836] cfg80211: Ignoring regulatory request Set by core since the driver uses its own custom regulatory domain 
Oct  3 16:24:08 x kernel: [ 9795.512843] cfg80211: World regulatory domain updated:
Oct  3 16:24:08 x kernel: [ 9795.512845] cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Oct  3 16:24:08 x kernel: [ 9795.512849] cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Oct  3 16:24:08 x kernel: [ 9795.512852] cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Oct  3 16:24:08 x kernel: [ 9795.512855] cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Oct  3 16:24:08 x kernel: [ 9795.512858] cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Oct  3 16:24:08 x kernel: [ 9795.512860] cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Oct  3 16:24:08 x NetworkManager[782]: <info> (wlan0): supplicant connection state:  disconnected -> scanning

...这种情况一直持续,尝试重新连接。似乎身份验证失败了,但我不明白为什么,因为在我插入电缆之前它就正常工作了。有什么想法吗?

编辑 :抑制 dhcp 永久租约,再次起作用。仍然对原因感兴趣吗?!

答案1

在终端窗口中尝试此操作:

sudo ifconfig wlan0 down
sudo dhclient -r wlan0
sudo ifconfig wlan0 up
sudo iwconfig wlan0 essid "YOUR ESSID"
sudo iwconfig wlan0 mode Managed
sudo dhclient wlan0

相关内容