Ubuntu Linux Release an IP Address ( DHCP IP )

by on May 8, 2011 · 1 comment· LAST UPDATED May 8, 2012

in

How can I release an IP in Ubuntu Linux using command line options?

You need to simply type the following command. First, explicitly releases the current lease, and once the lease has been released, get the new IP:

 
sudo dhclient -r
sudo dhclient
 

Open a command-line terminal (select Applications > Accessories > Terminal), and then type:

 
sudo dhclient -r
sudo dhclient eth0
 

The above will release the eth0 interface IP and assigned it again. For a wireless interface called wlan0, try:

 
sudo dhclient -r
sudo dhclient wlan0
 
TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 1 comment… read it below or add one }

1 Ganesh August 9, 2012 at 5:48 am

Hi Gays,

Thanks for suggetion….

Reply

Leave a Comment

Tagged as: , , , , , , ,

Previous Faq:

Next Faq: