Configure the wpa client in linux

Source: Internet
Author: User
In linux, configure the wpa client-Linux Enterprise Application-Linux server application information. For more information, see. Kernel:
Bt tools # uname-
Linux bt 2.6.20-BT-PwnSauce-NOSMP #3 Sat Feb 24 15:52:59 GMT 2007 i686 i686 i386 GNU/Linux
Bt tools #
NIC:
Bt tools # lspci-vv | grep-I 394
. 0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)
Bt tools #
Operating system version:
Bt tools # cat/etc/slax-version
SLAX 6.0.0
Bt tools #
802.1x Client Version:

Bt ~ # Wpa_supplicant-v
Wpa_supplicant v0.5.7
Copyright (c) 2003-2006, Jouni Malinen And contributors
Bt ~ #
Bt tools #
Configuration File Content: wpa
Bt ~ # Cat/etc/wpa_supplicant.conf
Network = {
Ssid = "youssid"
Psk = "youpassword"
}
Bt ~ #

Command and parameters:
Command: wpa_supplicant
Parameters used:

-B = run daemon in the background
-C = Configuration file
-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:
Bt ~ # Iwconfig eth0
Eth0 IEEE 802.11g ESSID: "youssid"
Mode: Managed Frequency: 2.462 GHz Access Point: 00: 00: 00: 00: 00: 00: 00
Bit Rate: 54 Mb/s Tx-Power: 14 dBm
Retry limit: 15 RTS thr: off Fragment thr: off
Encryption key: xxxx-xxxx Security mode: open
Power Management: off
Connection 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 xx: xx
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 FIG: 1000
RX bytes: 11177 (10.9 KiB) TX bytes: 4324 (4.2 KiB)
Interrupt: 11 Base address: 0x2000 Memory: edf00000-edf00fff

In this way, linux can use wpa to access wireless networks, which is better than wep.
Related Article

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.