Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-25-2002, 03:17 PM   #1
Registered: Aug 2001
Distribution: Debian Etch
Posts: 510

Rep: Reputation: 31
Want to add something to my rc.local

Would it be proper for me to put the following lines into my /etc/rc.d/rc.local file?

route add -net netmask gw
route add -net netmask gw
I have two subnets in my office network, each connected to the main office network via a linux PC with 2 NIC's with ip forwarding enabled. So, what I do is configure a static route to each of the two subnets. But, that static route dissapears after a reboot, so will putting it into the rc.local file be ok?
Old 04-25-2002, 06:39 PM   #2
Registered: Apr 2002
Location: Italy
Distribution: RockLinux
Posts: 35

Rep: Reputation: 15
Test your configuration after setting it up from shell if you haven't already do it (I think it's ok but give it a try).

If it works add it to rc.local so it will be executed at any boot.

Short anser:


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I add a local directory as an YaST repository. simjii SUSE / openSUSE 4 04-03-2006 10:07 AM
how do I add a local folder as a repository? akudewan Ubuntu 2 09-05-2005 01:35 AM
Trying to add local printer in sarge jolphil Debian 11 03-11-2005 01:58 PM
NTPD - add to rc.local or write a script downinthemine Linux - Software 0 04-21-2004 09:52 AM
how do i add a local user that can use x window? hedich Linux - General 2 07-05-2003 07:41 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:07 AM.

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