Iwpriv
Configure Connection Options command
Cases:
[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:
[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
。。。。。。。。。。。。。。。。。。。。。。。。
[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
。。。。。。。。。。。。。。。。。。。。。。。。