I have a raspberry pi 3b+ which I want to connect to two seperate networks.

I have an existing ethernet connection which works fine, and i am able to SSH/VNC to the pi over this network.

I have cobbled together a configuration from other questions on here, to attempt to get the WiFi up. My configuration is as follows:


ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

    ssid = "MYSSID"
    scan_ssid = 1
    id_str="WIFI ACCESS"


auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet static
address w.x.y.z

auto wlan0
allow-hotplug eth0
iface wlan0 inet static
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
address a.b.c.d
broadcast a.b.c.254
gateway a.b.c.254

iface default inet dhcp

I created a file in /etc/default named ifplugd


ARGS="-q -f -u0 -d10 -w -I"

Edited my rc.local file to ensure wlan starts up


# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"

#disable the ifplugd eth0
sudo ifplugd eth0 --kill
sudo ifplugd wlan0

exit 0

I rebooted my pi and no WLAN was found. I don't know if there's some config i've missed/gotten wrong, or if it's an incorrect p/w for the SSID.

  • 1
    You have NOT set WiFi country, have not specified OS (I presume Raspbian Stretch) and appear to be using obsolete settings in /etc/netowrk/interfaces (sic). I suggest you do a fresh install of Raspbian THEN explain WHAT you are trying to achieve. – Milliways Sep 24 '18 at 11:09
  • See How to set up networking/WiFi – Milliways Sep 24 '18 at 11:15
  • "I don't know if there's some config i've missed/gotten wrong, or if it's an incorrect p/w for the SSID." -> If you try running wpa supplicant in the foreground yourself, it should provide details (they might already be in the system log): sudo wpa_supplicant -i wlan0 -c [/path/to/your/config] -d. – goldilocks Sep 24 '18 at 15:13
  • One thing is definitely wrong: you cannot use broadcast address a.b.c.254 as gateway. – Ingo Sep 26 '18 at 21:49
  • Hi @Thom G, you don't reply. Have you followed the suggestions? Does it work now? Are you still interested in help? – Ingo Oct 17 '18 at 8:11

If you are trying to connect to an existing wifi network on Raspbian os then you can use raspi-config quick setup


Or if you want to setup your own wifi hotspot network with hostpad and dnsmasq then you can follow this


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.