LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How Do I Restart DHCP Client (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-restart-dhcp-client-94831/)

coolest 09-20-2003 10:07 AM

How Do I Restart DHCP Client
 
Hi Guys,

I Newbie in linux if i want to restart the DHCP client how do i do that?

Like release and renew in windows can i do that in linux?

MasterC 09-20-2003 12:06 PM

ifconfig eth0 down
dhcpcd eth0

If that is indeed your ethernet device. However, if you give us your distro, there's probably a nice tool to do it for you.

Cool

stikboy 09-20-2003 12:08 PM

The way I do it, which may be the long way :) as root, or sudo all commands:

ifconfig eth0 down
dhcpcd stop << if this doesn't work, kill -9 process id
rm /var/log/dhcpcd****.pid
dhcpcd eth0


there's probably an easier way, and I think
ifconfig eth0 down
ifconfig eth0 up
should work, but I've been having probs with my install lately :)


edit... Just saw MasterC's post, and the reason I kill dhcpcd, is that I get dhcpcd already running when trying a dhcpcd eth0 right away. Of course, this could just be me

coolest 09-20-2003 11:45 PM

Re: How Do I Restart DHCP Client
 
Thanks masterC I'll try this one...


Quote:

Originally posted by coolest
Hi Guys,

I Newbie in linux if i want to restart the DHCP client how do i do that?

Like release and renew in windows can i do that in linux?


coolest 09-20-2003 11:46 PM

Thanks Stikboy, I'll try this one also...


Quote:

Originally posted by MasterC
ifconfig eth0 down
dhcpcd eth0

If that is indeed your ethernet device. However, if you give us your distro, there's probably a nice tool to do it for you.

Cool



All times are GMT -5. The time now is 06:22 AM.