From owner-freebsd-questions@FreeBSD.ORG Sat May 1 08:30:04 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEC7916A4CE for ; Sat, 1 May 2004 08:30:04 -0700 (PDT) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21A0643D41 for ; Sat, 1 May 2004 08:30:04 -0700 (PDT) (envelope-from cpghost@cordula.ws) Received: from fw.farid-hajji.net (localhost [127.0.0.1]) by fw.farid-hajji.net (Postfix) with ESMTP id 8991340811; Sat, 1 May 2004 17:29:25 +0200 (CEST) From: Cordula's Web To: root@pukruppa.de In-reply-to: <20040501165712.U851@pukruppa.net> (message from Peter Ulrich Kruppa on Sat, 1 May 2004 17:15:07 +0200 (CEST)) X-Mailer: Emacs-21.3.1/FreeBSD-4.10-BETA References: <20040501165712.U851@pukruppa.net> Message-Id: <20040501152925.8991340811@fw.farid-hajji.net> Date: Sat, 1 May 2004 17:29:25 +0200 (CEST) cc: freebsd-questions@freebsd.org Subject: Re: ppp instabilities? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: cpghost@cordula.ws List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 May 2004 15:30:04 -0000 > My system is > FreeBSD pukruppa.net 5.2-CURRENT FreeBSD 5.2-CURRENT > #0: Wed Apr 28 23:06:14 CEST 2004 . > > I am running userland ppp with -nat and -ddial options to connect > to my DSL/Internet Service Providers (T-Kom and kamp-dsl in > Germany, via PPPoE). > > During the last four or five weeks my connection went down very > often and didn't start again - which should be granted by -ddial. > My providers of course swear this isn't their fault and of course > my DSL bridge or my NIC might be defect some way. > Usually I can restart my connection by rebooting my machine. This typically happens when your ISP switches equipment (or simply reloads your peer router. For a strange reason, ppp doesn't notice that the PAD session is dead, and therefore doesn't try to reconnect. You have two options here: 1. Log into ppp (pppctl /var/run/internet), and at the PPP prompt, issue a close command. ppp will notice and will shutdown the connection. If you used -ddial, it will try to reestablish the connection by its own [*] 2. Fix the code in ppp (or ng_pppoe?) so that it doesn't depend only upon PADS keep-alives [**]. Notes: [*] Some routers need a lot of time to come back online. You may need anytime from 1 minute to 30 minutes or so, just tail -f /var/log/ppp.log in the meantime [**] Many ADSL ISPs peer with DSL providers. The DSL provider's DSLAM equipment may be still okay and send PADS confirmations when asked by ppp, but the ISPs router may not be ready. When the ISPs router comes back online, it will happily disregard those dead ADSL sessions. Argh... BTW, I'm not speculating here. I've confirmed thrice with my ISPs that they rebooted my peer router exactly when ppp behaved as you've just described. > My ppp configs should be okay: I am using them for more than a > year now without any problems. > > So here my two questions: > 1) Does anyone else see this behavior on -CURRENT? > 2) Are there any logs or tools I can use to analyze this > behaviour? > > > Thanks for all hints, > > Uli. > > +---------------------------+ > | Peter Ulrich Kruppa | > | Wuppertal | > | Germany | > +---------------------------+ Cheers, -cpghost. -- Cordula's Web. http://www.cordula.ws/