AP基本命令总结
AP基本命令总结
功能:配置接口
基本格式:iwconfig –help
iwconfig –version
iwconfig [AP基本命令总结
AP基本命令总结
功能:配置接口
基本格式: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”
●
iwconfig ath0 freq
●设置频段为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
功能:创建或销毁VAP
基本格式:wlanconfig VAP create wlandev Base Device wlanmode mode [bssid k-bssid] [nosbeacon]
wlanconfig VAP destroy
eg:
●创建无线接口ath0,基础设备是wifi0
wlanconfig ath0 create wlandev wifi0 wlanmode ap
●销毁无线接口ath0
wlanconfig ath0 destroy
功能:设置属性
基本格式:iwpriv device [command] [parameters].
eg:
●
iwpriv ath0 mode 11g
●获取工作模式
iwpriv ath0 get_mode
●隐藏essid
iwpriv ath0 hide_ssid 1
功
AP基本命令总结 来自淘豆网m.daumloan.com转载请标明出处.