From owner-freebsd-questions Sat Apr 20 21:31:08 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id VAA22310 for questions-outgoing; Sat, 20 Apr 1996 21:31:08 -0700 (PDT) Received: from jbrann.dialup.access.net (jbrann.dialup.access.net [166.84.193.118]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id VAA22305 for ; Sat, 20 Apr 1996 21:31:04 -0700 (PDT) Received: (from jbrann@localhost) by jbrann.dialup.access.net (8.6.12/8.6.12) id AAA01093; Sun, 21 Apr 1996 00:33:02 -0400 Message-Id: <199604210433.AAA01093@jbrann.dialup.access.net> Subject: Re: PPP on demand. To: khetan@iafrica.com (Khetan Gajjar) Date: Sun, 21 Apr 1996 00:33:01 -0400 (EDT) Cc: questions@freebsd.org (freeq) In-Reply-To: from Khetan Gajjar at "Apr 20, 96 10:45:51 pm" From: John Brann Reply-To: John Brann Organisation: Not while I'm at home X-Mailer: ELM [version 2.4ME+ PL13 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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