How to release and renew a DHCP IP address in Ubuntu 12.04 Precise Pangolin

Say you’ve got a Ubuntu 12.04 Precise Pangolin system with a DHCP address, and you want to release that address and obtain a new one (this is often useful in troubleshooting connectivity problems). 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

ADDITIONAL READING:

The Ubuntu Beginner’s Guide

The Ubuntu Desktop Beginner’s Guide.

This entry was posted in Ubuntu 12.04. Bookmark the permalink.

2 Responses to How to release and renew a DHCP IP address in Ubuntu 12.04 Precise Pangolin

  1. jbo5112 says:

    Aren’t the commands `[sudo] dhclient -r ` and `[sudo] dhclient ` (e.g. `sudo dhclient -r eth0; sudo dhclient eth0`)?

  2. jbo5112 says:

    Aren’t the commands `[sudo] dhclient -r *interface-name*` and `[sudo] dhclient *interface-name*` (e.g. `sudo dhclient -r eth0; sudo dhclient eth0`)?
    **stupid comment system not handling greater than and less than or letting me edit the post it mangled**