Discussion Locked

Adding permanent Routes in SCO Unix

0 helpful
11 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I add Routes successfully in SCO Unix 5.0.4 by the following commands:

route add default < Gateway's IP>

But when i reboot unix, I have to redefine the route. How can I make this Route entry permenant.

11 replies

by skizz

I'm not a SCO person, but on other Unix platforms, you can add a route to either /etc/sysconfig/static-route or /etc/rc.net.
Check in the /etc/rc.d directory, if it exists, and look for the S10network (example) file. This will have a pointer to where the static-routes should be defined.

by gazz

I usually put the default route in :
/etc/tcp

vi the file and search for ifconfig.

There should be a line that reads:
/etc/route add 224.0.0.0 (yourip) 0 > /dev/null 2>&1

I add the line under it like:
/etc/route add default (defaultroute) > /dev/null 2>&1

There are lots of ways to add a route on bootup, this is only one. The other way might be to add the route in /etc/rc.d/8/userdef.

by cavedweller

I use the method described by GAZZ with a slight variation. Instead of putting addresses in the route command in /etc/tcp, I put descriptive names. Then I add entries to the hosts file to map the names and addresses. This helps prevent the tcp script from being accidentally whacked because you don't have to edit it again if the addresses change. If you use dns be sure to put "hostresorder local, bind" in /etc/resolv.conf so that tcp can find the addresses.

by nhennecke

if you have the file /etc/rc2.d/S99route change the listed default gateway to what you want to use. If you do not, create the file give it rwx perms for all. Insert the following into the file:
sleep 10; route add default < Gateway's IP>

Then reboot your system and your default Gateway should change.

by roger.gibson

A pernament route cane be added by either placing your route add command in the /etc/rc2./S85tcp file or the /etc/tcp file.

vi either file you choose. Then search on the word add and the search will take you to the correct area for adding your pernament route. You can use the existing route add's in the file as an example on how to do it.

Good luck.

This discussion is closed to new replies.