Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Default gateway problem (Need help!)

77 views
Skip to first unread message

Kim Örkenrud

unread,
Feb 16, 1998, 3:00:00 AM2/16/98
to

Hi
Problems with SCO Unix...
When I ping another computer on the local network it works.
When I ping a computer outside the local network I get an error.
Something like: no route:host unreachable.
I belive I haven't specifed a gateway correct.
Could this be the problem and if so, how do I specify a gateway correct.
Best regards Kim

Fabio Giannotti

unread,
Feb 16, 1998, 3:00:00 AM2/16/98
to Kim Örkenrud

/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.

Peter

unread,
Feb 18, 1998, 3:00:00 AM2/18/98
to

Hi,

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>...

Bob N.

unread,
Feb 28, 1998, 3:00:00 AM2/28/98
to

man route


In Article <887645085.496871@mn8> , Kim Örkenrud (kim.or...@mailbox.swipnet.se) said:
: Hi

:
:
:
:

Cliff Fiedler

unread,
Mar 2, 1998, 3:00:00 AM3/2/98
to

Kim,

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.

John Coy

unread,
Mar 3, 1998, 3:00:00 AM3/3/98
to

Perhaps a more useful reply is in order --

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?

Jean-Pierre Radley

unread,
Mar 3, 1998, 3:00:00 AM3/3/98
to

John Coy telecommunicated (on 03Mar):

| Perhaps a more useful reply is in order --
|
| 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

G. Wesley Robertson

unread,
Mar 4, 1998, 3:00:00 AM3/4/98
to Jean-Pierre Radley

Jean-Pierre Radley wrote:
>
> John Coy telecommunicated (on 03Mar):
> | Perhaps a more useful reply is in order --
> |
> | 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.

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

0 new messages