Linux - use dhcp again to get IP
- by Markus Orreilly
I had statically set my ip in Linux using:
sudo ifconfig eth0 192.168.blah.blah
Now I want it to go back to using DHCP to assign the IP. How do I do that?
This is what I see when I run dhclient
Internet Systems Consortium DHCP Client V3.1.2
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/08:00:27:9b:43:09
Sending on LPF/eth0/08:00:27:9b:43:09
Sending on Socket/fallback
DHCPREQUEST of 192.168.56.104 on eth0 to 255.255.255.255 port 67