设置Channel与上级路由相同
iwpriv ra0 set Channel=xx
重要
ifconfig apcli0 up
按照加密方式分为以下4种
1.OPEN/NONE
iwpriv apcli0 set ApCliEnable=0
iwpriv apcli0 set ApCliAuthMode=OPEN
iwpriv apcli0 set ApCliEncrypType=NONE
iwpriv apcli0 set ApCliSsid=MT7628_AP
iwpriv apcli0 set ApCliEnable=1
2.OPEN/WEP
iwpriv apcli0 set ApCliEnable=0
iwpriv apcli0 set ApCliAuthMode=OPEN
iwpriv apcli0 set ApCliEncrypType=WEP
iwpriv apcli0 set ApCliDefaultKeyID=1
iwpriv apcli0 set ApCliKey1=1234567890
iwpriv apcli0 set ApCliSsid=MT7628_AP
iwpriv apcli0 set ApCliEnable=1
3.WPAPSK/TKIP
iwpriv apcli0 set ApCliEnable=0
iwpriv apcli0 set ApCliAuthMode=WPAPSK
iwpriv apcli0 set ApCliEncrypType=TKIP
iwpriv apcli0 set ApCliSsid=MT7628_AP
iwpriv apcli0 set ApCliWPAPSK=1234567890
iwpriv apcli0 set ApCliSsid=MT7628_AP
iwpriv apcli0 set ApCliEnable=1
4.WPA2PSK/AES
iwpriv apcli0 set ApCliEnable=0
iwpriv apcli0 set ApCliAuthMode=WPA2PSK
iwpriv apcli0 set ApCliEncrypType=AES
iwpriv apcli0 set ApCliSsid=MT7628_AP
iwpriv apcli0 set ApCliWPAPSK=1234567890
iwpriv apcli0 set ApCliSsid=MT7628_AP
iwpriv apcli0 set ApCliEnable=1
连接完成了之后,无法分配IP地址的时候,输入如下指令:
udhcpc动态分配ip地址
udhcpc -i apcli0 -s /sbin/udhcpc.sh
openwrt中执行udhcpc -i apcli0
原文链接:https://blog.csdn.net/sy1257911124/article/details/78271165