2008年3月13日星期四

配置无线网络

环境:
  • 笔记本: ASUS M2000
  • 系统: Debian 2.6.22-3-686
  • 无线网卡: Intel Pro/Wireless 2100
  • ESSID: MyLab
  • 用户名:MyName
  • 密码:MyPasswd
  • 网络验证:WPA
  • 数据加密:TKIP
  • EAP类型:PEAP
  • 验证方法:EAP-MSCHAP V2
装驱动:
  • 下载ipw2100-fw,解压到/lib/firmware目录下。
  • rmmod ipw2100
  • modprobe ipw2100
查看/etc/udev/rules.d,找到ipw2100对应的eth1:
# PCI device 0x8086:0x1043 (ipw2100)
SUBSYSTEM=="net", DRIVERS=="?*", \
ATTR{address}=="xx:xx:xx:xx:xx:xx", NAME="eth1"
找接入的ap:
  • apt-get install wpasupplicant wireless-tools
  • iwlist eth1 scan
编辑/etc/wpa_supplicant/lab.conf
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1
network={ssid="MyLab"
id_str="wlab"
scan_ssid=1
key_mgmt=WPA-EAP
eap=PEAP
identity="MyName"
password="MyPasswd"
auth_alg=OPEN
phase1="peaplabel=0"
phase2="auth=MSCHAPV2"
priority=10
proto=WPA
pairwise=TKIP
group=TKIP
}
测试一下:wpa_supplicant -w -i eth1 -D wext -c /etc/wpa_supplicant/lab.conf
编辑/etc/network/interfaces:
    # 无线网卡
    allow-hotplug eth1
    iface eth1 inet dhcp
    wpa-driver wext
    wpa-roam /etc/wpa_supplicant/lab.conf
    ### 无线接入实验室
    wpa-ssid "MyLab"
启动无线:ifup eth1
参考:

没有评论:

发表评论