I am having a challenge with the Mikrotik dhcp server and some devices. Occasionally I get this when a few devices renew the dhcp lease. I found this while testing a new device, so to shorten the test, I set the dhcp server lease time to 10 minutes.
Here is the request from my client for a renewal:
07:39:55 dhcp,debug,packet dhcp3 received request with id 1831 from 192.168.2.250
07:39:55 dhcp,debug,packet flags = broadcast
07:39:55 dhcp,debug,packet ciaddr = 192.168.2.250
07:39:55 dhcp,debug,packet yiaddr = 192.168.2.250
07:39:55 dhcp,debug,packet siaddr = 192.168.2.1
07:39:55 dhcp,debug,packet chaddr = 00:AA:BB:CC:DE:02
07:39:55 dhcp,debug,packet Msg-Type = request
07:39:55 dhcp,debug,packet Client-Id = 01-00-AA-BB-CC-DE-02
07:39:55 dhcp,debug,packet Host-Name = “WIZnetCCDE02”
07:39:55 dhcp,debug,packet Address-Request = 192.168.2.250
07:39:55 dhcp,debug,packet Server-Id = 192.168.2.1
07:39:55 dhcp,debug,packet Parameter-List =
Router,Subnet-Mask,Domain-Server,Domain-Name,Renewal-Time
Here is the response from the Mikrotik dhcp server issuing another 10 minutes on this lease:
07:39:55 dhcp,debug,packet dhcp3 sending ack with id 1831 to 255.255.255.255
07:39:55 dhcp,debug,packet flags = broadcast
07:39:55 dhcp,debug,packet ciaddr = 192.168.2.250
07:39:55 dhcp,debug,packet yiaddr = 192.168.2.250
07:39:55 dhcp,debug,packet siaddr = 192.168.2.1
07:39:55 dhcp,debug,packet chaddr = 00:AA:BB:CC:DE:02
07:39:55 dhcp,debug,packet Msg-Type = ack
07:39:55 dhcp,debug,packet Server-Id = 192.168.2.1
07:39:55 dhcp,debug,packet Address-Time = 600
07:39:55 dhcp,debug,packet Router = 192.168.2.1
07:39:55 dhcp,debug,packet Subnet-Mask = 255.255.255.0
07:39:55 dhcp,debug,packet Domain-Server = 68.105.28.16
Here is the entry in “/ip dhcp-server lease” immediately after this renewal:
1 D address=192.168.2.250 mac-address=00:AA:BB:CC:DE:02
client-id=“1:0:aa:bb:cc>> 2” server=dhcp3 status=bound
expires-after=4m35s last-seen=25s > active-address=192.168.2.250
active-mac-address=00:AA:BB:CC:DE:02
active-client-id=“1:0:aa:bb:cc>> 2” active-server=dhcp3
host-name=“WIZnetCCDE02”
It shows 5 minutes, not the 10 minutes that was sent in the renewal (Address-Time = 600). This causes the lease to expire just before the next renewal, and causes log entries like this every 10 minutes:
07:24:54 dhcp,info dhcp3 assigned 192.168.2.250 to 00:AA:BB:CC:DE:02
07:34:54 dhcp,info dhcp3 deassigned 192.168.2.250 from 00:AA:BB:CC:DE:02
07:34:55 dhcp,info dhcp3 assigned 192.168.2.250 to 00:AA:BB:CC:DE:02
The client device successfully renews a second or two after the lease expires, but will not renew successfully (edit: on the dhcp server end only, the client thinks all is ok) at half the lease time.
Anyone here see that as ok, and not a fail? I have access to the firmware and driver for this ethernet device, so if someone sees a problem with my device request, that can be modified.