From owner-freebsd-current Sat Aug 12 15:50:30 2000 Delivered-To: freebsd-current@freebsd.org Received: from Awfulhak.org (tun.AwfulHak.org [194.242.139.173]) by hub.freebsd.org (Postfix) with ESMTP id 7AED837BA94 for ; Sat, 12 Aug 2000 15:50:20 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.awfulhak.org [172.16.0.12]) by Awfulhak.org (8.9.3/8.9.3) with ESMTP id XAA12885; Sat, 12 Aug 2000 23:49:25 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id WAA00491; Sat, 12 Aug 2000 22:55:08 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200008122155.WAA00491@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: vallo@matti.ee Cc: Eric Anholt , freebsd-current@FreeBSD.org, brian@Awfulhak.org Subject: Re: ppp troubles In-Reply-To: Message from Vallo Kallaste of "Sat, 12 Aug 2000 11:18:09 +0200." <20000812111809.A10559@myhakas.matti.ee> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 12 Aug 2000 22:55:08 +0100 From: Brian Somers Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Fri, Aug 11, 2000 at 08:58:48PM -0700, Eric Anholt wrote: > > > I've been seeing these errors for about a month now. When PPP is > > first started, it outputs: > > calwell:/usr/src/bzflag>ppp -ddial -nat papchap > > Working in ddial mode > > Using interface: tun0 > > Warning: Add route failed: 0.0.0.0: errno: Network is unreachable > > > > It still dials and connects, then gets an IP, but I never get the > > default route. I have to manually ifconfig to find the ip and route > > add default it. > > > Can anyone help me? This is really annying, especially since I have > > a very nasty connection that keeps dropping and making me route > > delete, ifconfig -a ( & repeat), route add again. > > I'm getting same behaviour, workaround is to put the HISADDR line to > ppp.linkup file, so it tries to set up default route after link is up. > I'm running -current as of few days ago. The problem is that when ppp is *not* in -auto mode, it doesn't bother configuring the interface until it's actually agreed an IP number with the peer. The ``add'' line is actioned immediately, and fails. So, your config is fine for -auto mode, but it's better to have the ``add'' in ppp.linkup for any other mode. Things still work though because you're using ``HISADDR'' as this makes it a sticky route, and your eventual interface configuration causes a re-application of all sticky routes. > -- > > Vallo Kallaste > vallo@matti.ee -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message