LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-24-2006, 01:58 PM   #1
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
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 02:01 PM.
 
Old 05-24-2006, 02:01 PM   #2
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
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 02:03 PM.
 
Old 05-24-2006, 02:04 PM   #3
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Original Poster
Rep: Reputation: 45
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
 
Old 05-24-2006, 02:07 PM   #4
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Do it anyway, and see if it resets your route tables.
 
Old 05-24-2006, 02:30 PM   #5
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Original Poster
Rep: Reputation: 45
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
 
Old 05-24-2006, 02:33 PM   #6
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Glad I could be of assistance
 
Old 05-24-2006, 02:41 PM   #7
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Original Poster
Rep: Reputation: 45
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
 
  


Reply


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
rc.inet1 not starting? pnellesen Slackware 10 11-27-2005 09:23 PM
/etc/rc.d/rc.inet1 ratmz Slackware 1 11-10-2005 12:38 PM
rc.inet1 and rc.inet1.conf edafe Slackware 0 02-16-2005 09:51 AM
rc.inet1 Query... Choppsta Slackware 4 08-11-2003 09:25 PM
rc.inet1 Half_Elf Linux - Networking 2 01-26-2002 11:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration