The UNIX Forums
"Join the Network of UNIX System Users"


 
Kaustubh
Newbie
Rank: 1



UID 216
Digest Posts 0
Credits 0
Posts 32
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 6, 2007 09:06 AM  Profile | P.M. 
routing table



routing table



hi all...
i need to know, where is locate the routing table on sun solaris, how i can saved the configuration....

because when i restart the server, lost the configuration....
thank you...


Top
goscript
Newbie
Rank: 1



UID 162
Digest Posts 0
Credits 0
Posts 27
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 6, 2007 09:06 AM  Profile | P.M. 
netstat -rn to view the routing table

i create a script under /etc/rc.2/ with the appropriate route statements in it to add static routes.

cheers
Top
matty281k
Newbie
Rank: 1



UID 258
Digest Posts 0
Credits 0
Posts 30
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 6, 2007 09:06 AM  Profile | P.M. 
quote:
originally posted by zazzybob
netstat -rn to view the routing table

i create a script under /etc/rc.2/ with the appropriate route statements in it to add static routes.

cheers
zb



eyyy...thanks for response me....
but how i can create the script.....can you explain me?
Top
Bestmiler
Newbie
Rank: 1



UID 69
Digest Posts 0
Credits 0
Posts 15
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 6, 2007 09:06 AM  Profile | P.M. 
ok, all the route statements you typed that were lost when you rebooted.... add them to a script.

just fire up vi (or whatever) as root

vi /etc/rc2.d/s99_localroutes # or whatever you want to call it

you can start this earlier in the boot sequence if you want, but after networking has come up.

in this file, make sure the first line is
#! /sbin/sh

then add your route statements

save the file, make it executable. that's only one way of doing it.....

cheers
Top
 

 

All times are GMT, the time now is Jan 8, 2009 04:53 PM

Powered by Discuz! 5.0.0  © 2001-2006 UNIX Forums
Processed in 0.028089 second(s), 6 queries

Clear Cookies - Contact Us - UNIX Help - Archiver - WAP