Traditionally, we use dhclient to release and renew DHCP lease on Linux. It probably still work with modern Linux distros nowadays. However, most distros come with NetworkManager which provides nmcli command line interface to manage networking. Here’s how to renew DHCP lease using nmcli performing on my machine. Your output when running these commands could be different.

First, let’s list the connections managed by NetworkManager.

Let’s find out the current IP associated with enp0s25:

To renew IP for enp0s25, run these commands by supplying the connection’s name. In my case, it’s “Wired connection 1”:

Let’s verify the new IP address:

Well, if you still see the same IP address, it could just mean that your DHPC server keeps offering the same IP address for your machine.

Credit:

  1. http://askubuntu.com/questions/4014/how-do-i-renew-my-dhcp-lease