免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1532 | 回复: 0
打印 上一主题 下一主题

在Linux下面配置wpa 客户端 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-08-21 15:38 |只看该作者 |倒序浏览
本文是一篇无线网络技术应用文章,告诉大家如何在Linux下面配置wpa客户端。

  内核:

  bt tools # uname -a

  Linux bt 2.6.20-BT-PwnSauce-NOSMP #3 Sat Feb 24 15:52:59 GMT 2007 i686 i686 i386 GNU/Linux

  bt tools #

  网卡:

  bt tools # lspci -vv |grep -i 394

  03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)

  bt tools #

  操作系统版本:

  bt tools # cat /etc/slax-version

  SLAX 6.0.0

  bt tools #

  802.1x 客户端版本:

  bt ~ # wpa_supplicant -v

  wpa_supplicant v0.5.7

  Copyright (c) 2003-2006, Jouni Malinen and contributors

  bt ~ #

  bt tools #

  配置文件内容: wpa 方式

  bt ~ # cat /etc/wpa_supplicant.conf

  network={

  ssid="youssid"

  psk="youpassword"

  }

  bt ~ #

  命令以及参数:

  命令:wpa_supplicant

  使用参数:

  -B = run daemon in the background

  -c = Configuration file

  -i = interface name

  命令执行例子:

  wpa_supplicant -B -ieth0 -c /etc/wpa_supplicant.conf

  获得地址:

  dhcpcd eth0

  察看网卡状态以及参数:

  bt ~ # iwconfig eth0

  eth0 IEEE 802.11g ESSID:"youssid"

  Mode:Managed Frequency:2.462 GHz Access Point: 00:00:00:00:00:00

  Bit Rate:54 Mb/s Tx-Power:14 dBm

  Retry limit:15 RTS thrff Fragment thrff

  Encryption keyxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx Security modepen

  Power Managementff

  Link Quality=74/100 Signal level=-57 dBm Noise level=-57 dBm

  Rx invalid nwid:0 Rx invalid crypt:1 Rx invalid frag:0

  Tx excessive retries:0 Invalid misc:21 Missed beacon:0

  bt ~ # ifconfig eth0

  eth0 Link encap:Ethernet HWaddr xxxxxxx

  inet addr:192.168.2.100 Bcast:192.168.2.255 Mask:255.255.255.0

  inet6 addr: fe80::218:deff:feb0:38e5/64 Scope:Link

  UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1

  RX packets:33 errors:2 dropped:31 overruns:0 frame:0

  TX packets:12 errors:0 dropped:0 overruns:0 carrier:0

  collisions:0 txqueuelen:1000

  RX bytes:11177 (10.9 KiB) TX bytes:4324 (4.2 KiB)

  Interrupt:11 Base address:0x2000 Memory:edf00000-edf00fff

  这样linux就可以使用wpa 访问无线网络了.要比wep好一些.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP