Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding route on startup 2

Status
Not open for further replies.

ejongh

Programmer
Nov 24, 2002
3
NL
Everytime my SCO Unix server is rebooted, I have to type the following "route add -net IP-adress IP-adress" in order to make the server available for incomming calls through a router.

Which startupfile can I use best to add this line, so the routetable will be updated directly at startup?
 
You can create a new file in /etc/rc3.d called Smy_ip_add,
then you need populated this file with ip address and gateways. look

/usr/sbin/route add 173.31.10.102 145.1.231.21 >> $LOGFILE 2>&1
/usr/sbin/route add 173.31.10.103 145.1.231.254 >>$LOGFILE 2>&1


Where /usr/sbin/route is path from route command
add + ip_address + gateway , and you can send output to a log file.
 
If you are on SCO 7.x.x, then you can add the entries to /etc/inet/config as opposed to a start up file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top