[1723] in linux-net channel archive
Re: Problem starting gated
daemon@ATHENA.MIT.EDU (Shawn Ruttledge)
Sun Jan 28 21:19:44 1996
From: Shawn Ruttledge <ecloud@goodnet.com>
To: cjwoods@gigotech.net (Chris Woods)
Date: Sun, 28 Jan 1996 16:59:58 -0700 (MST)
Cc: linux-net@vger.rutgers.edu
In-Reply-To: <310AF5D1.590EE05D@gigotech.net> from "Chris Woods" at Jan 27, 96 11:04:33 pm
> This is not all that helpful wrt gated itself, but is there a reason why
> you need gated to route your LAN? Unless you have a situation that
> requires the use of RIP and/or BGP routing, there should be no need to
> use either gated or routed at all. Unless, of course, you want to help
> with the development of the code. ;-)
>
> Just add the network route for your LAN into your gateway machine
> (electron), and in every machine on your LAN, set the default route to
> point to that machine. No dynamic routing protocols necessary, from what
> I can tell...
Well I have yet to get that to work....
Here's the routing table on positron (the ethernet-only machine):
positron:~# route
Kernel routing table
Destination Gateway Genmask Flags MSS Window Use Iface
electron.cloud. * 255.255.255.255 UH 1436 0 414 eth0
localnet * 255.255.255.0 U 1436 0 0 eth0
loopback * 255.0.0.0 U 1936 0 12 lo
default electron.cloud. * UG 1436 0 45 eth0
positron:~#
and the routing table on electron (the one with ethernet and ppp; ppp is
at present connected, and I'm sitting at positron in an X session, telnetted
to electron, which is in turn telnetted to goodnet, my internet provider,
from whence I'm writing this message):
electron:~# route
Kernel routing table
Destination Gateway Genmask Flags MSS Window Use Iface
positron.cloud. * 255.255.255.255 UH 1436 0 368 eth0
phx-ts4.goodnet * 255.255.255.255 UH 1436 0 0 ppp0
localnet * 255.255.255.0 U 1436 0 0 eth0
loopback * 255.0.0.0 U 1936 0 12 lo
default phx-ts4.goodnet * UG 1436 0 112 ppp0
electron:~#
So it seems to be as you say:
1.)
> Just add the network route for your LAN into your gateway machine
Well, it has a line for positron.cloud.com
positron.cloud. * 255.255.255.255 UH 1436 0 368 eth0
but not a numeric address... could that be it?
(BTW what does a * under the "gateway" column mean?)
2.)
> (electron), and in every machine on your LAN, set the default route to
> point to that machine. No dynamic routing protocols necessary, from what
I definitely did that, according to the line in positron's routing table:
default electron.cloud. * UG 1436 0 45 eth0
and this line which evidently maps the name electron.cloud.com to its numeric
address (am I right?)
electron.cloud. * 255.255.255.255 UH 1436 0 414 eth0
oh but once again I don't see an actual numeric address there. hmmm. Is that
bad? On either machine I can telnet to the other, either by name or by full
name with domain.
My ip addresses are 192.251.225.60 and *.61 (positron and electron
respectively). I don't have any registered names or addresses; those ip
addresses were given to me by a friend who said they were addresses of a couple
of internal machines at a back-east internet provider where he used to work,
and he was sure they were internal addresses only and couldn't be accessed
from the internet, so that if I used them it wouldn't conflict with anybody.
The domain names I picked I would hope wouldn't show up outside my lan either.
To be proper, should I have picked electron.goodnet.com (my provider is
goodnet but they probably don't have a machine by that name)?
Well I hope you can tell me what I'm doing wrong because I've been trying to
solve this off-and-on for months now. And, I need to understand routing overall
because the next thing I want to do is install the AX.25 stuff on electron
(which has a TNC hooked up to it, and I just got the radio working last night.
Yay!) I've read that section in the net2 howto several times and it still
doesn't make sense. Mainly I don't see the mapping between what you say on
the command line to route and what happens to the routing table as printed
out by typing "route" by itself; and I don't understand all the columns in
the table, like what do the flags mean, what is a "genmask", why does the
"gateway" column have stars in it, etc. Do you think I need to run routed
to add the third interface (the tnc)?
Another thing which most docs (such as net2) don't seem to acknowledge is
that when you are connected to a typical ISP you don't have any control
over their PPP server; ie., I can't just add my second machine positron
to _their_ routing table. Goodnet thinks I only have one machine, with
an ethernet address assigned by them. They don't know about the other machine,
or about the second ethernet address that electron has. So how the heck
are datagrams intended for 192.251.225.60 ever going to get back through
goodnet, through ppp, through electron, out the ethernet port, to that
machine? From the perspective of some random machine on
the 'net (outside goodnet) that address doesn't exist. It would seem that
dynamic routing on their end might fix that; ie, goodnet sees a packet that
says it is "from" 192.251.225.60 and "to" god-knows-where, so it adds to its
routing table the fact that 192.251.225.60 can be reached via 206.43.126.139
(my dynamically assigned address from goodnet's perspective). Right? Well,
then your statement starts to make sense; if only I can get the packet from
192.251.225.60 that says it's destined for god-knows-where to go to
192.251.225.61 (electron), and for electron to send it to god-knows-where
via its default route (which was provided by pppd) then on the way to god-
knows-where it will pass through the goodnet machine that has dynamic routing,
and that machine will add the address 192.251.225.60 to its table. Is
that how dynamic routing works?
> Chris Woods cjwoods@gigotech.net
> Garbage In/Garbage Out Technologies, Inc.
> "A computer without Windows is like a fish without a bicycle."
Cute.
--
_______ KB7PWD @ KC7Y.AZ.US.NOAM ecloud@goodnet.com
(_ | |_) html: http://www.goodnet.com/~ecloud
__) | | \__________________________________________________________________
* Gravis Ultrasound * electronics * mad science * let freedom ring * ARS *