8,460
个编辑
更改
→查询 AP6275P PCIe 网卡通过 create_ap 创建 WIFI 热点的方法
<span style="color:#0066CC;">https://github.com/oblique/create_ap</span>
|}
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-|如果使用的是最新的镜像,那么就已经预装了create_ap脚本,可以通过create_ap命令来创建WIFI热点,create_ap的基本命令格式如下所示:<br><br>create_ap [options] <wifi-interface> [<interface-with-internet>] <br>[<access-point-name> [<passphrase>]]<br><br>options:可以通过该参数指定加密方式、WIFI热点的频段、频宽模式、网络共享方式等,具体可以通过create_ap -h获取到有哪些option<br>wifi-interface:无线网卡的名称<br>interface-with-internet:可以联网的网卡名称,一般是eth0<br>access-point-name:热点名称<br>passphrase:热点的密码|}'''1、使用nmtui 命令来设置静态IP 地址1、create_ap 以 NAT 模式创建 WIFI 热点的方法'''<br><br>1) 首先运行 '''nmtui''' 命令输入下面的命令以 NAT 模式创建名称为 orangepi、密码为 orangepi 的 WIFI 热点<br>{| class="wikitable" style="width:800px;" |-|orangepi@orangepi5:~$ sudo create_ap -m nat wlan0 eth0 orangepi orangepi|}2) 如果有下面的信息输出,说明 WIFI 热点创建成功<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepiorangepi5:~$ '''nmtui'''sudo create_ap -m nat wlan0 eth0 orangepi orangepi<br>Config dir: /tmp/create_ap.wlan0.conf.fPItFUJ2 PID: 3831<br>Network Manager found, set ap0 as unmanaged device... DONE Creating a virtual WiFi interface... ap0 created.<br>Sharing Internet using method: nat<br>hostapd command-line interface: hostapd_cli -p<br>/tmp/create_ap.wlan0.conf.fPItFUJ2/hostapd_ctrl ap0: interface state UNINITIALIZED->ENABLED
|}
4) 然后通过 '''Tab''' 键选择 '''Edit''' 并按下回车键<br><br>
[[Image:Pi-5-details-pic74.png]]<br><br>