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.
I had a quick question about the proper use of the '/etc/rc.d/rc.inet1' script and was hoping to get some of your expertise on the matter.
My DSL connection crashes frequently and when it does, I need to reset my network devices before I have access to the internet again. I have two network devices, eth0 and eth1. eth0 connects to the DSL router while eth1 controls the traffic form my local network. I used to bring these devices online at boot with commands in the rc.local but have recently moved over the configuration to rc.inet1 (via rc.inet1.conf) so I can easily ssh into my server and run 'sh /etc/rc.d/rc.inet1 restart' and be done with it.
The problem I run into is with the routing table being reset (can someone clue me in on the proper terminology?). In order to allow outgoing traffic from eth1 to the local network when I brought it up manually, I had to run the command:
Quote:
route add -net 192.168.0.0 netmask 255.255.255.0 dev eth1
When I restart the rc.inet1 script, this setting goes away.
Is there a "proper way" to configure the routing table to make sure this command sticks when the network devices are reset? If not, would it be unsafe to just add this command to the end of the rc.inet1 script?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.