• Linux Mint 18.2 Cinnamon 64-bit (desktop mode, hands-on)

  • GNU/Linux Debian 9.2 Cinnamon 64-bit (headless mode, SSH)


How to release and renew IP address from the DHCP server (router) on these Linux systems?

  • If all you want to do is refresh your lease, you can use dhclient -v eth0 - replace eth0 with whatever your device is actually named – ivanivan Nov 17 '17 at 13:11

I have found there is the following program listening on the network on both of them:


Quoting the man page:

-r     Release the current lease and stop the running DHCP client as  previously  recorded
       in  the  PID  file.  When shutdown via this method dhclient-script will be executed
       with the specific reason for calling the script set.  The client  normally  doesn't
       release  the  current  lease  as this is not required by the DHCP protocol but some
       cable ISPs require their clients to notify the server if they wish  to  release  an
       assigned IP address.

So, the solution for all interfaces would be:

sudo dhclient -r
sudo dhclient

Or, conveniently, for a specific interface, say eth0:

sudo dhclient -r eth0
sudo dhclient eth0

Of course, when SSH'ing into a server, you need to run both commands oneliner or write a script as per this answer.

  • It's a bit more complicated, because usually dhclient gets called automatically by some other part of your system, e.g. systemd. So if you start meddling manually, the part calling dhclient may get confused. – dirkt Nov 17 '17 at 12:36
  • 1
    @dirkt Ok, feel free to add a better answer. – LinuxSecurityFreak Nov 17 '17 at 12:40

dhclient -v eth0 worked for me on RHEL 7. (actually enp0s3 -- insert your own network interface) dhclient -r eth0 did not.

  • Downvoting without a comment why is very rude. – MikeP May 16 '19 at 19:00
  • I am not one of the downvoters, but I suspect it was because it is potentially misleading. The -v argument to dhclient simply turns on verbosity, while the -r argument is to release a lease. dhclient -v and dhclient -r do not do the same thing, but your answer implies that they might. – Brian A. Henning Aug 28 '19 at 14:01

on ubuntu:


sudo dhclient -r


sudo dhclient -1
  • 1
    Why is dhclient -1 better than just plain dhclient?  Please  do  not respond in  comments; edit  your answer to  make it clearer and  more complete. – G-Man Says 'Reinstate Monica' Jul 6 '19 at 21:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.