大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。
Jetbrains全家桶1年46,售后保障稳定
重要是使用命令创建,可以通过无线网卡和手机登陆的无线网络标识。登陆名称就是ssid号。
1:/etc/rc.d/rc.wlan up //这个文件主要用来加载wlan相应的驱动程序。
2:配置ip地址,针对br0。
ifconfig br0 10.10.99.194 up
3:创建基本的VAP
/etc/rc.d/rc.wlan up
wlanconfig ath0 create wlandev wifi0 wlanmode ap
iwconfig ath0 essid “haha_5.4G”
ifconfig ath0 up
brctl addif br0 ath0
扩展参数设置:
ifconfig ath0 down
iwpriv wifi0 ATHDebug 0x0
iwpriv ath0 dbgLVL 0x100
iwpriv wifi0 setCountryID 156
iwpriv wifi0 setCountry CN
iwpriv ath0 mode 11NAHT20
iwpriv wifi0 ForBiasAuto 1
iwpriv wifi0 AMPDUFrames 32
iwpriv wifi0 AMPDULim 50000
iwpriv ath0 pureg 0
iwconfig ath0 mode master
iwconfig ath0 rate auto
iwpriv ath0 puren 0
iwconfig ath0 channel 161
iwconfig ath0 txpower 6dBm
iwconfig ath0 frag 2342
iwconfig ath0 rts 2344
iwpriv ath0 shpreamble 0
iwpriv ath0 dtim_period 1
iwpriv ath0 bintval 100
iwpriv ath0 wmm 1
iwpriv wifi0 AMPDU 1
iwpriv ath0 shortgi 1
ifconfig ath0 up
iwpriv wifi0 HALDbg 0x0
iwpriv wifi0 ATHDebug 0x0
iwpriv ath1 dbgLVL 0x100
iwpriv wifi0 setCountryID 156
iwpriv wifi0 setCountry CN
iwpriv wifi0 ForBiasAuto 1
iwpriv wifi0 AMPDUFrames 32
iwpriv wifi0 AMPDULim 50000
iwlist ath0 channel
/etc/rc.d/rc.wlan up
wlanconfig ath0 create wlandev wifi0 wlanmode ap
iwconfig ath0 essid “cctv”
ifconfig ath0 up
brctl addif br0 ath0
wlanconfig ath1 create wlandev wifi1 wlanmode ap
iwconfig ath1 essid “2.4test”
iwpriv ath1 mode 11NGHT20
ifconfig ath1 up
brctl addif br0 ath1
brctl show
4:常用命令.
Iwpriv
Iwlist
iwconfig
Ifconfig
wlanconfig
如果对命令不熟悉,可以使用其帮助信息。如\
~ # iwlist
Usage: iwlist [interface] scanning [essid NNN] [last]
[interface] frequency
[interface] channel
[interface] bitrate
[interface] rate
[interface] encryption
[interface] keys
[interface] power
[interface] txpower
[interface] retry
[interface] ap
[interface] accesspoints
[interface] peers
[interface] event
[interface] auth
[interface] wpakeys
[interface] genie
[interface] modulation
[root@localhost ~]$brctl
Usage: brctl [commands]
commands:
addbr <bridge> add bridge
delbr <bridge> delete bridge
addif <bridge> <device> add interface to bridge
delif <bridge> <device> delete interface from bridge
setageing <bridge> <time> set ageing time
setbridgeprio <bridge> <prio> set bridge priority
setfd <bridge> <time> set bridge forward delay
sethello <bridge> <time> set hello time
setmaxage <bridge> <time> set max message age
setpathcost <bridge> <port> <cost> set path cost
setportprio <bridge> <port> <prio> set port priority
show show a list of bridges
showmacs <bridge> show a list of mac addrs
showstp <bridge> show bridge stp info
stp <bridge> {on|off} turn stp on/off
[root@localhost ~]$iwconfig –help
Usage: iwconfig [interface]
interface essid {NNN|any|on|off}
interface mode {managed|ad-hoc|master|…}
interface freq N.NNN[k|M|G]
interface channel N
interface bit {N[k|M|G]|auto|fixed}
interface rate {N[k|M|G]|auto|fixed}
interface enc {NNNN-NNNN|off}
interface key {NNNN-NNNN|off}
interface power {period N|timeout N|saving N|off}
interface nickname NNN
interface nwid {NN|on|off}
interface ap {N|off|auto}
interface txpower {NmW|NdBm|off|auto}
interface sens N
interface retry {limit N|lifetime N}
interface rts {N|auto|fixed|off}
interface frag {N|auto|fixed|off}
interface modulation {11g|11a|CCK|OFDMg|…}
interface commit
Check man pages for more details.
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/234211.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...