command usage for configuring and acquiring wireless network card information in a Linux system

Source: Internet
Author: User

Iwpriv

Configure Connection Options command

Cases:

The code is as follows:
[Root@linux ~]# iwpriv wlan0 set Networktype=infra #设置要连接的网络类型
[Root@linux ~]# iwpriv wlan0 set AUTHMODE=WPA2PSK #设置要连接的无线网络的安全模式
[Root@linux ~]# iwpriv wlan0 set Encryptype=tkip #设置网络加密方式: (CCMP is AES)
[Root@linux ~]# iwpriv wlan0 set wpapsk=******* #设置连接时的密码: ******** Password for encrypted network
[Root@linux ~]# iwpriv wlan0 set ssid=jxj_rd #iwpriv命令, connecting to the network
[Root@linux ~]# iwconfig wlan0 Essid jxj_rd #用iwconfig命令, connect the network
[Root@linux ~]# iwpriv wlan0 connstatus #如果密码正确, you can connect to the network Jxj_rd

Iwlist

Iwlist command: For the analysis of the/proc/net/wireless file, to obtain the relevant information of wireless network card

Scanning search for the current wireless network
Frequen Display Channel Information
Rate Display Connection speed
Power display Mode
Txpower Display Power
Retry Display retry connections (network unstable view)
AP Display hotspot Information
--HELP Display Help information
--version Display version Information

Cases:

The code is as follows:
[Root@linux ~]# iwlist wlan0 Frequen #显示频道信息

Wlan0 channels in total; Available frequencies:
Channel 01:2.412 GHz
Channel 02:2.417 GHz
Channel 03:2.422 GHz
Channel 04:2.427 GHz
Channel 05:2.432 GHz
。。。。。。。。。。。。。。。。。。。。。。。。

The code is as follows:
[Root@linux ~]# iwlist wlan0 scanning #搜索无线网络

Iwlist Scanning
Lo Interface doesn ' t support scanning.

Eth0 Interface doesn ' t support scanning.

Wlan0 Scan Completed:
Cell 01-address:e0:05:c5:b6:53:a0
Channel:1
frequency:2.412 GHz (Channel 1)
QUALITY=41/70 Signal level=-69 dBm
Encryption Key:off
Essid: "web:192.168.1.2"
Bit rates:1 mb/s; 2 MB/s; 5.5 MB/s; 6 MB/s; 9 MB/s
MB/s; MB/s; MB/s
Bit rates:24 mb/s; MB/s; MB/s; MB/s
Mode:master
extra:tsf=0000000342c72184
Extra:last beacon:5220ms ago
ie:unknown:000f5765623a3139322

。。。。。。。。。。。。。。。。。。。。。。。。

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.