Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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)
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.