LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Renew IP address in Dynamic IP (https://www.linuxquestions.org/questions/linux-newbie-8/renew-ip-address-in-dynamic-ip-634199/)

kumarkumar 04-09-2008 10:14 AM

Renew IP address in Dynamic IP
 
In Windows you enter the following commands in DOS to renew your IP in Dymanic IP:-
Code:

ipconfig /flushdns
ipconfig /release
ipconfig /renew

What are the equivalent commands in Linux?

Maligree 04-09-2008 10:50 AM

http://www.novell.com/coolsolutions/trench/16013.html
http://blogs.pingpoet.com/overflow/a.../04/15739.aspx

Google?

mrrangerman 04-09-2008 01:28 PM

As root,

Code:

ifconfig eth0 down
ifconfig eth0 up


Maligree 04-11-2008 01:13 AM

@mrrangerman: Since when does ifconfig eth0 up do DHCP requests?

I guess you'd need to:
Code:

dhclient eth0
-or-
dhcpcd eth0

after getting the interface back up.


All times are GMT -5. The time now is 01:45 AM.