LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-29-2004, 08:42 AM   #1
wildweaselmi
LQ Newbie
 
Registered: Oct 2004
Posts: 5

Rep: Reputation: 0
Question Linux (SuSE) version of ipconfig /renew?


This has been a question alot of us newbies have... "What is the SuSE version of doing a ipconfig /release and then /renew?"

Tried the ifconfig eth0 down then ifconfig eth0 up without success. The eth0 device keeps the original ip address.

Someone mentioned running service network restart, which I am sure would do it, but that command is not valid for SuSE (at least it didn't work when I tried it)

I would really appreciate how to restart the network devices without rebooting (which is what I have to do right now to release the ip address)

Thank you in advance for any suggestions.
 
Old 10-29-2004, 12:32 PM   #2
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
Try this.

# rcnetwork restart

good luck.
 
Old 10-29-2004, 02:56 PM   #3
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
keep in mind that if you are pulling an IP via dhcp, you would have to out wait the lease time for a renewal (stop/start or restart) to give you a new IP.

if you are pulling an IP directly from your ISP, then you would have to call them to find out what the DHCP lease time is. their level 1 techs will not even have a clue as to what that is so you will have to get bumped up to level 2 techs to get that kind of information. not to mention in most ISPs level 2 should also have the ability to force an IP roll on you.

if you are pulling an IP from your router, then just go in and adjust the dhcp lease time. default for most routers is something around 24-48hrs. set it to 1min, then you can bring down your eth0 wait a min or 2, then bring it back up and you should then be able to pull a new IP.

good luck.
 
Old 10-29-2004, 03:06 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,976
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
It depends on which dhcp-client SuSE is actually
using, but on my Slack-machine I can
dhcpcd -k
the client, which will first notify the server of its
intention to release the lease, and then destroy
its dhcp-cache.

I don't know the handles for dhclient or pump,
but I'm sure you can do similar things with those.


Cheers,
Tink
 
  


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
Renew IP in linux? iccanui Linux - Software 7 09-05-2005 10:31 AM
ipconfig /release/renew Red Squirrel Linux - Software 2 07-31-2005 09:09 AM
what is "ipconfig /renew" in linux ? fipeso Linux - Newbie 3 04-23-2005 03:26 AM
Linux for ipconfig spano Linux - Newbie 12 02-24-2005 11:40 AM
What's the linux equivalent of ipconfig /release & renew Thomas Anderson Linux - Newbie 5 02-21-2005 08:32 AM


All times are GMT -5. The time now is 11:33 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