
1.iwconfig
功能:配置接口
基本格式:iwconfig –help
iwconfig –version
iwconfig [interface]
iwconfig interface [essid X] [freq F] [channel C] [sens S] [ap A]
[rate R][rts RT] [frag FT] [txpower T] [enc E] [key K] [retry R]
Eg:
●设置ath0 的 essid
iwconfig ath0 essid “zhaoyang”
●设置操作频率为5.2GHz
iwconfig ath0 freq 5.2g
●设置频段为11
iwconfig ath0 channel 11
●设置所有的数据包的传输功率为30dBm
iwconfig ath0 txpower 30
●设置最大传输率为36Mbs,因此,所有包的传输率都将小于等于36Mbs
iwconfig ath0 rate 36M auto
●设置用于RTS/CTS握手的包大小最小为40
iwconfig ath0 rts 40
●设置ath0的分片最大为512 bytes
iwconfig ath0 frag 512
2.wlanconfig
功能:创建或销毁VAP
基本格式:wlanconfig VAP create wlandev Base Device wlanmode mode [bssidk-bssid] [nosbeacon]
wlanconfig VAP destroy
eg:
●创建无线接口ath0,基础设备是wifi0
wlanconfig ath0 create wlandev wifi0 wlanmode ap
●销毁无线接口ath0
wlanconfig ath0 destroy
3.iwpriv
功能:设置属性
基本格式:iwpriv device [command] [parameters].
eg:
●设置工作模式为802.11g
iwpriv ath0 mode 11g
●获取工作模式
iwpriv ath0 get_mode
●隐藏essid
iwpriv ath0 hide_ssid 1
4.iwlist
功能:用于搜索可用的无线网络和显示一些在iwconfig中无法显示的附加信息
eg:
●搜索附近的ap
iwlist ath0 scan
5.brctl
功能:网桥操作
addbr delbr addif delif setageing
