PDA

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



anon0
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?

xbalboa
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

blueridgedog
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