Howto: release and renew ip in ubuntu (9.04)
Hey,
Yet again a issue in ubuntu that lets me search for hours only to find non working solutions.
So here i go again.. i will just post the solution that worked for me.
The issue was that i had an ip address in a different part of the same subnetwork. all in 192.168.1.*
Now on the ubuntu forums you can find a lot of questions to release and renew your ip. None of those methods worked for me.
This did:
sudo echo '' > /var/lib/dhcp3/dhclient.leases sudo echo '' > /var/lib/dhcp3/dhclient-eth0.lease sudo dhclient -r // or with eth0 sudo dhclient // or with eth0
What this is doing is cleaning the dhclient lease files and after that releasing your current ip followed by a new dhcp request to get a new ip.Big downside is that the ip doesn’t seem to be released on the actual dhcp server thus for the remaining lease time no other computers willbe able to get that ip.
This is how it worked for me and i take the downside for what it is.
This will probably help a few other ubuntu users out there with the same issue.
Mark
