Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-22-2005, 11:30 PM   #1
Registered: Apr 2004
Location: Queens, NY
Distribution: Red Hat, Solaris
Posts: 295

Rep: Reputation: 30
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)
Old 01-22-2005, 11:51 PM   #2
Registered: Nov 2003
Location: Greenville, SC, USA
Distribution: (K)ubuntu 5.04 / Fedora 4
Posts: 113

Rep: Reputation: 15
normally, I just do:

dhclient eth0
Replacing 'eth0' with the appropriate adapter alias.
Old 01-23-2005, 12:45 AM   #3
Senior Member
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
I would go with
ifdown eth0
followed by
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.

Old 01-23-2005, 01:04 AM   #4
Registered: Jan 2005
Location: Arizona
Distribution: SuSE 9.3 Pro / Slackware 10.1 / WBEL 3
Posts: 57

Rep: Reputation: 15
You could also restart the network service:

As root run this command: /etc/init.d/network restart
Old 01-23-2005, 11:52 AM   #5
Registered: Apr 2004
Location: Queens, NY
Distribution: Red Hat, Solaris
Posts: 295

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ipconfig /release/renew Red Squirrel Linux - Software 2 07-31-2005 10:09 AM
Release And Renew dna9 Linux - Networking 1 03-09-2005 05:24 PM
ip release/renew ddu_ Linux - Newbie 5 12-14-2004 11:35 PM
DHCP - Release/renew laoddien Linux - Networking 0 06-25-2004 06:09 AM
Release/renew an ip morfy50 Linux - Networking 1 09-19-2002 01:02 PM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration