View Full Version : [ubuntu] Ubuntu equivalent of "ipconfig /renew"?

January 28th, 2009, 01:30 AM
On Windows you can disable/renable the NIC in control panel/networking, and release/renew the IP address with ipconfig. How do you do these in Ubuntu?

January 28th, 2009, 01:35 AM
I don't know about the command-line equivalent, but you should be able to disable and re-enable your network via the NetworkManager GUI

January 28th, 2009, 01:36 AM
You can release the dhcp lease with:

$ sudo dhclient -r

Then renew it with:

$ sudo dhclient

or just do it all with

$ sudo /etc/init.d/networking restart