I have a microcontroller based device with a bootloader and an application. The device has one Ethernet adapter. The bootloader uses IP/UDP to flash the application image. The application has a full featured TCP/IP stack.
Both components uses DHCP to get an IP address. The strange thing is that both get different results in the DHCP process. Both DHCP clients are configured to use a DHCPDISCOVER message with the same MAC address.
What should a DHCP server send in DHCPOFFER? Should it offer the same IP address for the same MAC address when the IP address is not assigned elsewhere? Edit: The last address assignment is 10 seconds ago.
The DHCP Server is running on a Linux host. How can I configure such a vehicle so that I can monitor and understand this behavior?
Edit: I don't have control over the DHCP server configuration. The administrator wants to keep full control.
Are there other DHCP settings that could be in the bootloader or in the application that could affect the DHCP result?