What I'm trying to achieve is to get cold-start, zero-state DHCP lease which means forcing dhclient
through the full discovery and configuration process (DHCPDISCOVER–DHCPOFFER–DHCPREQUEST–DHCPACK as opposed to the shortcutted DHCPREQUEST–DHCPACK cycle which uses a remembered address). I need this to debug a network configuration problem.
I have tried:
- flushing current lease with
dhclient -r
, disconnecting the current Network Manager connection; - killing any leftover
dhclient
anddnsmasq
processes; - cleaning
/var/lib/dhcp/
directory, which supposedly contains the client lease database; sudo restart network-manager
.
But even after these steps I see in the logs DHCPDISCOVER immediately followed by DHCPREQUEST of somehow still remembered address.
Clearly, the OS is storing the address somehow else, and I've run out of ideas. Any help from the community?