SlackwareThis Forum is for the discussion of Slackware Linux.
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.
If I need to adjust my network settings (rc.inet1.conf) on the fly, like if I need to be in the local network of a router I just bought (192.168.1.x), in order to change the subnet to the rest of my network (192.168.0.x), then I need to adjust the ip address of my slackware box.
Up till now I have rewritten the rc.inet.conf file and then restarted the computer. I am almost positive that restarting is unneccesary, but I have not been successful in finding any other method.
Maybe I am using the tool wrong, but I have tried using wicd to disconnect and then connect again once I change the rc.inet1.conf. I don't think it worked.
I think I have also tried issuing a rc.inet1 restart. But I don't think that this changed my ip address either. How do you change your ip address on the quick without restarting your box?
simply executing /etc/rc.d/rc.inet1 should restart the network and use the changes you made to rc.inet1.conf
so you definitely shouldn't have to reboot...
If you don't even want to mess with the text files (i.e., don't need change to be permanent), then you can just use ifconfig to assign an ip to an interface
IDK under what conditions an interface should be stopped before being started with a new configuration -- so it seems prudent to do it in all cases in case it matters.
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
The allowed arguments to rc.inet1 are start,stop,restart,up,down which act on all interfaces or INT_start, INT_stop, INT_restart, INT_up, INT_down where INT is the name of an interface to start which is the same as "up", stop - the same as "down" or restart.
rc.inet1 now has it's own man page so man rc.inet1 will give you the information.
The allowed arguments to rc.inet are start,stop,restart,up,down which act on all interfaces or INT_start, INT_stop, INT_restart, INT_up, INT_down where INT is the name of an interface to start which is the same as "up", stop - the same as "down" or restart.
That is correct; I was wrong about it not supporting the INT_restart argument.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.