How can I reload dhclient without restarting network?

Solution 1:

The -r flag explicitly releases the current lease, and once the lease has been released, the client exits. Open a terminal and type the command:

$ sudo dhclient -r

Now obtain fresh IP:

$ sudo dhclient 

Solution 2:

Typically I do this by running dhclient as a single command like so:

$ sudo -Es
$ dhclient -r; dhclient

You can use this trick if you've made changes to /etc/dhcp/dhclient.conf:

$ cat /etc/dhcp/dhclient.conf
timeout 300;
retry 60;
supersede domain-search "dom1.mydom.com", "dom2.mydom.com";
prepend domain-name-servers 192.168.7.185,192.168.7.186;

References

  • Linux Force DHCP Client (dhclient) to Renew IP Address