From owner-freebsd-questions Mon Dec 10 3:18: 7 2001 Delivered-To: freebsd-questions@freebsd.org Received: from Awfulhak.org (gw.Awfulhak.org [217.204.245.18]) by hub.freebsd.org (Postfix) with ESMTP id 89B3637B405 for ; Mon, 10 Dec 2001 03:17:57 -0800 (PST) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [fec0::1:12]) by Awfulhak.org (8.11.6/8.11.6) with ESMTP id fBABHtR44005; Mon, 10 Dec 2001 11:17:56 GMT (envelope-from brian@freebsd-services.com) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.6/8.11.6) with ESMTP id fBABHsE88543; Mon, 10 Dec 2001 11:17:54 GMT (envelope-from brian@freebsd-services.com) Message-Id: <200112101117.fBABHsE88543@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Richard =?utf-8?B?xIxlcGFz?= Cc: Brian Somers , Matthew Emmerton , freebsd-questions@FreeBSD.ORG, brian@freebsd-services.com Subject: Re: userland ppp goes into loop after link goes down In-Reply-To: Message from Richard =?utf-8?B?xIxlcGFz?= of "Mon, 10 Dec 2001 12:33:07 +0200." <20011210123307.D99801@richard.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Mon, 10 Dec 2001 11:17:54 +0000 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I just re-read your message. Can I confirm that you use -ddial, and = never use -dedicated for your PPPoE setup ? -dedicated is not at all = suitable for PPPoE as it will never re-open the link, and therefore = will never re-do the PPPoE discovery stuff. > Hi, > = > Hmm, I had it: > * $FreeBSD: src/usr.sbin/ppp/datalink.c,v 1.57.2.9 2001/10/26 10:00:39= brian Exp $ > -r-sr-xr-- 1 root network 315328 Dec 4 02:12 /usr/sbin/ppp* > And in log: > = > Dec 8 21:44:42 richard ppp[87211]: tun0: CCP: deflink: State change St= opped --> Closed = > Dec 8 21:44:42 richard ppp[87211]: tun0: CCP: deflink: State change Cl= osed --> Initial = > Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: deflink: open -> lcp = > Dec 8 21:44:42 richard ppp[87211]: tun0: IPCP: deflink: LayerDown: 213= =2E190.39.170 = > Dec 8 21:44:42 richard ppp[87211]: tun0: IPCP: deflink: State change O= pened --> Starting = > Dec 8 21:44:42 richard ppp[87211]: tun0: IPCP: deflink: LayerFinish. = > Dec 8 21:44:42 richard ppp[87211]: tun0: IPCP: Connect time: 300 secs:= 0 octets in, 0 octets out = > Dec 8 21:44:42 richard ppp[87211]: tun0: IPCP: : 0 packets in, 0 packe= ts out = > Dec 8 21:44:42 richard ppp[87211]: tun0: IPCP: total 0 bytes/sec, pea= k 0 bytes/sec on Sat Dec 8 21:44:42 2001 = > Dec 8 21:44:42 richard ppp[87211]: tun0: IPCP: deflink: State change S= tarting --> Initial = > Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: bundle: Terminate = > Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: Received NGM_PPPOE_CLO= SE (hook "tun0") = > Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: deflink: Device discon= nected = > Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: deflink: Disconnected!= = > Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: deflink: lcp -> logout= = > Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: deflink: Disconnected!= = > Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: deflink: logout -> han= gup = > Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: deflink: Connect time:= 303 secs: 215 octets in, 328 octets out = > Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: deflink: : 14 packets = in, 16 packets out = > Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: total 1 bytes/sec, pe= ak 85 bytes/sec on Sat Dec 8 21:44:42 2001 = > Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: deflink: hangup -> clo= sed = > Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: bundle: Dead = > Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: PPP Terminated (normal= ). = > = > I'm using now shell loop around ppp -foreground as a workaround. > = > On Mon Dec 10 10:17:12 2001 +0000 Brian Somers wrote: > = > >Hi, > > > >This should have been fixed in -stable with usr.sbin/ppp/datalink.c = > >revision 1.57.2.9 which was MFC'd on October 26. > > > > > >> Yes, I believe this is similar to a problem I was seeing a few month= s back. > >> Brian had a patch (which fixed the problem) and it was fixed in -CUR= RENT; > >> I'm not sure if it's been MFC'd yet and/or when it will make it to > >> a -RELEASE. > >> = > >> Brian, can you confirm/deny? > >> = > >> -- > >> Matt Emmerton > >> = > >> > Hi, > >> > > >> > I'm using 'ppp' with pppoe in dedicated or ddial mode and sometime= s link > >> goes down probably because of some problems on remote server. The p= roblem > >> is that 'ppp' after that goes into dead loop and you need to kill it= and > >> restart manually. Is it a known problem with 'ppp'? > >> > > >> > Dec 8 09:00:01 richard ppp[124]: tun0: Phase: deflink: write (1):= Socket > >> is not connected > >> > Dec 8 09:00:01 richard ppp[124]: tun0: Phase: deflink: Disconnect= ed! > >> > Dec 8 09:00:01 richard ppp[124]: tun0: Phase: deflink: write (1):= Socket > >> is not connected > >> > Dec 8 09:00:01 richard ppp[124]: tun0: Phase: deflink: Disconnect= ed! > >> > Dec 8 09:00:02 richard ppp[124]: tun0: Phase: deflink: write (1):= Socket > >> is not connected > >> > Dec 8 09:00:02 richard ppp[124]: tun0: Phase: deflink: Disconnect= ed! > >> > Dec 8 09:00:02 richard ppp[124]: tun0: Phase: deflink: write (1):= Socket > >> is not connected > >> > Dec 8 09:00:02 richard ppp[124]: tun0: Phase: deflink: Disconnect= ed! > >> > Dec 8 09:00:02 richard ppp[124]: tun0: Phase: deflink: write (1):= Socket > >> is not connected > >> > > >> > dsl: > >> > set timeout 0 > >> > #set log All > >> > set device PPPoE:ed0 > >> > set dial > >> > set authname ****** > >> > set authkey ****** > >> > set ifaddr 213.190.39.245/16 0 > >> > set lqr > >> > set server /var/run/internet "" 0177 [.....] > -- = > =E2=98=BB Ri=C4=8Dardas =C4=8Cepas =E2=98=BA > ~~ > ~ -- = Brian http://www.freebsd-services.com/ Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message