Changes

Jump to: navigation, search

Orange Pi 5 detail

58 bytes added, 11:21, 23 April 2023
AP6275P PCIe NIC creates WIFI hotspot via create_ap
|}
'''1.create_ap method to create WIFI hotspot in NAT mode'''<br><br>
1) 输入下面的命令以 NAT 模式创建名称为 '''Enter the following command to create a WIFI hotspot named orangepi'''、密码为 '''and password orangepi''' 的 WIFI 热点in NAT mode<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi5:~$ '''sudo create_ap -m nat wlan0 eth0 orangepi orangepi'''
|}
2) 如果有下面的信息输出,说明 If the following information is output, it means that the WIFI 热点创建成功hotspot is created successfully<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi5:~$ '''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
|}
3) 此时拿出手机,在搜索到的 Take out the mobile phone at this time, in the searched WIFI 列表中就能找到开发板创建的名为 '''list, you can find the WIFI hotspot named orangepi'''的 WIFI 热点,然后可以点击 '''created by the development board, and then click orangepi'''连接热点,密码就是上面设置的 '''to connect to the hotspot, the password is the orangepi'''set above<br><br>
[[Image:Pi-5-details-pic95.png]]<br><br>
4) 连接成功后的显示如下图所示After the connection is successful, the display is as shown in the figure below<br><br>
[[Image:Pi-5-details-pic96.png]]<br><br>
5) 在 NAT 模式下,连接到开发板热点的无线设备是向开发板的 DHCP 服务请求 IP地址的,所以会有两个不同的网段,如这里开发板的 IP 是 192.168.1.X<br>

Navigation menu