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>
index | next in thread | previous in thread | raw e-mail
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 Stopped --> Closed
> Dec 8 21:44:42 richard ppp[87211]: tun0: CCP: deflink: State change Closed --> 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.190.39.170
> Dec 8 21:44:42 richard ppp[87211]: tun0: IPCP: deflink: State change Opened --> 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 packets out
> Dec 8 21:44:42 richard ppp[87211]: tun0: IPCP: total 0 bytes/sec, peak 0 bytes/sec on Sat Dec 8 21:44:42 2001
> Dec 8 21:44:42 richard ppp[87211]: tun0: IPCP: deflink: State change Starting --> 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_CLOSE (hook "tun0")
> Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: deflink: Device disconnected
> 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 -> hangup
> 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, peak 85 bytes/sec on Sat Dec 8 21:44:42 2001
> Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: deflink: hangup -> closed
> 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 months back.
> >> Brian had a patch (which fixed the problem) and it was fixed in -CURRENT;
> >> 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 sometimes link
> >> goes down probably because of some problems on remote server. The problem
> >> 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: Disconnected!
> >> > 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: Disconnected!
> >> > 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: Disconnected!
> >> > 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: Disconnected!
> >> > 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
[.....]
> --
> ☻ Ričardas Čepas ☺
> ~~
> ~
--
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
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112101117.fBABHsE88543>
