Wednesday, November 25, 2009

How to release and renew a DHCP IP address in Ubuntu Linux 9.04 Jaunty Jackalope

SkyHi @ Wednesday, November 25, 2009

Say you’ve got a Ubuntu system with a DHCP address, and you want to release that address and obtain a new one. Releasing a DHCP address in Ubuntu is quite simple. Go to a Terminal window and type this command:

sudo dhclient -r

(Note that you must use dhclient either as root or with the sudo command for it to work.)

This will release your current IP address. To obtain a new one, use the dhclient without any arguments:

sudo dhclient

Assuming that dhclient can reach a DHCP server, your system will receive a new IP address in short order.

-JM






Reference: http://www.jonathanmoeller.com/screed/?p=1049