The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Tables and borders amatuer_lee_3 Shell Programming and Scripting 8 05-15-2008 01:57 PM
awk - list to tables Lobaria Shell Programming and Scripting 10 04-24-2008 05:07 AM
Converting tables of row data into columns of tables justthisguy Shell Programming and Scripting 7 07-16-2007 01:42 PM
viewing tables itldp UNIX for Dummies Questions & Answers 2 12-17-2003 05:19 AM
PHP: list into tables perleo Shell Programming and Scripting 2 10-01-2003 06:50 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-05-2006
Registered User
 

Join Date: Jun 2006
Location: Las Vegas, NV
Posts: 104
Routing tables

Hey guys,

I needed to add a route to my routing table and I got it to work but on reboot it gets removed. Anyone know what file I can add this route to so it stays on the machine after a reboot?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 10-05-2006
Registered User
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 382
Quote:
Originally Posted by kingdbag
Hey guys,

I needed to add a route to my routing table and I got it to work but on reboot it gets removed. Anyone know what file I can add this route to so it stays on the machine after a reboot?
Create a startup script that contains your command in /etc/init.d then create a symbolic link to the file in /etc/rc2.d.

It's best to create a separate file so if you apply a patch that modifies an existing script, you don't lose your custom mod.

Carl
Reply With Quote
  #3 (permalink)  
Old 10-05-2006
Registered User
 

Join Date: Oct 2006
Posts: 7
Put the command in /etc/rc.local file.
Reply With Quote
  #4 (permalink)  
Old 10-05-2006
Hitori's Avatar
Registered User
 

Join Date: Jun 2006
Posts: 356
This is not a good solution, try to find appropriate config file, e.g. http://www.cyberciti.biz/nixcraft/vi...-debian-or.php
Reply With Quote
  #5 (permalink)  
Old 10-06-2006
grial's Avatar
El UNIX es como un toro
 

Join Date: Jun 2006
Location: Madrid (Spain)
Posts: 531
Quote:
Originally Posted by Hitori
This is not a good solution, try to find appropriate config file, e.g. http://www.cyberciti.biz/nixcraft/vi...-debian-or.php
As far as I know, such files do not exist on, for instance, Solaris systems. So, in these cases, you have to write your own rc scripts as said above.
Reply With Quote
  #6 (permalink)  
Old 10-06-2006
Registered User
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 382
Yea, I'm a Solaris admin so I tend to immediately think in my terms when answering questions. Of course there are alternate methods to make the necessary changes

Carl
Reply With Quote
  #7 (permalink)  
Old 10-06-2006
Registered User
 

Join Date: Jun 2006
Location: Las Vegas, NV
Posts: 104
Yea, I'm using Solaris 9... I'll have to check out the rc file.. thanks guys.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 05:25 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0