[CentOS] command for dhcp client

Fri Aug 3 18:58:45 UTC 2007
Robert Moskowitz <rgm at htt-consult.com>

Barry Brimer wrote:
>> Is there a command that says DONT use the ifcfg-eth0 setting(s)
>> that basically have a static address and start the network in DHCP.
>>
>> I dont want to disturb the static settings in ifcfg-eth0 or re-enter 
>> them
>> once my DHCP setting is done...
>>
>> I just want to temporarily run with DHCP (I'm on different network 
>> than the static setup).
>
> dhclient eth0
After:

ifconfig eth0 up

I do this regularly. My ethernet has one set config and then I might do 
as I need. My 'regular' connection is wireless.