Routing tables


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Routing tables
# 1  
Old 10-05-2006
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?
# 2  
Old 10-05-2006
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
# 3  
Old 10-06-2006
Put the command in /etc/rc.local file.
# 4  
Old 10-06-2006
This is not a good solution, try to find appropriate config file, e.g. http://www.cyberciti.biz/nixcraft/vi...-debian-or.php
# 5  
Old 10-06-2006
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. Smilie
# 6  
Old 10-06-2006
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 Smilie

Carl
# 7  
Old 10-06-2006
Yea, I'm using Solaris 9... I'll have to check out the rc file.. thanks guys.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Compare with 2 tables

I have 3 file inputs, file1 20160302|5485368299953|96|510101223440252|USA|5485368299953|6|800|2300|0 20160530|5481379883742|7|510101242850814|USA|5481379883742|5|540|2181|1500 20160513|5481279653404|24|510100412142433|INDIA|5481279653404|3|380|1900|0... (1 Reply)
Discussion started by: radius
1 Replies

2. UNIX for Dummies Questions & Answers

UNIX Routing Tables

I'm trying to learn the basic in's and out's of networking on my own through the use of a book. When it comes to routing tables I'm completely lost. I apologize for the alignment of the table below. The book vaguely explains routing tables, then has the following example: E15.3) Consider the... (8 Replies)
Discussion started by: ksmarine1980
8 Replies

3. Programming

C++ Dictionaries and tables

I was looking at this code from a programming book: #include <time.h> #include <iostream> #include <string> #include <deque> #include <map> #include <vector> #include <cstdlib> using namespace std; const int NPREF = 2; const char NONWORD = "\n"; // cannot appear as real line: we... (1 Reply)
Discussion started by: totoro125
1 Replies

4. Shell Programming and Scripting

Selecting tables

Hi, Can anyone help me that, How to see the table fields in Oracle database through shell script(ksh). I have tried with the following: sqlplus -s $user/$passwd@$sid << SQL >> session.log select * from Testtab.sql I'm not able to see anything.. Thanks (4 Replies)
Discussion started by: zxcjggu708
4 Replies

5. Shell Programming and Scripting

Display tables of 6

I'm new to linux and unix I would like to know how to display tables of 6 line after line Output should be 1*6 = 6 2*6 = 12 3*6 = 18 4*6 = 24 etc I can display line by line but not continuously Any suggestion (3 Replies)
Discussion started by: electricair
3 Replies

6. Shell Programming and Scripting

Tables and borders

when i do this: cat HITS i get the following displayed: sport.hits:87.114.172.31 Thu Sep 28 22:45:12 GMT 2006 how do i put this information into a bordered table? so it will output like this: ...........File /... (9 Replies)
Discussion started by: amatuer_lee_3
9 Replies

7. Shell Programming and Scripting

tables in scripts

Hi , I have two tables with same length t1 and t2, I want to cretae a new third table where i put the difference between the elements of t2 and t1, t3= t1 - t2 t3= t1 - t2 I am new to scripts, any help please? thanks (7 Replies)
Discussion started by: Celine19
7 Replies

8. Shell Programming and Scripting

Converting tables of row data into columns of tables

I am trying to transpose tables listed in the format into format. Any help would be greatly appreciated. Input: test_data_1 1 2 90% 4 3 91% 5 4 90% 6 5 90% 9 6 90% test_data_2 3 5 92% 5 4 92% 7 3 93% 9 2 92% 1 1 92% ... Output:... (7 Replies)
Discussion started by: justthisguy
7 Replies

9. UNIX for Dummies Questions & Answers

viewing tables

I have completely blanked out on this and I have done it a million times. I need to modify some tables in unix. What is the command for opening/viewing the tables? Thanks so much. :o (2 Replies)
Discussion started by: itldp
2 Replies
Login or Register to Ask a Question