I have a recurring issue where DHCP stops working. I am using the latest trunk on a DIR 835.
The log shows that upon renewal, a NAK is sent:
Wed Jan 28 21:20:04 2015 daemon.warn odhcpd[1230]: received DHCPV4_MSG_REQUEST from 0:15:65:29:75:54
Wed Jan 28 21:20:04 2015 daemon.warn odhcpd[1230]: sending DHCPV4_MSG_NAK to ff:ff:ff:ff:ff:ff - 255.255.255.255
following that, all further DHCP requests go unanswered. If I simply restart odhcpd, it starts working again (/etc/init.d/odhcpd restart)
Wed Jan 28 21:27:26 2015 daemon.info dnsmasq[1994]: read /etc/hosts - 1 addresses
Wed Jan 28 21:27:26 2015 daemon.info dnsmasq[1994]: read /tmp/hosts/odhcpd - 0 addresses
Wed Jan 28 21:27:26 2015 daemon.info dnsmasq[1994]: read /tmp/hosts/dhcp - 1 addresses
Wed Jan 28 21:27:49 2015 daemon.warn odhcpd[3328]: received DHCPV4_MSG_DISCOVER from 0:15:65:29:75:54
Wed Jan 28 21:27:49 2015 daemon.warn odhcpd[3328]: sending DHCPV4_MSG_OFFER to 0:15:65:29:75:54 - 192.168.199.161
Wed Jan 28 21:27:49 2015 daemon.warn odhcpd[3328]: received DHCPV4_MSG_REQUEST from 0:15:65:29:75:54
Wed Jan 28 21:27:49 2015 daemon.warn odhcpd[3328]: sending DHCPV4_MSG_ACK to 0:15:65:29:75:54 - 192.168.199.161
I don't know if this is related to the problem I have as well where if I specify a static lease, ALL DHCP except the static lease doesn't work. myself and another user had noted this. here is the config of /etc/config/dhcp
config dnsmasq
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
option authoritative '1'
option dhcpleasemax '100'
option domainneeded '1'
config dhcp 'lan'
option interface 'lan'
option start '100'
option dhcpv6 'server'
option ra 'server'
option ra_management '1'
option limit '100'
option leasetime '10m'
option force '1'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option maindhcp '1'
I have tried different lease times, 1h, 1d, 2d 10m etc and the DHCP always eventually goes belly up. Any tips as to what I should look for to fix?
(Last edited by cconn on 6 Mar 2015, 00:40)