# Second wifi (dongle) only as local network

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 ?

• Just follow this tutorial but leave out the routing and masquerade part. If you want to use systemd-networkd you could also follow this tutorial. – jake Aug 5 '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 3 '20 at 7:56

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.

• 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

Follow the normal dhcpcd setup for wlan0.

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

interface wlan1