wlan0 似乎已与 AP 关联,但 raspbian 无法上网

wlan0 似乎已与 AP 关联,但 raspbian 无法上网

当我输入时,所有内容都在标题中

iwconfig

我得到:

[root@artik ~]# iwconfig 
wlan0     IEEE 802.11-DS  ESSID:"juju" [2]  
          Mode:Managed  Frequency=2.452 GHz  Access Point: F4:F5:24:7F:1A:F8   
          Bit Rate:39 Mb/s   Tx-Power=24 dBm   
          Retry limit:9   RTS thr=2347 B   Fragment thr=2346 B   
          Encryption key:****-****-****-****-****-****-****-****   Security mode:open
          Power Management:on
          Link Quality=3/5  Signal level=-69 dBm  Noise level=-94 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:69
          Tx excessive retries:28  Invalid misc:324   Missed beacon:0

p2p0      IEEE 802.11-DS  ESSID:""  
          Mode:Managed  Access Point: Not-Associated   Bit Rate:1 Mb/s   
          Tx-Power=24 dBm   
          Retry limit:9   RTS thr=2347 B   Fragment thr=2346 B   
          Encryption key:off
          Power Management:on
          Link Quality=0/5  Signal level=0 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:69
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

但是当我尝试访问谷歌时,没有互联网......

wget google.com

使用第一个命令时,我感觉我已经连接到 AP,因此应该具有连接性。

[root@artik ~]# wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf 
Successfully initialized wpa_supplicant
wlan0: Trying to associate with f4:f5:24:7f:1a:f8 (SSID='juju' freq=2452 MHz)
wlan0: Associated with f4:f5:24:7f:1a:f8
wlan0: CTRL-EVENT-DISCONNECTED bssid=f4:f5:24:7f:1a:f8 reason=0 locally_generated=1
wlan0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=FR
wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
wlan0: Trying to associate with f4:f5:24:7f:1a:f8 (SSID='juju' freq=2452 MHz)
wlan0: Associated with f4:f5:24:7f:1a:f8
wlan0: CTRL-EVENT-DISCONNECTED bssid=f4:f5:24:7f:1a:f8 reason=0 locally_generated=1
wlan0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=3 ssid="juju" auth_failures=1 duration=10 reason=WRONG_KEY
wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
wlan0: Failed to initiate sched scan
wlan0: CTRL-EVENT-SSID-REENABLED id=3 ssid="juju"
wlan0: Trying to associate with f4:f5:24:7f:1a:f8 (SSID='juju' freq=2452 MHz)
wlan0: Associated with f4:f5:24:7f:1a:f8
wlan0: CTRL-EVENT-DISCONNECTED bssid=f4:f5:24:7f:1a:f8 reason=0 locally_generated=1
wlan0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=3 ssid="juju" auth_failures=2 duration=23 reason=WRONG_KEY
wlan0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=FR
wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
wlan0: Failed to initiate sched scan

我错过了什么?

答案1

你的WPA:四次握手失败重新检查你的 *.conf 文件:

对于具有预共享密钥的 wpa2 连接,您的 .conf 文件应如下所示:

网络={
        ssid="主页"
        扫描服务端 ID = 1
        key_mgmt=WPA-PSK
        psk="非常秘密的密码"
}

如果你想隐藏密码,也可以使用此方法https://unix.stackexchange.com/a/278958/243440

相关内容