Visit Jeremy's Blog.
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 10-29-2004, 09:42 AM   #1
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, 01:32 PM   #2
LQ Guru
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Try this.

# rcnetwork restart

good luck.
Old 10-29-2004, 03:56 PM   #3
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, 04:06 PM   #4
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
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.



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

All times are GMT -5. The time now is 02:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration