debian网络认证801.2配置方法
debian的802.1认证网络设置:
/etc/wpa_supplicant/wired_connection.conf :
ap_scan=0
ctrl_interface=/var/run/wpa_supplicant
network={
proto=WPA
key_mgmt=IEEE8021X
pairwise=TKIP
group=TKIP
eap=PEAP
eapol_flags=0
identity="username"
password="passwd"
phase1="peaplabel=0"
phase2="auth=MSCHAPV2"
}/etc/network/interfaces:
# This file describes the network interfaces available on your system
#andhowtoactivatethem.Formoreinformation,seeinterfaces(5).
#Theloopbacknetworkinterface
autoloeth0
ifaceloinetloopback
#Theprimarynetworkinterface
allow-hotplugeth0
ifaceeth0inetdhcp
pre-up wpa_supplicant -B -c/etc/wpa_supplicant/wired_connection.conf -ieth0 -Dwired&> /dev/null(最后一句的意思为在ifce前先认证)
然后:killall wpa_supplicant ;
sudo /etc/init.d/networking restart
有时候开机后,偶尔会认证不成功,可以直接运行以下脚本:
#!/bin/sh
killallwpa_supplicant
ifdowneth0
wpa_supplicant-B-Dwired-ieth0-c/etc/wpa_supplicant/wired_connection.conf&>/dev/null
ifupeth0
dhclient3 eth0