Operation notes: Configure wpa in Linux

Source: Internet
Author: User

Linux has developed rapidly in recent years. Many people abandon Microsoft's Linux operating system. The powerful functions of Linux are so attractive. Here we will introduce some Linux knowledge. Today we will explain how to configure the wpa client in Linux. I hope you can learn how to configure wpa in Linux.

Kernel:

 
 
  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 # 

NIC:

 
 
  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 # 

Operating system version:

 
 
  1. Bt tools # cat/etc/slax-version
  2. SLAX 6.0.0
  3. Bt tools #
  4. 802.1x Client Version:
  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 #

Configuration File Content: wpa

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

Command and parameters:

Command: wpa_supplicant

Parameters used:

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

Command Execution example:

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

Obtain Address:

Dhcpcd eth0

View the NIC status and parameters:

 
 
  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 

The above is the wpa configuration method in Linux, so that Linux can use wpa to access the wireless network, which is better than wep.

  1. Key Points of Linux cluster technology
  2. Another Linux server cluster software for LifeKeeper
  3. Linux server cluster technology
  4. Step 7: Protect Linux servers
  5. Introduction to ntop configuration in Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.