Date: Mon, 10 Dec 2001 11:17:54 +0000 From: Brian Somers <brian@freebsd-services.com> To: Richard =?utf-8?B?xIxlcGFz?= <rch@richard.eu.org> Cc: Brian Somers <brian@freebsd-services.com>, Matthew Emmerton <matt@gsicomp.on.ca>, freebsd-questions@FreeBSD.ORG, brian@freebsd-services.com Subject: Re: userland ppp goes into loop after link goes down Message-ID: <200112101117.fBABHsE88543@hak.lan.Awfulhak.org> In-Reply-To: Message from Richard =?utf-8?B?xIxlcGFz?= <rch@richard.eu.org> of "Mon, 10 Dec 2001 12:33:07 %2B0200." <20011210123307.D99801@richard.eu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <brian@freebsd-services.com> <brian@Awfulhak.org> http://www.freebsd-services.com/ <brian@[uk.]FreeBSD.org> Don't _EVER_ lose your sense of humour ! <brian@[uk.]OpenBSD.org> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112101117.fBABHsE88543>