PDA

View Full Version : [ubuntu] ip release and renew



Matt26
November 11th, 2008, 03:58 PM
how can i do a release and renew of my IP address in ubuntu 8.10? without having to restart the computer if possible.

thanks.

dustman
November 11th, 2008, 04:09 PM
As I see it, if you want to renew your IP address, you have DHCP. Try typing
sudo dhclient in the console.

Cheers!

Radu

w4ett
November 11th, 2008, 04:11 PM
Linux renew ip command

The -r flag explicitly releases the current lease, and once the lease has been released, the client exits. For example, open terminal and type the command:

$ sudo dhclient -r
Now obtain fresh IP:

$ sudo dhclient

mapes12
November 11th, 2008, 04:14 PM
Try this:

http://www.cyberciti.biz/faq/howto-linux-renew-dhcp-client-ip-address/

dustman
November 11th, 2008, 04:14 PM
Linux renew ip command

The -r flag explicitly releases the current lease, and once the lease has been released, the client exits. For example, open terminal and type the command:

$ sudo dhclient -r
Now obtain fresh IP:

$ sudo dhclient

is the first command really necessary? My room mate shares his internet connection to me and all I have to do in order to connect to the internet after he restarts his computer is "sudo dhclient"...

Matt26
November 11th, 2008, 04:29 PM
thanks for the responses- i want to release my current IP address (which was obtained via DHCP) and use a static IP that i just assigned under the Network Configuration screen- how i do update my IP address this way?

w4ett
November 11th, 2008, 04:46 PM
http://ubuntuforums.org/showthread.php?t=278537

This thread might be of help.