1

I'm running Raspberry Pi (3B+) 9 (stretch) Wlan0 connected to WAN with network info stored in wpa_supplicant.conf.

I recently purchased an Wifi dongle in order to create a wireless access point from which an Arduino can connect and transmit data (temperature readings) in to the raspberry with a lightweight webserver. This secondary network does not need to be bridged with wlan0 (WAN), since its purpose is to only retrieve data from arduino.

I'm able to find several questions which addresses the issue of using the second wlan1 as a repeater or bridge to wlan0, but not as stand alone local network. Preferably i also want the network SSID to be hidden.

Any good solutions ?

Adrianni
  • 13
  • 2
  • 2
    Just follow [this tutorial](https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md) but leave out the routing and masquerade part. If you want to use `systemd-networkd` you could also follow [this tutorial](https://raspberrypi.stackexchange.com/a/88234/92303). – jake Aug 05 '19 at 19:46
  • The first tutorial solved my problem. Thanks Jake – Adrianni Aug 11 '19 at 17:49
  • Please make your comments an answer and accept it after two days. Only accepting an answer will finish your question and it will not pop up again and again for years. – Ingo May 03 '20 at 07:56

2 Answers2

0

Follow the normal dhcpcd setup for wlan0.

See How to set up networking/WiFi

The Foundation Access Point tutorial should explain how to configure the second interface.

interface wlan1
    static ip_address=192.168.4.1/24
    nohook wpa_supplicant
Milliways
  • 54,718
  • 26
  • 92
  • 182
0

For a simple setup you can use an Access point as WiFi router/repeater with additional WiFi-dongle. It uses systemd-networkd so you do not need any additional software. The setup is called a router/repeater but it is no problem to disable routing. In file /etc/systemd/network/08-wlan0.network there is an option IPForward=yes. Simply just comment it and you do not have a WiFi router/repeater anymore, just an access point and a client connection to your internet router.

Ingo
  • 40,606
  • 15
  • 76
  • 189
  • Thank you for your reply. I had some issues using this setup and ended up using Jake's reply in OP. – Adrianni Aug 11 '19 at 17:50