Linux - use dhcp again to get IP

Posted by Markus Orreilly on Super User See other posts from Super User or by Markus Orreilly
Published on 2010-05-15T09:31:51Z Indexed on 2010/05/15 10:14 UTC
Read the original article Hit count: 300

Filed under:
|

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

© Super User or respective owner

Linux - use dhcp again to get IP

Posted by Markus Orreilly on Stack Overflow See other posts from Stack Overflow or by Markus Orreilly
Published on 2010-05-15T09:31:51Z Indexed on 2010/05/15 9:34 UTC
Read the original article Hit count: 300

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about linux

Related posts about dhcp