UNSOLVED Trouble with DHCP after rebooting server

  • Server
    • FOG Version: 1.4.2
    • OS: Ubuntu Gnome 16.10

    After playing around with fog for a while and figuring out multicast, I finally got it working on my laptop that’s running Ubuntu. The problem that I’m having though is that every time I shut down or put the system in standby, Fog refuses to work properly and has to be reinstalled. I’m still able to manage it from the web page, but it seems like DHCP and iPXE services are not starting up because I can’t get any computer on the network (mind you this network is completely isolated) to pick up an address from it.

    Any thoughts?

  • Moderator

    @notaspy If you force this system to fail, then boot the fog server up.

    Run the following commands.

    1. ps aux | grep dhcp this should show you if the dhcp server is running in memory.
    2. netstat -an| grep 67 this should show you that the dhcp server is listening on its data port. You should see something like this
    udp        0      0    *      

    Lets start with those. That will give us an idea if the dhcp-server is running and / or listening.

    Edit: It looks like ubuntu 16.04+ is based on systemd so these commands will be useful. Don’t use them until we can understand what’s going on here.

    sudo systemctl restart isc-dhcp-server
    sudo systemctl status isc-dhcp-server
    sudo systemctl enable isc-dhcp-server

  • Yes, the server is set to a static IP and Fog is handling DHCP. I’m having to reinstall it to get it working properly again.

  • Moderator

    Just for clarity, this FOG server has a static IP address on this private network?

    Do you have to reinstall vs just reboot it?

    Are you using the isc-dhcp server? Do you have it start to auto start?