我正在使用 Raspberry Pi 4 连接到我的大学网络(因此使用 WPA-Enterprise 和 PEAP)wpa_supplicant
当我运行命令时,
sudo wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -Dnl80211,wext
我的wpa_supplicant.conf
如下:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
ap_scan=1
country=US
network={
ssid="eduroam"
scan_ssid=1
key_mgmt=WPA-EAP
eap=PEAP
identity="[email protected]"
password=hash:aaaaaaaaaaaaaaaa
phase1="peaplabel=0"
phase2="auth=MSCHAPV2"
}
一切似乎都很好,没有身份验证失败,第 1 阶段和第 2 阶段已完成。CTRL-EVENT-CONNECTED
但是我收到以下消息:
CTRL-EVENT-DISCONNECTED bssid=b0:b8:67:ef:d9:11 reason=3
它重新连接并再次经历整个过程,似乎无限重复。这是reason=3
怎么回事?我该如何解决?
PG69 编辑
在 /etc/网络/接口:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
# /etc/network/interfaces.d is an empty directory
source-directory /etc/network/interfaces.d
wpa_supplicant assoc/auth 日志:
pi@raspberrypi:~ $ sudo wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -Dnl80211,wext
Successfully initialized wpa_supplicant
wlan0: Trying to associate with SSID 'eduroam'
wlan0: Associated with b0:b8:67:ef:d9:11
wlan0: CTRL-EVENT-EAP-STARTED EAP authentication started
wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlan0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=US
wlan0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=25
wlan0: CTRL-EVENT-EAP-METHOD EAP vendor 0 method 25 (PEAP) selected
wlan0: CTRL-EVENT-EAP-PEER-CERT depth=3 subject='/C=GB/ST=Greater Manchester/L=Salford/O=Comodo CA Limited/CN=AAA Certificate Services' hash=d7a7a0fb5d7e2731d771e9484ebcdef71d5f0c3e0a2948782bc83ee0ea699ef4
wlan0: CTRL-EVENT-EAP-PEER-CERT depth=3 subject='/C=GB/ST=Greater Manchester/L=Salford/O=Comodo CA Limited/CN=AAA Certificate Services' hash=d7a7a0fb5d7e2731d771e9484ebcdef71d5f0c3e0a2948782bc83ee0ea699ef4
wlan0: CTRL-EVENT-EAP-PEER-CERT depth=2 subject='/C=US/ST=New Jersey/L=Jersey City/O=The USERTRUST Network/CN=USERTrust RSA Certification Authority' hash=68b9c761219a5b1f0131784474665db61bbdb109e00f05ca9f74244ee5f5f52b
wlan0: CTRL-EVENT-EAP-PEER-CERT depth=1 subject='/C=US/ST=MI/L=Ann Arbor/O=Internet2/OU=InCommon/CN=InCommon RSA Server CA' hash=0a05c462756390dd1f1d5dd82794c300f04be789dce76d7e312f790d68fd385a
wlan0: CTRL-EVENT-EAP-PEER-CERT depth=0 subject='/C=US/<address>/OU=EIT/CN=clearpass.XXX.edu' hash=74e40048dc2c07b1b5498b2792ceb62b976cc29d5c704d0426cedbccb49a8e31
wlan0: CTRL-EVENT-EAP-PEER-ALT depth=0 DNS:clearpass.XXX.edu
wlan0: CTRL-EVENT-EAP-PEER-ALT depth=0 DNS:clearpass-cra.XXX.edu
wlan0: CTRL-EVENT-EAP-PEER-ALT depth=0 DNS:clearpass-hv.XXX.edu
wlan0: CTRL-EVENT-EAP-PEER-ALT depth=0 DNS:clearpass-tel-2.XXX.edu
wlan0: CTRL-EVENT-EAP-PEER-ALT depth=0 DNS:clearpass-tel.XXX.edu
EAP-MSCHAPV2: Authentication succeeded
EAP-TLV: TLV Result - Success - EAP-TLV/Phase2 Completed
wlan0: CTRL-EVENT-EAP-SUCCESS EAP authentication completed successfully
wlan0: CTRL-EVENT-CONNECTED - Connection to b0:b8:67:ef:d9:11 completed [id=0 id_str=]
wlan0: CTRL-EVENT-DISCONNECTED bssid=b0:b8:67:ef:d9:11 reason=3
wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
wlan0: CTRL-EVENT-REGDOM-CHANGE init=USER type=COUNTRY alpha2=US
wlan0: Trying to associate with SSID 'eduroam'
wlan0: Associated with b0:b8:67:ef:d9:11
wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlan0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=US
wlan0: CTRL-EVENT-EAP-STARTED EAP authentication started
wlan0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=25
wlan0: CTRL-EVENT-EAP-METHOD EAP vendor 0 method 25 (PEAP) selected
EAP-TLV: TLV Result - Success - EAP-TLV/Phase2 Completed
wlan0: CTRL-EVENT-EAP-SUCCESS EAP authentication completed successfully
wlan0: CTRL-EVENT-CONNECTED - Connection to b0:b8:67:ef:d9:11 completed [id=0 id_str=]
wlan0: CTRL-EVENT-DISCONNECTED bssid=b0:b8:67:ef:d9:11 reason=3
wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
wlan0: CTRL-EVENT-REGDOM-CHANGE init=USER type=COUNTRY alpha2=US
wlan0: Trying to associate with SSID 'eduroam'
未添加完整的 wpa_supplicant 调试日志,>3200 行。Pastebin 链接:
答案1
我最终通过重新刷新我的树莓派并确保在wpa_supplicant.conf
设置之前我使用raspi-config
并设置了我的 WLAN 国家/地区来解决这个问题。