From: aas@beta.lanl.gov (Anthony A. Sako)
Subject: SUMMARY /etc/gateways
Organization: Los Alamos National Laboratory
Date: Fri, 21 Aug 1992 14:54:53 GMT

 Thanks to Christopher Kranz and Will McCown for their
responses. Our problem turned out to be operator error
with the "flat-forehead" solution (a one slapper.) The
SA who set up the gateways file put the wrong hostname
in for the subnet router - he put in the name associated
with the backbone address instead of the subnet address.


Here are the original responses. I got a couple of 
requests from people having similar problems, these
responses should help, and it should work !

  Thanks again ... and good luck.


PS for Will McCown, "Rhythm & Hues" <= GREAT NAME

********************************************************************
                    ORIGINAL QUESTION
>  Thanks in advance for any help you can give me on this problems,
>and apologies if it's a FAQ. I also don't read this group often
>and would beg you to send responses directly to me. I'll post a
>summary if there is enough response.
>
>  Here's my question - We just received a truckload of SGI's, and
>some of the System Administrators have a question about setting up
>the route tables. On other vendor system's at our site we use a
>file named /etc/gateways, which gets read at boot. There is no man
>page for the gateways file, but it is mentioned in the routed (1m)
>man page.
>
>  This file was set up as specified, but the results of the netstat
>command showed that the specified route was NOT added. Are we missing
>something ... or does the route daemon not look at the gateways
>file ?

********************************************************************
From: Will McCown <will%celia.uucp@usc.edu>
Subject: Re: /etc/gateways
To: aas@beta.LANL.GOV
Message-Id: <9208181536.AA04948@usc.edu>
Newsgroups: comp.sys.sgi
Organization: Rhythm & Hues, Inc., Hollywood



I don't think it should matter but the difference between what you are
doing and what we do (which seems to work) is that we name the other
network by name and have an entry in /etc/networks as follows:

thumper 6 % more /etc/gateways
net rfx gateway annex metric 1 passive

thumper 7 % more /etc/networks
# Network name database (see networks(4) for more information).
#
# This file is not consulted when NIS is running.
#
# Local networks
#
loopback        127             loopback-net
#
# Internet networks
#
arpanet         10              arpa
test            192.0.2
rfx             89.0.0

Referencing the network by name rather than by number should not matter
at all.  Leaving off the irrelvalent 0's might matter.

I found that I had to read the routed and related man pages completely
before I was able to figure this stuff out.  The information is there,
it just is a bit hard to find.  (And I tend to forget how it works as 
soon as I don't need it anymore.)



********************************************************************
From: clk@gfdl.gov



Tony,

I use /etc/gateways on all of our 4D/25s and 4D/35s.  I used it under Irix
3.X and am I still using it under Irix 4.0.1.

The first things to check are the obvious ones.  What does chkconfig show
you?  Is routed even on?  If it is, do you have a /etc/config/routed.options
file set up?  If so, what does it look like?  Do you have your netmask and
broadcast addresses set up correctly?  This will affect how (and if) your
routed talks to the other routeds on the network.

The only other thing I can figure is that you are using NIS (aka yp).  If
that is correct you need to supply mezuzart's IP number in your gateways
files because NIS is started after routed.  So if you are using NIS to look
up host names it won't find it.  You could also put mezuzart in /etc/hosts.

Other than that your gateways file looks okay.

I hope this helps.  Good luck.

        Christopher Kranz
        clk@gfdl.gov

-- 
===============================================================================
            Christopher L. Kranz                     GFDL
         Computer Systems Programmer                 P.O. Box 308
    Geophysical Fluid Dynamics Laboratory            Princeton, NJ  08542
-------------------------------------------------------------------------------
    E-mail: clk@gfdl.gov    Phone: (609) 452-6585    FAX: (609) 987-5063
===============================================================================