Hi. I have a server running zeroshell linux giving out DHCP on two VLANs, 8 and 10.
The issue is that the server randomly stops giving out leases randomly, could be every couple of hours, could be half an hour.
I have to restart the dhcp service for leases to start being provided and at the moment have a script restarting the service every 2 hours.
I cannot see any errors in the DCHP log and the leases file only ever has a handful of leases active when DHCP stops.
Would appreciate any assistance as to what might be causing this.
The service itself is running when the issue occurs. It's not an issue with the service stopping.
Running a tcpdump, I can just see discovery packets being sent and no ack from the server. Starts working as soon as i stop/start DHCP.
Code:
dhcpd.conf
authoritative;
ddns-update-style interim;
ignore client-updates;
subnet 192.168.8.0 netmask 255.255.255.224 {
option routers 192.168.8.1;
option subnet-mask 255.255.255.224;
option domain-name-servers 192.168.8.1, 8.8.8.8, 8.8.4.4;
default-lease-time 28800;
max-lease-time 43200;
range 192.168.8.15 192.168.8.30;
}
subnet 10.1.0.0 netmask 255.255.255.0 {
option routers 10.1.0.1;
option subnet-mask 255.255.255.0;
option domain-name-servers 10.1.0.1, 8.8.8.8, 8.8.4.4;
default-lease-time 28800;
max-lease-time 43200;
range 10.1.0.50 10.1.0.150;