Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Apr 1996 00:33:01 -0400 (EDT)
From:      John Brann <jbrann@panix.com>
To:        khetan@iafrica.com (Khetan Gajjar)
Cc:        questions@freebsd.org (freeq)
Subject:   Re: PPP on demand.
Message-ID:  <199604210433.AAA01093@jbrann.dialup.access.net>
In-Reply-To: <Pine.BSF.3.91.960420223941.220C-100000@localhost.iafrica.com> from Khetan Gajjar at "Apr 20, 96 10:45:51 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Khetan Gajjar wrote...
> On Sat, 20 Apr 1996, John Brann wrote:
> 
> > route_freebie="freebie localhost"
> 
> Would this be similar to a hosts that has 
> 127.0.0.1 localhost chain chain.iafrica.com localhost.iafrica.com ?

No, two different things.  '/etc/hosts' takes care of relating hostnames
to IP addresses, routing is about finding the way to an IP address.  Every
machine has an IP address of 127.0.0.1  The machine knows how to reach this 
address by default, and the '/etc/hosts' file (or named, see below) relates
one or more names to the address.  The route_freebie line from my 
'/etc/sysconfig' is associated with an earlier line you don't quote.  I
tell the machine that my Ethernet card (device ed0) has an IP address of
10.0.0.2 and '/etc/hosts' associates the name 'freebie' with that IP address.
The route_freebie line tells the machine that there is a direct connection 
between '127.0.0.1' and '10.0.0.2'.  That's what routing is about...

For a coherent explanation of IP addressing, routing, name services and
(horror of horrors) sub-netting I recommend 'TCP/IP Network Administration'
by Craig Hunt.  It's an O'Reilly book.

I've just gone back over this mail, and I have a bad feeling about the 
'hosts' line above.  You have a dial-up connection to an ISP, right?
according to nslookup, 'chain.iafrica.com' is IP address 196.7.74.174.  But
you are telling your machine that it's 127.0.0.1.  I suspect that packets
for 'localhost' are being routed to your ISP - _that would cause the 
dial-up_.  (It might also have an effect on the X-Windows problem you are
having, but I'm not promising anything.)

OK, try this...

change your /etc/hosts file to contain these lines:

127.0.0.1	localhost
196.7.74.174	chain chain.iafrica.com

and remove the existing 'localhost' line.  You no longer have a reference
for 'localhost.iafrica.com', but don't worry about it, you don't need it.

> 
> >  set debug chat
> 
> What does this do ?

Sets the amount of debugging info which is dropped into '/var/log/ppp.log'
by the ppp program.  See the manual page for info.  I set this level
so that I can see the chat script going back and forth when ppp logs in
to my ISP.  They occasionally suffer from router problems which mean that
dialups work, but PPP doesn't and it gives me good debugging info for them.

> 
> > By the way, are you running named?
> 
> No - should I be ?

No, well, at least not until we get this straightened out.  I set up a 
caching-only named yesterday on my system, to reduce name resolution traffic,
and partly because I'm bucking for my own domain, but that's another story.

If you were running named, it would be a prime candidate for causing the 
dial-outs.

> ---
> Khetan Gajjar
> Visit at http://www.iafrica.com/~khetan/
> Pipex-Internet Africa Operations
> help@iafrica.com or  0800-030-002
> 

John
-- 
Beavis and Butt-Head;  Vladimir and Estragon for the '90s.

finger jbrann@panix.com for pgp public key



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604210433.AAA01093>