LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 04-25-2002, 04:17 PM   #1
glock19
Member
 
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?

Code:
route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.168.72
Code:
route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.168.73
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, 07:39 PM   #2
Norel
Member
 
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:
Yes
 
  


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 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 11:07 AM
how do I add a local folder as a repository? akudewan Ubuntu 2 09-05-2005 02:35 AM
Trying to add local printer in sarge jolphil Debian 11 03-11-2005 02:58 PM
NTPD - add to rc.local or write a script downinthemine Linux - Software 0 04-21-2004 10:52 AM
how do i add a local user that can use x window? hedich Linux - General 2 07-05-2003 08:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration