*BSD News Article 94073


Return to BSD News archive

From: "Keith W." <kwoody@pheebs.citytel.net>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: My routing table...how bad is it?
Date: Mon, 21 Apr 1997 10:26:29 -0700
Organization: Ontario Northland--ONLink
Lines: 73
Approved: Hopefully all the time!
Message-ID: <Pine.A32.3.91.970421101543.14617C-100000@pheebs.citytel.net>
References: <Pine.A32.3.91.970413223313.18259A-100000-100000@pheebs.citytel.net> <5iu6k2$26m@uriah.heep.sax.de>
NNTP-Posting-Host: pheebs.citytel.net
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
In-Reply-To: <5iu6k2$26m@uriah.heep.sax.de> 
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.lava.net!news.flex.com!www.nntp.primenet.com!nntp.primenet.com!gatech!news-out.communique.net!communique!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!howland.erols.net!torn!onlink3.onlink.net!pheebs.citytel.net!kwoody
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39456



On 14 Apr 1997, J Wunsch wrote:










> > Destination        Gateway            Flags     Refs     Use     Netif Expire
> > default            204.244.99.76      UGc         0        0      tun0
> > 204.244.99.76      204.244.99.124     UH          1        0      tun0
> 

> I think they are correct, but i don't really understand your problem.
> Maybe you should also post the output of ``ifconfig tun0'' here.  If
> it looks like:
> 
> tun0: flags=xxx<UP,RUNNING,POINTOPOINT,MULTICAST> mtu 1500
> 	inet 204.244.99.124 <-> 204.244.99.76 netmask <any value>
> 

I'll check and see. As Ive posted to Brian, I just reinstalled fbsd and 
will start again from scratch.
> 
> It must be, always.
> 
> 
> So if you sit in `your box', and look towards `Internet', what's the
> next interface outside?  204.244.99.76.  That's why this one must
> become your default gateway.  Your local address doesn't come into the
> game at all, it only serves two purposes: it will be put into the
> header of all packets that go out the PPP line, and it serves the
> `router' as a label to distinguish your end of the wire from the other
> machines that are also connected to it at the same time.

Thats clear, I jsut didnt think that the router I dial into has to become 
the default route, I thought since the .65 was the gateay it had to show 
up in my routeing table. Now that I know that things should be easier now.

> If you sit on machine 10.0.0.2 on your ether, and let's assume for a
> moment the 10.x.x.x network were routed from the Internet, then the
> picture would be a little different.  If you look towards the Internet
> from that perspective, the next IP address (next hop) you're seeing
> were 10.0.0.1, thus you need to add this one as the default gateway.
> Once the packets arrive at this interface, `your box' will notice that
> they aren't destined for itself, and will pass them on to
> 204.244.99.76 (since the default route is the only applicable route
> for the destination address).

But then `your box' would have to be setup as a gateway to properly route 
the packests then...would it not? 
 
> From the man page, but on FreeBSD, not on AIX. :)  (AIX's man page
> describes AIX's netstat program.)
> 

I know, just wanted to see if it would give any more info about the 
program. 

> Both routing tables are basically identical.  The only advantage a
> static address has is that you can make other systems halfways rely on
> this address belonging to your machine when they see an arriving
> packet.  The routing itself is identical.

Ok then, that basically answers what I needed to know. Ive archived your 
message for future reference. thanks much. I hope I can get this to work now.

Keith