Ubuntu Linux Renew DHCP

in Categories last updated December 3, 2010

How do I renew a dhcp assigned IP address under Ubuntu Linux desktop or Laptop systems?

You need to use “Dynamic Host Configuration Protocol” client called dhclient to renew IP address under Ubuntu Linux. Open the terminal and type the following command to release current address:
$ sudo dhclient -r
You can also ask for new IP address (e.g., for wlan0 get new IP address), enter:
$ sudo dhclient wlan0
OR
$ sudo dhclient eth0
Another option, enter:
$ sudo dhclient -r && sudo dhclient

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Share this on (or read 2 comments/add one below):

2 comment

  1. At my university doing this reassigns me the same ip. And I have a stupid conflict with a damn printer and I cant change that damn ip !!!!

    Have a question? Post it on our forum!