dcload-ip icon indicating copy to clipboard operation
dcload-ip copied to clipboard

DHCP not getting an address when a static reservation

Open QuzarDC opened this issue 6 months ago • 1 comments

This is happening with dcload-ip 2.0.1 trying to get an IP from an OpenWRT router running dnsmasq 2.86-2. When I set a static reservation for my DC's BBA to 192.168.1.99, dcload-ip fails to respond with a request to the dhcp server. If I remove the static reservation, and allow a dynamic one then dcload-ip responds immediately.

I made some packet captures, but there is no notable distinction I could see between the DHCP Offer packets sent by the router in each case There are 10 bytes different in the 344 bytes of the packet: 4 for XIDs, 4 for checksums (which all are valid according to wireshark), then 2 for the difference in the last octet of the offered IP (99 vs 149).

I may be missing something in that analysis of the Offer packets, or perhaps the issue has more to do with some sort of timing problem. I have, though, let it run up to 50+ DHCP attempts so I'd presume it wouldn't be a simple timeout issue.

dcload-ip DHCP Packet Captures.zip

I did try to do some simple debugging in the dcload code, but I wasn't able to easily see how to add in error output.

QuzarDC avatar Dec 18 '23 15:12 QuzarDC