RU EN Chapt 3. Instructions for use of Debian/Ubuntu Server and Xfce desktop system Страница: 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 3.7.3. The method of creating WIFI hotspot through create_ap create_ap is a script that helps quickly create WIFI hotspots on Linux, and supports bridge and NAT modes. It can automatically combine hostapd, dnsmasq and iptables to complete the setting of WIFI hotspots, avoiding complex configuration for users. The github address is as follows: https://github.com/oblique/create_ap
The Linux image released by OPi has pre-installed the create_ap script. You can create a WIFI hotspot through the create_ap command. The basic command format of create_ap is as follows:
3.7.3.1 create_ap method to create WIFI hotspot in NAT mode
Note that in the following commands, Debian12 needs to change eth0 to end0.
![]() Img 3.45
![]() Img 3.46
Note that in the following commands, Debian12 needs to change eth0 to end0.
By default, the DHCP service of the development board will assign an IP address of 192.168.12.0/24 to the device connected to the hotspot. At this time, click on the connected WIFI hotspot orangepi, and then you can see that the IP address of the mobile phone is 192.168.12.X
![]() Img 3.47 ![]() Img 3.48
Note that in the following commands, Debian12 needs to change eth0 to end0.
At this time, after connecting to the hotspot through the mobile phone, click on the connected WIFI hotspot orangepi, and then you can see that the IP address of the mobile phone is 192.168.2.X.
Note that in the following commands, Debian12 needs to change eth0 to end0.
Note that in the following commands, Debian12 needs to change eth0 to end0.
At this time, the mobile phone cannot search for the WIFI hotspot. You need to manually specify the name of the WIFI hotspot and enter the password to connect to the WIFI hotspot.
![]() Img 3.50 3.7.3.2 create_ap method to create WIFI hotspot in bridge mode
Note that in the following commands, Debian12 needs to change eth0 to end0.
![]() Img 3.52
![]() Img 3.47
The IP of the device connected to the WIFI hotspot is also assigned by the main router, so the mobile phone connected to the WIFI hotspot and the development board are in the same network segment.
At this time, click on the connected WIFI hotspot orangepi, and then you can see the IP address of the mobile phone also 192.168.1.X
![]() Img 3.47 ![]() Img 3.48
Note that in the following commands, Debian12 needs to change eth0 to end0
Note that in the following commands, Debian12 needs to change eth0 to end0.
At this time, the mobile phone cannot search for the WIFI hotspot. You need to manually specify the name of the WIFI hotspot and enter the password to connect to the WIFI hotspot.
![]() Img 3.51 Страница: 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
![]() |