Short of rebooting, how can I release and renew my DHCP lease? It would be useful to know a GUI and terminal method.
I'd especially like to know if there is a means to do this without requiring admin privileges.
|
Short of rebooting, how can I release and renew my DHCP lease? It would be useful to know a GUI and terminal method. I'd especially like to know if there is a means to do this without requiring admin privileges. |
|||
|
In the network drop-down selector from the system tray you can press the network you are already connected to, this will make network-manager ask for a new lease from a DHCP server.
(This also works for wired networks, but i don't think it works for PPP connections (mobile broadband)) |
|||
|
|
|
To renew your dhcp lease at the terminal:
|
|||||
|
|
Maverick comes with I can't see a simple way of telling it to renew a lease, but running:
Gets you a connection list, and running:
Takes the connection down and back up. It may be possible to do something similar with the device instead. The connection list seems to include all connections, so this will probably work with PPTP and VPN connections too. |
|||
|
|
|
Having just upgraded to Maverick Meerkat Beta 1, something broke in my standard, vanilla eth0 configuration which I've not debugged yet. The quick and dirty workaround has been
which notices that there was a (possibly dead) client already and obtains a new lease:
This isn't a fix, just a hack. I'll follow-up when I figure what went bad. |
|||
|
|
|
This works on Ubuntu 12.04 LTS:
When I do that, Network Manager asks for a new DHCP lease. I prefer this to manually (re)starting |
|||
|
|
sudo /etc/init.d/networking restartworks for me on 11.10 server (this is in ec2: ami-6ba27502). Also:sudo service networking restartreturnsrestart: Unknown instance:. – Adam Monsen Feb 8 '12 at 22:27