Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
05-24-2006, 02:58 PM
|
#1
|
Senior Member
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191
Rep:
|
proper use of rc.inet1
Hello fellow Slackers,
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?
thanks for your time!
...drkstr
Last edited by drkstr; 05-24-2006 at 03:01 PM.
|
|
|
05-24-2006, 03:01 PM
|
#2
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
Try instead of
Code:
/etc/rc.d/rc.inet1 restart
Try
Code:
/etc/rc.d/rc.inet1 eth0_restart
This will only reset your DSL
(Not sure about the route tables, tho. Give it a shot)
Last edited by cwwilson721; 05-24-2006 at 03:03 PM.
|
|
|
05-24-2006, 03:04 PM
|
#3
|
Senior Member
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191
Original Poster
Rep:
|
Thanks for the quick reply cwwilson721!
I'll give it a shot the next time my DSL goes down ...which probably won't be to long.
thanks again!
...drkstr
|
|
|
05-24-2006, 03:07 PM
|
#4
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
Do it anyway, and see if it resets your route tables.
|
|
|
05-24-2006, 03:30 PM
|
#5
|
Senior Member
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191
Original Poster
Rep:
|
Quote:
Do it anyway, and see if it resets your route tables.
|
yeah ...good call.
It worked like a charm, didn't even drop my ssh connection.
Thanks for the help!
...drkstr
|
|
|
05-24-2006, 03:33 PM
|
#6
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
Glad I could be of assistance
|
|
|
05-24-2006, 03:41 PM
|
#7
|
Senior Member
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191
Original Poster
Rep:
|
Hey, I just read your signature. I used your post to get DRI working on my desktop, it was a great help.
It was an honor and a pleasure getting help from you.
regards,
...drkstr
|
|
|
All times are GMT -5. The time now is 10:03 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|