General discussion

Locked

Adding permanent Routes in SCO Unix

By asimmaqbool ·
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.

This conversation is currently closed to new comments.

11 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Adding permanent Routes in SCO Unix

by Skizz In reply to Adding permanent Routes i ...

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.

Collapse -

Adding permanent Routes in SCO Unix

by asimmaqbool In reply to Adding permanent Routes i ...

The question was auto-closed by TechRepublic

Collapse -

Adding permanent Routes in SCO Unix

by Gazz In reply to Adding permanent Routes i ...

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.

Collapse -

Adding permanent Routes in SCO Unix

by asimmaqbool In reply to Adding permanent Routes i ...

The question was auto-closed by TechRepublic

Collapse -

Adding permanent Routes in SCO Unix

by cavedweller In reply to Adding permanent Routes i ...

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.

Collapse -

Adding permanent Routes in SCO Unix

by asimmaqbool In reply to Adding permanent Routes i ...

The question was auto-closed by TechRepublic

Collapse -

Adding permanent Routes in SCO Unix

by nhennecke In reply to Adding permanent Routes i ...

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.

Collapse -

Adding permanent Routes in SCO Unix

by asimmaqbool In reply to Adding permanent Routes i ...

The question was auto-closed by TechRepublic

Collapse -

Adding permanent Routes in SCO Unix

by roger.gibson In reply to Adding permanent Routes i ...

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.

Collapse -

Adding permanent Routes in SCO Unix

by asimmaqbool In reply to Adding permanent Routes i ...

The question was auto-closed by TechRepublic

Back to Linux Forum
11 total posts (Page 1 of 2)   01 | 02   Next

Related Discussions

Related Forums