LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   IP Release and Renew? (https://www.linuxquestions.org/questions/linux-newbie-8/ip-release-and-renew-281065/)

keysorsoze 01-22-2005 10:30 PM

IP Release and Renew?
 
Hi!, Does anyone here know how to release and renew IP address under linux? I tried
#ifconfig eth0 release & ifconfig eth0 renew, I also tried "up" and "down" with no results. What am I doing wrong? (Distribution: Fedora Core 3)

jsutton 01-22-2005 10:51 PM

normally, I just do:

Code:

dhclient eth0
Replacing 'eth0' with the appropriate adapter alias. ;)

JimBass 01-22-2005 11:45 PM

I would go with
Code:

ifdown eth0
followed by
Code:

ifup eth0
as root. I see you said you tried up and down in your post, so if that doesn't do the trick, maybe you did eth0 and should have done eth1? Release and renew I believe are unique to Redmond's TCP/IP stack, so I would be very suprised if those worked under linux.

Peace,
JimBass

rsmith 01-23-2005 12:04 AM

You could also restart the network service:

As root run this command: /etc/init.d/network restart

keysorsoze 01-23-2005 10:52 AM

Thanks for the reply, I am now able to get a new ip via bash instead of going into the gui network thing.


All times are GMT -5. The time now is 04:50 PM.