brianmcdoogle
Member
I figured this may be the best place to ask this question, but I recently setup a Raspberry Pi to act as a wireless access point, and it works great... when it works. The problem seems to be that if I reboot it or disconnect it form power, sometimes the DHCP server fails to launch and all of my connected devices can't acquire an IP address and assign themselves a 169.x.x.x IP address that results in them not connecting to the internet. Through some hunting, it sounds like the DHCP server is starting before the Raspberry Pi, through hostpad, hasn't yet assigned itself an IP address, so DHCP is starting too early or too fast. I would think this is easy to solve, but since this happens randomly on reboots, sometimes it is too fast and sometimes it is slow enough to work correctly, I can't figure out how to resolve the issue.
I have DHCP setup to start on boot via "sudo update-rc.d isc-dhcp-server enable", but should I disable that and just execute a script that waits a few seconds and then starts the DHCP server? Do you think that may be my problem?
I have DHCP setup to start on boot via "sudo update-rc.d isc-dhcp-server enable", but should I disable that and just execute a script that waits a few seconds and then starts the DHCP server? Do you think that may be my problem?