From owner-freebsd-questions Sat Sep 20 18:04:00 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA05643 for questions-outgoing; Sat, 20 Sep 1997 18:04:00 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA05634 for ; Sat, 20 Sep 1997 18:03:44 -0700 (PDT) Received: (from grog@localhost) by freebie.lemis.com (8.8.7/8.8.5) id KAA02605; Sun, 21 Sep 1997 10:33:24 +0930 (CST) Message-ID: <19970921103324.39855@lemis.com> Date: Sun, 21 Sep 1997 10:33:24 +0930 From: Greg Lehey To: Brian Somers Cc: Dr Freebsd , David Goddard , questions@FreeBSD.ORG Subject: Re: ppp -auto problems and boot-time error messages References: <19970920121537.23696@lemis.com> <199709201519.QAA16154@awfulhak.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199709201519.QAA16154@awfulhak.demon.co.uk>; from Brian Somers on Sat, Sep 20, 1997 at 04:19:42PM +0100 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sat, Sep 20, 1997 at 04:19:42PM +0100, Brian Somers wrote: >> On Sat, Sep 20, 1997 at 02:57:50AM +0100, Brian Somers wrote: >>>> Firstly, the odd messages are: >>>> >>>> writing to routing socket: File exists >>>> add net default: gateway 155.198.8.0: File exists >>>> >>>> This is just telling you the default route is set is all. >>>> If you set this gateway in your rc.conf you will get host unreachable at >>>> boot time. >>> >>> This sounds like you've got an "ifconfig_tun0=" line with something >>> on it. Read the handbook. You want an empty "ifconfig_tun0=" and an >>> empty default router. You want to disable routed and then create >>> /etc/start_if.tun0 and put your ppp -auto command in there. >> >> Not necessarily. If he's using -auto with dynamic IP addressing, he >> want to guess a destination IP address and make it his default route. >> When he initiates dialing, ppp will remove that route and replace it >> with the correct one. > > Yes.... and what's that got to do with boot up messages ? The above > message is when the "route add default" fails. This fails because, I > would think /etc/start_if.tun0 is already there and has already added > a default route. All of this is explained in the handbook. > >>> You want to read the handbook :-) >> >> We need to revise the handbook :-) > > That's a bit of a gratuitous statement. What exactly is wrong with > it ? It's been revised several times recently. It still rambles a bit. I've just spent 20 minutes reading it, and yes, I found all of the things that you say. I'd guess that at least half the people who read it would miss some of it. Until just a few days ago, I thought it was impossible to set up automatic dialling with dynamic IP addresses. Also, the importance of the ' delete ALL' entry in /etc/ppp/ppp.linkup is not made clear. /etc/ppp/ppp.linkup.sample contains the following: # Otherwide, simply add peer as default gateway. # MYADDR: add 0 0 HISADDR Wouldn't it be a good idea to add the ' delete ALL' to this file? Greg