range Pi User Manual Copyright reserved by Shenzhen Xunlong Software Co., Ltd
142
4) Then restart the Linux system
orangepi@orangepi:~$ sudo reboot
5) Then re-enter the Linux system and use the ip addr show eth0 command to see that
the IP address has been set to the desired value
orangepi@orangepi:~$ ip addr show eth0
3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state
UP group default qlen 1000
link/ether 5e:ae:14:a5:91:b3 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.110/32 brd 192.168.1.110 scope global noprefixroute eth0
valid_lft forever preferred_lft forever
inet6 240e:3b7:3240:c3a0:97de:1d01:b290:fe3a/64 scope global dynamic
noprefixroute
valid_lft 259183sec preferred_lft 172783sec
inet6 fe80::3312:861a:a589:d3c/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3.6.4. Method to create 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 users from making
complicated configurations. The github address is as follows:
https://github.com/oblique/create_ap
If you are using the latest image, the create_ap script has been pre-installed. You
can create a WIFI hotspot through the create_ap command. The basic command
format of create_ap is as follows:
create_ap [options] <wifi-interface> [<interface-with-internet>]
[<access-point-name> [<passphrase>]]
* options:You can use this parameter to specify the encryption method, frequency
band of WIFI hotspot, bandwidth mode, network sharing method, etc. You can get
the options through create_ap -h.
* wifi-interface:The name of the wireless network card
* interface-with-internet:The name of the network card that can connect to the