操作笔记:Linux配置wpa


Linux最近几年发展迅速,很多人舍弃微软应用Linux操作系统,Linux的强大功能是那么吸引人。这里介绍一些Linux知识,今天讲解Linux配置wpa客户端步骤,望你能学会Linux配置wpa。

内核:

  1. bt tools # uname -a  
  2. Linux bt 2.6.20-BT-PwnSauce-NOSMP #3 Sat Feb 24 15:52:59 GMT 2007 i686 i686 i386 GNU/Linux  
  3. bt tools # 

网卡:

  1. bt tools # lspci -vv |grep -i 394  
  2. 03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)  
  3. bt tools # 

操作系统版本:

  1. bt tools # cat /etc/slax-version  
  2. SLAX 6.0.0  
  3. bt tools #  
  4. 802.1x 客户端版本:  
  5. bt ~ # wpa_supplicant -v  
  6. wpa_supplicant v0.5.7  
  7. Copyright (c) 2003-2006, Jouni Malinen and contributors  
  8. bt ~ #  
  9. bt tools # 

配置文件内容: wpa 方式

  1. bt ~ # cat /etc/wpa_supplicant.conf  
  2. network={  
  3. ssid="youssid" 
  4. psk="youpassword" 
  5. }  
  6. bt ~ # 

命令以及参数:

命令:wpa_supplicant

使用参数:

  1. -B = run daemon in the background  
  2. -c = Configuration file  
  3. -i = interface name 

命令执行例子:

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

获得地址:

dhcpcd eth0

察看网卡状态以及参数:

  1. bt ~ # iwconfig eth0  
  2. eth0 IEEE 802.11g ESSID:"youssid"  
  3. Mode:Managed Frequency:2.462 GHz Access Point: 00:00:00:00:00:00  
  4. Bit Rate:54 Mb/s Tx-Power:14 dBm  
  5. Retry limit:15 RTS thr:off Fragment thr:off  
  6. Encryption key:xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx Security mode:open  
  7. Power Management:off  
  8. Link Quality=74/100 Signal level=-57 dBm Noise level=-57 dBm  
  9. Rx invalid nwid:0 Rx invalid crypt:1 Rx invalid frag:0  
  10. Tx excessive retries:0 Invalid misc:21 Missed beacon:0  
  11. bt ~ # ifconfig eth0  
  12. eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx  
  13. inet addr:192.168.2.100 Bcast:192.168.2.255 Mask:255.255.255.0  
  14. inet6 addr: fe80::218:deff:feb0:38e5/64 Scope:Link  
  15. UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1  
  16. RX packets:33 errors:2 dropped:31 overruns:0 frame:0  
  17. TX packets:12 errors:0 dropped:0 overruns:0 carrier:0  
  18. collisions:0 txqueuelen:1000  
  19. RX bytes:11177 (10.9 KiB) TX bytes:4324 (4.2 KiB)  
  20. Interrupt:11 Base address:0x2000 Memory:edf00000-edf00fff 

以上就是Linux配置wpa的方法,这样Linux就可以使用wpa访问无线网络了.要比wep好一些.

  1. 全面解析Linux集群技术的要点
  2. LifeKeeper又一款Linux服务器集群软件
  3. 讲解Linux服务器集群技术
  4. 详解保护Linux服务器七步骤
  5. 全面介绍Linux配置ntop

相关内容

    暂无相关文章