Sco Unix - Add a permanent route

Posted on 2008-06-19
Medium Priority
Last Modified: 2013-12-05
I using an old version SCO Unix and would like to create a route that will not disappear after a reboot.
Is there a 'permanent' flag I can use?
(i.e. -p)

Question by:edalzell
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 2
  • +1
LVL 40

Expert Comment

ID: 21826209
you need to add

route add

to one of the startup scripts in /etc/rc3.d

or run


and go to network setup
LVL 16

Accepted Solution

Hanno P.S. earned 500 total points
ID: 21829063
No, there is no such option for the route command available (as
with nearly all unix variants). You will have to put your command
into some rc-file.
Either take en existing one and add the line or (better) create a
new file
and (hard) link it to
with xy being some number to get it sorted into order with the
files that do already exist on your system.

Author Comment

ID: 21830480
Great, I will give that a shot.
Along the same lines... how can I check the gateway?
I suspect the gateway has not been set as the proper route is already configed on the gateway.

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

LVL 16

Expert Comment

by:Hanno P.S.
ID: 21831113
what do you mean by "check" the gateway

If you want to see the routes, use
   netstat -rn
LVL 16

Expert Comment

by:Hanno P.S.
ID: 21831119
if you mean the 'defaultrouter',  you should see the entry "default" in output from
   netstat -rn

Author Comment

ID: 21833154
Ok, so there's no 'default gateway' then... only routes?
After doing a 'netstat -rn', I see no 'default'... only the various routers to other subnets.

LVL 16

Expert Comment

by:Hanno P.S.
ID: 21838645
To set the default router, use
    route add default
Change the IP address to that of your router.
LVL 14

Expert Comment

ID: 21851255
Just a small thing:

Most SCO versions do not have an /etc/init.d directory and the default run level is 2 so the startup file would go into /etc/rc2.d

There is a file /etc/default/tcp that has a line for the gateway (sample attached)  If you put the gateway into this file you don't need any startup scripts.  You would use the startup script to add non-default routes however.

# cat /etc/default/tcp

#      @(#)tcp.dfl,v 6.4 1994/10/22 14:49:58 prem Exp - STREAMware TCP/IP  sourc
# Copyrighted as an unpublished work.
# (c) Copyright 1987-1994 Legent Corporation
# All rights reserved.
# DEFAULT TCP parameters
# These parameters are read by the TCP startup script as
# default values.
# The ROUTER_DAEMON keyword can be used to start your choice of router daemon.
# For example, to use routed, set ROUTER_DAEMON=/etc/routed. You can also
# pass argument to the daemon, using the ROUTER_DAEMON_ARGS keyword. Note
# that is you set ROUTER_DAEMON, it must point to an executable file, which
# is executed by /etc/tcp. Usually, if you set a default GATEWAY, you do not
# set a routing daemon.

Open in new window

LVL 14

Expert Comment

ID: 21851391
Look here for 5.0.6 (about halfway down the page):
LVL 14

Expert Comment

ID: 21851596

Openserver 6 does have /etc/init.d
Up to 5.0.7 it does not (5.0.7 is the latest that I have access to).

uname -a to see the level.
LVL 16

Expert Comment

by:Hanno P.S.
ID: 21853656
If you create a file in /etc/init.d you must link it to /etc/rc2.d or /etc/rc3.d
to get executed:
  ln  /etc/init.d/myscript  /etc/rc2.d/S45myscript
Change the number (75) and the script's name according to your setup.

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question