环境:linux设备使用有线网、8021X+PEAP+MSCHAPV2的验证方式上网
          然后自己这边又没有8021x设备,只能自己搭建radius验证根据网上的教程在ubuntu上搭建了freeradius,然后使用eapoltest验证自己的服务器,看到radius这边收到请求且有打印,说明服务器和配置文件都正常,
eapol_test测试命令:
eapol_test -c /etc/mnt/hgfs/VMShare/wpa_supplicant/wpa_supplicant.conf -s testing
然后使用wpa_supplicant,自己搭的radius就收不到请求了,一点打印信息都没
wpa_supplicant测试命令:
wpa_supplicant -iens33 -Dwired -c/mnt/hgfs/VMShare/wpa_supplicant/wpa_supplicant.conf -d
wpa_supplicant提示如下:
root@ubuntu:# wpa_supplicant -iens33 -Dwired -c/mnt/hgfs/VMShare/wpa_supplicant/wpa_supplicant.conf -d
wpa_supplicant v2.4
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'ens33' conf '/mnt/hgfs/VMShare/wpa_supplicant/wpa_supplicant.conf' driver 'wired' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/mnt/hgfs/VMShare/wpa_supplicant/wpa_supplicant.conf' -> '/mnt/hgfs/VMShare/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/mnt/hgfs/VMShare/wpa_supplicant/wpa_supplicant.conf'
ap_scan=0
fast_reauth=1
Priority group 0
   id=0 ssid=''
wpa_driver_wired_init: Added multicast membership with packet socket
Add interface ens33 to a new radio N/A
ens33: Own MAC address: 00:0c:29:1d:ce:1f
ens33: RSN: flushing PMKID list in the driver
ens33: Setting scan request: 0.100000 sec
TDLS: TDLS operation not supported by driver
TDLS: Driver uses internal link setup
TDLS: Driver does not support TDLS channel switching
ens33: WPS: UUID based on MAC address: 679dec0b-944c-5371-bd2d-d1e16c1c49a1
ENGINE: Loading dynamic engine
ENGINE: Loading dynamic engine
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
ens33: Added interface ens33
ens33: State: DISCONNECTED -> DISCONNECTED
random: Got 20/20 bytes from /dev/random
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
ens33: Already associated with a configured network - generating associated event
ens33: Event ASSOC (0) received
ens33: Association info event
FT: Stored MDIE and FTIE from (Re)Association Response - hexdump(len=0):
ens33: State: DISCONNECTED -> ASSOCIATED
ens33: Associated to a new BSS: BSSID=01:80:c2:00:00:03
ens33: Select network based on association information
ens33: Network configuration found for the current AP
ens33: WPA: clearing AP WPA IE
ens33: WPA: clearing AP RSN IE
ens33: WPA: clearing own WPA/RSN IE
ens33: Failed to get scan results
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
ens33: Associated with 01:80:c2:00:00:03
ens33: WPA: Association event - clear replay counter
ens33: WPA: Clear old PTK
TDLS: Remove peers on association
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: SUPP_BE entering state IDLE
EAP: EAP entering state INITIALIZE
EAP: EAP entering state IDLE
ens33: Cancelling scan request
WMM AC: Missing IEs
EAPOL: startWhen --> 0
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: txStart
TX EAPOL: dst=01:80:c2:00:00:03
l2_packet_receive: src=dc:07:c1:80:63:07 len=46
ens33: RX EAPOL from dc:07:c1:80:63:07
EAPOL: Received unknown EAPOL type 1
EAPOL: startWhen --> 0
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: txStart
TX EAPOL: dst=01:80:c2:00:00:03
EAPOL: idleWhile --> 0
EAP: EAP entering state FAILURE
ens33: CTRL-EVENT-EAP-FAILURE EAP authentication failed
EAPOL: SUPP_PAE entering state AUTHENTICATING
EAPOL: SUPP_BE entering state FAIL
EAPOL: SUPP_PAE entering state HELD
EAPOL: Supplicant port status: Unauthorized
EAPOL: SUPP_BE entering state IDLE
EAPOL authentication completed - result=FAILURE
EAPOL: startWhen --> 0
l2_packet_receive: src=dc:07:c1:80:63:07 len=46
ens33: RX EAPOL from dc:07:c1:80:63:07
EAPOL: Received unknown EAPOL type 1如果配置文件不对不能上网,至少radius那边有些打印吧,可是一点打印都没有
这个是怎么回事?是设置有问题,还是我自己的验证方法有问题,求大神解答