Comments: Setting up a Raspberry Pi 3 as an Access Point


Looking for answers to technical questions?

We welcome your comments and suggestions below. However, if you are looking for solutions to technical questions please see our Technical Assistance page.

  • Member #1613872 / about 4 years ago / 1

    I followed the tutorial and have double checked I modified all the files as described. The only change I made was to change the wpa passphrase (because ofc).

    when I reboot the pi I get an error message "failed to start DHCPCD on all interfaces. See 'systemctl status dhcpcd.service' for details" and when I run that command I get the following output:

    • dhcpcd.service - dhcpcd on all interfaces Loaded: loaded (/lib/systemd/system/dhcpcd.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sat 2020-08-08 18:37:11 CEST; 15min ago Process: 344 ExecStart=/usr/lib/dhcpcd5/dhcpcd -q -b (code=exited, status=6)

    Aug 08 18:37:11 raspberrypi systemd[1]: Starting dhcpcd on all interfaces... Aug 08 18:37:11 raspberrypi dhcpcd[344]: Not running dhcpcd because /etc/network/interfac Aug 08 18:37:11 raspberrypi dhcpcd[344]: defines some interfaces that will use a Aug 08 18:37:11 raspberrypi dhcpcd[344]: DHCP client or static address Aug 08 18:37:11 raspberrypi systemd[1]: dhcpcd.service: Control process exited, code=exit Aug 08 18:37:11 raspberrypi systemd[1]: Failed to start dhcpcd on all interfaces. Aug 08 18:37:11 raspberrypi systemd[1]: dhcpcd.service: Unit entered failed state. Aug 08 18:37:11 raspberrypi systemd[1]: dhcpcd.service: Failed with result 'exit-code'.

    Does anyone have advice on how to troubleshoot this problem? I'm pretty sure DHCP needs to run in order for this to work if I understand it correctly...

    • Member #1627133 / about 4 years ago / 1

      The changes that are made to /etc/network/interfaces should actually be in the same /etc/dhcpcd.conf that denyinterfaces wlan0 goes in. Try that and see if it works

    • santaimpersonator / about 4 years ago / 1

      I believe this tutorial was written a while ago. There are two possible issue that I can think of... you are using a Pi 4 or you are using the new "Buster" image. I'm not sure this tutorial will work with a Pi 4 and I think it was written back in the "Jessie" or "Stretch" era. If you aren't using a Pi 4, maybe try an older image. You can find an archive here:

  • Member #1489741 / about 5 years ago / 1

    Well, this tutorial comes closest to configuring my Raspberry Pi 3 as an access point. At least it assigns the defined static IP address to the wlan0 interface. I followed the instructions up through the "Test WiFi Connection" section, However, the network name I defined isn't showing up as a network option for my laptop.

    I followed the instructions to the T and triple checked the config files. The only think I did differently is use the Nov 2018 version of Raspian (and I used the light version). I didn't try the March 2018 version used in the tutorial. I might try this, even tho it appears to be the non-lite version (with a GUI).

    If anyone has suggestions, thanks in advance!


    • Member #1501426 / about 5 years ago / 1

      I tried the same thing as you the Nov 2018 Raspbian Lite version and just like you wasn't able to get the tutorial to work.

      However, the one linked in this tutorial March 2018 worked great after one small addition before you start run:

      "sudo apt-get update"

      otherwise you'll get the following error:

      Err:1 stretch/main armhf hostapd armhf 2:2.4-1+deb9u1 404 Not Found [IP: 80] E: Failed to fetch 404 Not Found [IP: 80]

      The apt-get update command downloads the package lists from the repositories and "updates" them to get information on the newest versions of packages and their dependencies.

      I was also successful in using the March 2018 in headless mode. I dropped a blank "ssh" file in the boot partition and was able to run the complete tutorial without having to hook-up a keyboard and mouse. The Raspberry Pi 3 was hooked up over wired ethernet.

      Hope this helps!

  • Alexi Carey / about 6 years ago / 1

    Straight and to the point. Thanks for posting!

If you've found an issue with this tutorial content, please send us your feedback!