/etc/route add default xxx.xxx.xxx.xxx
where xxx.xxx.xxx.xxx is the IP of your gateway.
If you want this to be done automatically on boot-up, add a file like
S99route to the /etc/rc2.d directory and put that command in it.
Good luck,
Fabio
--
fab...@venmar.com
The comments/views expressed here are my own, and not of my company.
You are a bit vague on how your network is setup.
Let's assume that their is a gateway (router) that know both networks.
Execute the following command:
route add <network adress | host adress> <gateway IP adress>
or if it's a default gateway
route add default <gateway IP adress>
Hope this help
Pieter van Dyk
SCO OS5 & UW ACE
Kim Örkenrud <kim.or...@mailbox.swipnet.se> wrote in article
<887645085.496871@mn8>...
In Article <887645085.496871@mn8> , Kim Örkenrud (kim.or...@mailbox.swipnet.se) said:
: Hi
:
:
:
:
route flush
route add default x.x.x.x
should clean out your route table and add your gateway. The flush might
take minutes if it has bad entries. Try pinging after you add the
default gateway.
Look in /etc/rc2.d/S85tcp - that is the boot-time TCP/IP startup file.
You can add a default routing entry there:
/etc/route add 0.0.0.0 123.123.123.123 > /dev/null 2>&1
where 123.123.123.123 should be replaced with the IP address of your
default router.
One thing I've noticed is that the S85tcp file gets recreated anytime
you make networking changes using the SCO administrative utilities.
When that happens, the default route is removed. Is there a way to
get the entry to stay there permanently?
Don't put the route command in that rc script. Put it in its own, say
S95route.
--
Jean-Pierre Radley <j...@jpr.com> XC/XT Custodian Sysop, CompuServe SCOForum
I have typically added the default route in the /etc/tcp script, which
sometimes gets trounced similary as described above. I started using
this recently. Add the following line to /etc/gateways:
net 0.0.0.0 gateway <gateway ip> metric 1 passive
This way, if you run tcp stop|start, the gateways file is re-read by
routed.
This leads into another question. Is it possible to add more than 1
such entry (for the same network) such that if the first route is not
available, the second route is used? I have wanted to test this but
haven't the spread to do so.
Wes