Friday, September 02, 2005

route in Sun 10

Subject: SUMMARY: route in Sun 10

Thanks to all those who replied..

To make a permanant route one can use the follwing.
1. use file /etc/init.d/inetsvc OR make a script in /etc/rc2.d with the route
content like:

#!/sbin/sh
#S67static-route file
# static route table for
echo " Setting static routes "
route add 172.16.1.0 -netmask 255.255.255.0 10.7.0.240 > /dev/console
echo " Done with setting static routes "
##Done!

Some people also have suggested
/etc/default/inetinit to put the route, but not tested.

For second question, one should use
pkgchk -l -p /path/to/file

Or alternatively

grep FILENAME /var/sadm/install/contents

0 Comments:

Post a Comment

<< Home