LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 01-22-2005, 10:30 PM   #1
keysorsoze
Member
 
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, 10:51 PM   #2
jsutton
Member
 
Registered: Nov 2003
Location: Greenville, SC, USA
Distribution: (K)ubuntu 5.04 / Fedora 4
Posts: 113

Rep: Reputation: 15
normally, I just do:

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

Rep: Reputation: 48
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
 
Old 01-23-2005, 12:04 AM   #4
rsmith
Member
 
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, 10:52 AM   #5
keysorsoze
Member
 
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.
 
  


Reply


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 09:09 AM
Release And Renew dna9 Linux - Networking 1 03-09-2005 04:24 PM
ip release/renew ddu_ Linux - Newbie 5 12-14-2004 10:35 PM
DHCP - Release/renew laoddien Linux - Networking 0 06-25-2004 05:09 AM
Release/renew an ip morfy50 Linux - Networking 1 09-19-2002 12:02 PM


All times are GMT -5. The time now is 10:08 PM.

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