*BSD News Article 93527


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.netspace.net.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.ysu.edu!news.radio.cz!newsbastard.radio.cz!news.radio.cz!CESspool!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!rill.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.utell.co.uk!usenet
From: brian@shift.utell.net (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: My routing table...how bad is it?
Date: 14 Apr 1997 10:09:25 GMT
Organization: Awfulhak Ltd.
Lines: 57
Message-ID: <5isvol$5j7@ui-gate.utell.co.uk>
References: <Pine.A32.3.91.970413223313.18259A-100000-100000@pheebs.citytel.net>
Reply-To: brian@awfulhak.org, brian@utell.co.uk
NNTP-Posting-Host: shift.utell.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39048

In article <Pine.A32.3.91.970413223313.18259A-100000-100000@pheebs.citytel.net>,
	"Keith W." <kwoody@pheebs.citytel.net> writes:
> 
> 
> Routing tables
> 
> Internet:
> Destination        Gateway            Flags     Refs     Use     Netif Expire
> default            204.244.99.76      UGc         0        0      tun0
> 10/24              link#1             UC          0        0 
> 127.0.0.1          127.0.0.1          UH          0        0       lo0
> 204.244.99.76      204.244.99.124     UH          1        0      tun0
> 
> Here is the output from netstat -rn on my system. I am having a hard time 
> getting the route correct as the ppp wants to pull the ip of the router I 
> dial into as the gateway when its not. The gateway is 204.244.99.65. the 
> router is 204.244.99.76 (there are two more at 74 adn 75 also) and in this 
> example 204.244.99.124 was dynamically assigned.
> Are the last two ip's in the right place? should they not be reversed?
> 124 the destination and .76 the gateway?

The table is correct, although I'm surprised there's no 'S' in
the default flags (static).

> How do I make it so that the router (there are three of them I can dial 
> into) is not recognized as paart of the route?

Your router has to be 204.244.99.76.  That's the IP that you send
stuff to when you don't know any better (when there are no other
routing entries applicable).  If you ISP has routers "beyond" your
link, you don't care.  You have to send the packets do the other
side of the link in order for them to get anywhere.

> And where can I get more info ont he flags? U is UP G is Gateway and I 
> know H is for HOST, but Ive seen others c for one and S. I have a shell 
> on an AIX box that has some info but not enough to go on to "port" to my 
> situation.

man netstat

> What should a proper route table look like for a machine dialed out via 
> ppp with either a dynamcially assied ip or a staic one. (I can have both)
> 
> Its just the router problem thats got me stymied and frustrated.

There ain't nothin' wrong with the table above.  To test things,
start with "ping 204.244.99.76", then try to ping the IP of your
nameserver, then try to ping the name of your nameserver.

> Well off to read the faq and handbook again...
> Thanks for any info...
> Keith

-- 
Brian <brian@awfulhak.org> <brian@freebsd.org>
      <http://www.awfulhak.org>
Don't _EVER_ lose your sense of humour !