Technical article 107569

How do I add a default route statement so it's included at boot-up in OpenServer 5.0.X?

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5

Written · Last revised

Problem

I have manually run the 'route add default' command to add
a default route to the route table.  This route works
successfully, but I also want this route to be added to
the route table automatically whenever the system is rebooted.

Solution

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.

# cd /etc/rc2.d
# vi S99route
echo "Setting default route"
/etc/route add default <IP#>  (where <IP#> is the 'gateway' IP
                               address)
# chown root S99route
# chgrp sys S99route
# chmod 744 S99route

From the Xinuos technical article database, record 107569. Reproduced with permission. The original is at www.sco.com/ta/107569, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.