OS: v6.27
I'm having some issues with dhcp-client being stuck in "rebinding" state when the interface is moved to a new network.
After turning on logging for dhcp,debug I can see that the following happens:
- link down (disconnect from old network)
- link up (connect to new network)
- dhcp-client entering "renewing..." state, dhcp-client sending request to original DHCP server
- after 2 sec, dhcp-client sending request to original DHCP server
- after 2 sec, dhcp-client entering "rebinding..." state, dhcp-client sending request to 255.255.255.255
- after 2 sec, dhcp-client sending request to 255.255.255.255
All that is correct because no DHCPNAK is received, so the client still uses the existing lease until it expires. However, because it's a new network and new address range, I either have to reboot or explicitly release the dhcp-client to get the interface unstuck.
Is there some workaround for this? Using scripting or otherwise? I am looking for a way to either (i) release dhcp-client immediately on link-down, or (ii) release after x seconds and still in "rebinding" state on link-up.