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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SCO 505 OpenServer Default Gatway 1

Status
Not open for further replies.

DLCI

MIS
Sep 18, 1999
1
US
How is the default gateway set on the sever.<br>
<br>
I have the server runing on the local network and need to connect to the WAN via the local router.<br>
<br>

 
It's usually "route add default gw.ip.address 1". Not got an OpenServer box nearby, but if memory serves you need to add this into one of the startup scripts to add it at every reboot.
 
I think you also have to add the line /etc/route add default gw.ip 0 &gt; /dev/null 2&gt;&1 to /etc/tcp.
 
The 'route add default' statement should be added in the /etc/rc2.d directory. In SCO Open Server 3.0, the route add statement was included in /etc/tcp or /etc/rc.d/8/userdef. However, in SCO OpenServer 5.0, some of the startup scripts are executed in parallel which cause some timing issues. Therefore it is recommended that a new file named S99route be created in /etc/rc2.d which includes the route add statement. <br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# cd /etc/rc2.d<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# vi S99route<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;Setting default route&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/etc/route add default &lt;IP#&gt;&nbsp;&nbsp;(where &lt;IP#&gt; is the 'gateway' IP<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;address)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# chown root S99route<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# chgrp sys S99route<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# chmod 744 S99route<br><br><br>Note: <A HREF=" TARGET="_new">
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top