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

Route Add on SCO 2

Status
Not open for further replies.

allen20

IS-IT--Management
Apr 26, 2000
2
US
Hi I am very new to unix - We have SCO Open Server 5 - I have recently setup a firewall and using ipsec cards linked a remote office in to our WAN I can add routes to my NT servers so that our remote offices can connect to them.&nbsp;&nbsp;When I try to add a route to the unix server I type in <i>route add remoteip gatewayip</i> this seems to work for a while then it drops the route how do I save this permantly.
 
Under Unixware, there's a file called <FONT FACE=monospace>/etc/inet/config</font>.&nbsp;&nbsp;It may be the same under OS5.&nbsp;&nbsp;The format is similar to /etc/inittab, and it contains various networking initialisation commands.&nbsp;&nbsp;Look line 4c (or any of the &quot;4&quot; lines).<br><br>You should see a line that contains <FONT FACE=monospace>/usr/sbin/route</font>.&nbsp;&nbsp;Copy this and change the, for example, <FONT FACE=monospace>4c</font> to be 4<i>x</i>, where <i>x</i> is the next available letter.<br><br>Then change it so it looks like the following:<br><FONT FACE=monospace><br>4e:/usr/sbin/route::y::add <i>remoteip gatewayip</i>:<br></font><br><br>where <i>remoteip</i> and <i>gatewayip</i> are your required IP addresses.<br><br>One final note - this example if from UW7.&nbsp;&nbsp;Previous versions of Unixware required there to be a hop count after the gatewayip address.&nbsp;&nbsp;Leaving the hop count in when you upgrade to UW7 applies the hop count as a netmask.&nbsp;&nbsp;(You don't want to know how long it took us to figure that out...&nbsp;&nbsp;SCO took a while to spot it as well...)<br><br>Anyway, my point is that you may need to add the hop count for this to work on OS5.<br><br>HTH.
 
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"> should solve your problem<br><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top