Hi,
It seems like the new static dhcp lease (configured in the LCUI under Network / DHCP/DNS I enter are ignored. In my current setup, I’ve got two static dhcp leases, those were added over 2 years ago, both works just fine. Today I tried adding a a third entry. The new entry is a RPI, but no matter what I do, the device keeps on getting a DHCP address from the scope rather than the static entry configured.
These are the 3 last entries from /etc/config/dhcp, the two first ones work just fine.
config host
option name ‘nova’
option mac ‘38:2c:4a:6e:15:a7’
option leasetime ‘24h’
option ip ‘192.168.1.2’
config host
option name ‘backup’
option mac ‘00:11:32:54:2e:27’
option ip ‘192.168.1.133’
option leasetime ‘24h’
config host
option name ‘temperature’
option mac ‘b8:27:eb:83:99:f9’
option ip ‘192.168.1.11’
option leasetime ‘12h’
I’ve tried changing leasing times, I’ve tried releasing ip’s, I even waited until the lease expired and then tried again. I’ve tried removing lease files, both on the RPI and on the Turris.
From /var/log/messages as the device connected today after waiting 12h for the lease to expire:
2018-12-17 20:44:15 info hostapd[]: wlan1: STA b8:27:eb:83:99:f9 IEEE 802.11: authenticated
2018-12-17 20:44:15 info hostapd[]: wlan1: STA b8:27:eb:83:99:f9 IEEE 802.11: associated (aid 1)
2018-12-17 20:44:15 info hostapd[]: wlan1: STA b8:27:eb:83:99:f9 RADIUS: starting accounting session 1CFDF3B1FB6F06BF
2018-12-17 20:44:15 info hostapd[]: wlan1: STA b8:27:eb:83:99:f9 WPA: pairwise key handshake completed (RSN)
2018-12-17 20:44:17 warning odhcpd[2040]: received DHCPV4_MSG_REQUEST from b8:27:eb:83:99:f9
2018-12-17 20:44:17 warning odhcpd[2040]: received DHCPV4_MSG_DISCOVER from b8:27:eb:83:99:f9
2018-12-17 20:44:17 warning odhcpd[2040]: sending DHCPV4_MSG_OFFER to b8:27:eb:83:99:f9 - 192.168.1.175
2018-12-17 20:44:17 warning odhcpd[2040]: received DHCPV4_MSG_REQUEST from b8:27:eb:83:99:f9
2018-12-17 20:44:17 warning odhcpd[2040]: sending DHCPV4_MSG_ACK to b8:27:eb:83:99:f9 - 192.168.1.175
Any ideas?