From owner-freebsd-questions@FreeBSD.ORG Mon Apr 28 22:11:50 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9DE251065670 for ; Mon, 28 Apr 2008 22:11:50 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.freebsd.org (Postfix) with ESMTP id 174888FC1B for ; Mon, 28 Apr 2008 22:11:50 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from epia-2.farid-hajji.net (epia-2 [192.168.254.11]) by fw.farid-hajji.net (Postfix) with ESMTP id 1E11A34EDB; Tue, 29 Apr 2008 00:11:47 +0200 (CEST) Date: Tue, 29 Apr 2008 00:11:45 +0200 From: cpghost To: Ivan Toman Message-ID: <20080429001145.0f40ad25@epia-2.farid-hajji.net> In-Reply-To: <48137E8B.2040402@inet.hr> References: <48137E8B.2040402@inet.hr> Organization: Cordula's Web X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.9; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Problem with reconnecting ppp (ppp -ddial isp) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2008 22:11:50 -0000 On Sat, 26 Apr 2008 21:12:11 +0200 Ivan Toman wrote: > First problem get when ISP disconnect me after 24 hours due to IP > change. Link does not properly get reconnected. ppp tries to connect, > and appearenty is connected, but something is wrong because no > traffic is possible and after few seconds ppp goes down and > reconnects again. And again and again.... Strange above all is that > during reconnecting routing table always has default route, but ping > does not go. Next, I will put some information that I think is > relevant to problem, but it seems to me, not very useful in debugging > this. I don't know if it's exactly the same problem, but I've had a similar problem with userland ppp and even submitted logfiles of forced disconnects. I thought the problem was with ng_pppoe, but apparently, it is with ppp(8). Unfortunately, ppp's maintainer didn't reply or chime in, and the problem is obviously still lingering there, deep inside ppp or between ppp and ng_pppoe. :( The thread started here: http://lists.freebsd.org/pipermail/freebsd-stable/2007-December/038874.html You may not have hit the very same bug, but the circumstances are pretty much similar. Someone really ought to have a look at ppp. Fortunately, with the help from Alexander and Julian, I've switched to net/mpd5, and didn't encounter any problems with this 24h forced ADSL disconnect ever since (running RELENG_7 now). Just give it a try: you'll like it! I'm now using the following /usr/local/etc/mpd5/mpd.conf: --------------- /usr/local/etc/mpd5/mpd.conf ---------------------- startup: # configure users set user mpd XXXXXXXXXX # configure the console set console self 127.0.0.1 5005 set console user mpd set console open # configure the web server set web self 192.168.254.1 5006 set web user mpd set web open default: load pppoe_client pppoe_client: create bundle static B1 set iface route default set iface enable nat set ipcp ranges 0.0.0.0/0 0.0.0.0/0 set ipcp disable vjcomp create link static L1 pppoe set link action bundle B1 set auth authname "XXXXXXXXXXXXXXXXXXXXXXXXXXXX" set auth password "XXXXXXXXXXXXXX" set link max-redial 0 set link mtu 1460 set link mru 1460 set link keep-alive 10 60 set link disable acfcomp set link disable protocomp set pppoe iface sis0 set pppoe service "" set log +echo open ------------------- /usr/local/etc/mpd5/mpd.conf ----------------------- Good luck! > Ivan Toman -cpghost. -- Cordula's Web. http://www.cordula.ws/