LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   renewing ip address... (https://www.linuxquestions.org/questions/linux-networking-3/renewing-ip-address-58573/)

roofy 05-07-2003 09:54 AM

renewing ip address...
 
what the linux command line equivalent to ipconfig /renew in win2k

angelrod 05-07-2003 10:15 AM

Try this:

ifdown eth0
ifup eth0

roofy 05-07-2003 01:13 PM

ok thanks..but the thing is im going thru ssh...so once it goes down i cant go back in to bring it up

Hangdog42 05-07-2003 02:45 PM

You could always write a shell script. That would run the ifup even if ssh had been cut off.

busbarn 05-07-2003 03:03 PM

uh...i always thought it was
ifconfig eth0 down
ifconfig eth0 up

Hangdog42 05-07-2003 03:05 PM

Oops. Yeah, you're right.

roofy 05-07-2003 03:38 PM

i like the shell script idea :D

angelrod 05-07-2003 05:59 PM

Try searching, I found this in less than a minute.

http://www.linuxquestions.org/questi...light=ipconfig


All times are GMT -5. The time now is 02:30 PM.