DHCP stopped working after power outage
- FOG Version: 1.3.5
- OS: Ubuntu
After a power outage, the FOG server DHCP function is not working. I have a new switch, there is no DHCP interference as i’m using a switch and a server with no internet connection. I’ve changed the cables for brand new ones, and verified the enet port on the laptop works fine.
@Wayne-Workman I ran
chmod 755 ./installfog.sh
and it works now. Thanks for pointing that out.
@TTellez Well, the installation error is a different subject, it should be given a new thread if one of the below installation guides doesn’t do it for you. But - sounds like you’re not root when you’re running the installer.
@Wayne-Workman the WE I meant was us here. I am nothing but appreciative of the help you offered. We have a linux pro here, and even he couldnt figure it out. I wasn’t being impatient with you.
I think you’re under the impression or idea that fixing DHCP configuration is complicated - it is not. The problem you had was a very simple thing to fix. You only recently posted a picture of actual errors - and I only just got home from work to see them.
@Wayne-Workman we wasted too long working on this. I wiped the machine and am working on a fresh install, but now for some reason I am getting the Stopping Web Services …Failed and then it gets stuck at Adding needed repository, during install. I WANT THIS TO WORK! lmao.
@TTellez The logs clearly state “Not configured to listen on any interfaces”. That’s your problem. You need to modify your
/etc/dhcp/dhcpd.conffile to use the correct interface. Additionally, you should make sure (as George already said) that the information in
/opt/fog/.fogsettingsis correct. Particularly these fields:
Here’s information on those: https://wiki.fogproject.org/wiki/index.php?title=.fogsettings
Also, feel free to post a copy of your
/etc/dhcp/dhcpd.conffile and the output of the command
ip addr showand I would be happy to point out any issues.
@TTellez You might want to review the accepted answer in this post: http://askubuntu.com/questions/140126/how-do-i-install-and-configure-a-dhcp-server
Also make sure your fog setup settings are correct for the next time you upgrade FOG
/opt/fog/.fogsettingsThere should be an interface setting there too. Make sure that matches the interface where you want the dhcp server setup on.
POST reinstall, I restarted the DHCP server and checked the status again, and got this notification.
I’ve decided to try a reinstall of the FOG server. I received a 404 error when i attempted WGET, but I was able to download the ZIP file from GitHUb.
Currently installing. Will update.
When I check the DHCP server status this is what I get.
@george1421 also tried this
sudo /etc/init.d/isc-dhcp-server restart
this one at least returned a positive result,
@george1421 Yes my FOG server has always been my DHCP server.
sudo /etc/init.d/dhcp3-server restart
and it didn’t help
@Wayne-Workman already done, and not working. Tried this on multiple laptops, none are connecting. Im about to give up.
Start the service. Enable it on boot so this doesn’t happen again.
So fog is your dhcp server? Can you confirm that the dhcp service is running on your FOG server?