1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Updated RPi Zero W AP STA mode (markdown)

Bill Zimmerman 2020-08-17 14:27:12 +02:00
parent 878a1c907a
commit 33aeac7b6a

@ -2,6 +2,8 @@
This walkthrough describes an installation of RaspAP on the [Raspberry Pi Zero W](https://www.raspberrypi.org/products/raspberry-pi-zero-w/). A managed mode AP, variously known as **WiFi client AP mode**, a **micro-AP** or simply **AP-STA**, works "out-of-the-box" with the Quick Installer if the steps below are followed carefully. This feature was added to RaspAP specifically to support Internet of Things (IoT) and embedded applications for the Pi Zero W, however it is equally useful for a broad range of use cases. This walkthrough describes an installation of RaspAP on the [Raspberry Pi Zero W](https://www.raspberrypi.org/products/raspberry-pi-zero-w/). A managed mode AP, variously known as **WiFi client AP mode**, a **micro-AP** or simply **AP-STA**, works "out-of-the-box" with the Quick Installer if the steps below are followed carefully. This feature was added to RaspAP specifically to support Internet of Things (IoT) and embedded applications for the Pi Zero W, however it is equally useful for a broad range of use cases.
Continue reading for an explanation of AP-STA mode, or [skip to the installation](#installation).
![](https://i.imgur.com/gppLmAj.png) ![](https://i.imgur.com/gppLmAj.png)
### What is AP-STA mode? ### What is AP-STA mode?
@ -21,15 +23,16 @@ The second valid interface combination indicates that both a `managed` and `AP`
**Note:** if you have a second wireless adapter bound to `wlan1` on a Pi Zero W (or other device), refer to [this FAQ](https://github.com/billz/raspap-webgui/wiki/FAQs#can-i-use-wlan0-and-wlan1-rather-than-eth0-for-my-ap). **Note:** if you have a second wireless adapter bound to `wlan1` on a Pi Zero W (or other device), refer to [this FAQ](https://github.com/billz/raspap-webgui/wiki/FAQs#can-i-use-wlan0-and-wlan1-rather-than-eth0-for-my-ap).
### Use cases ### Use cases
There are many scenarios in which AP-STA might be useful. These are some of the most popular ones: There are many scenarios in which AP-STA mode might be useful. These are some of the more popular ones:
1. A device that connects to a wireless AP but needs an admin interface to configure the network and/or other services. 1. A device that connects to a wireless AP but needs an admin interface to configure the network and/or other services.
2. A a hub for Internet of Things devices, while also creating a bridge between them and the internet. 2. A a hub for Internet of Things devices, while also creating a bridge between them and the internet.
3. A guest interface to your home wireless network. 3. A guest interface to your home wireless network.
Security is an important consideration with Internet of Things and it can be beneficial to keep your IoT devices on a separate network for safetys sake. AP-STA is particularly useful in this scenario. No one wants a random internet user turning your lights on and off. Security is an important consideration with Internet of Things and it can be beneficial to keep your IoT devices on a separate network for safetys sake. No one wants a random internet user turning your lights on and off.
### How does AP-STA work? ### How does AP-STA work?
In this configuration, we create a virtual network interface (here `uap0`) and use it instead of `wlan0` on the AP side. This virtual interface is used by several of the services used to manage an AP. Relevant sections are displayed below as examples. In this configuration, we create a virtual network interface (called `uap0` here) and use it instead of `wlan0` on the AP side. This virtual interface is used by several of the services used to manage an AP. Relevant sections are displayed below as examples.
`dhcpcd.conf`: `dhcpcd.conf`:
``` ```