I would like to understand if the DHCP client running in our embedded device is expected to send DHCP request unicasted to the server in the following events?
- Eth0 goes down and comes back online
- Physically Unplugging the ethernet cable.
As per a normal dhcp client running in the Windows 10 machine,It does send the unicast message in the event of unplug and disable/enable the interface.However the RFC 2131 doesn't explicitly states the behaviour? Or I missed some points in the RFC??
In case of a down/up it won't send unless it timesout. However, in case of a cable unplugged and then plugged again it will, since is alters the state of the physical connection which in turn triggers the request.
Don't know if you've noticed, but when you do an ifconfig ethx down and then up, it has the ip address already configured, it never releases the lease unless you do a network restart, then it will request.
home this helps