Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dhcp server is often stopped #70

Open
flashbackpa opened this issue Jul 8, 2020 · 1 comment
Open

dhcp server is often stopped #70

flashbackpa opened this issue Jul 8, 2020 · 1 comment

Comments

@flashbackpa
Copy link

It happens often that the dhcp server is off, as I can see from the tab:
Start / Stop / Restart
where it's written:
DHCP Server is offline!
(just happened whilst checking for the tab), but I can't find any clue in the logs, so I had to write a bash script to check via nmap if a dhcp server is present in the network otherwise restart via docker command...
How can I help troubleshooting this issue ?
Thank you.

@flashbackpa
Copy link
Author

While waiting for a solution, this is how I workarounded it, maybe somebody is interested..
(please note that 192.168.1.166 is my dhcp server, and vmbr0 is the network card configured with that ip, so please change it according to your lan)

#!/bin/bash
while [ 1 ]; do
if ! [[ nmap --script broadcast-dhcp-discover -e vmbr0 | grep "192.168.1.166" | wc -l -eq 1 ]]; then
docker restart glass-isc-dhcp;
fi;
sleep 15;
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant