From nobody@FreeBSD.org  Sun Oct  3 06:07:56 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5ADC616A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  3 Oct 2004 06:07:56 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 27AC043D1F
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  3 Oct 2004 06:07:56 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i9367tKv070536
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 3 Oct 2004 06:07:55 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i9367tSv070523;
	Sun, 3 Oct 2004 06:07:55 GMT
	(envelope-from nobody)
Message-Id: <200410030607.i9367tSv070523@www.freebsd.org>
Date: Sun, 3 Oct 2004 06:07:55 GMT
From: Sam Wun <sam.wun@authtec.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Problem with pppoe dialup in Beta 6.
X-Send-Pr-Version: www-2.3

>Number:         72273
>Category:       kern
>Synopsis:       Problem with pppoe dialup [5.3-BETA6]
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 03 06:10:13 GMT 2004
>Closed-Date:    Sat Jul 30 01:31:10 GMT 2005
>Last-Modified:  Sat Jul 30 01:31:10 GMT 2005
>Originator:     Sam Wun
>Release:        5.3 Beta 6
>Organization:
AuthTec Gateway Limited
>Environment:
FreeBSD at.authtec.com 5.3-BETA6 FreeBSD 5.3-BETA6 #0: Wed Sep 29 07:28:55 HKT 2004     
>Description:
Hi,

After upgarded the gateway to Beta 4 and 6, I experienced unreliable pppoe connection. The problem is when ppp connection idle for quite a while (may be few hours or less), there will be no Internet connection, but the public IP address still attached to tun0. Finally I need to manually restart ppp deamon, but as soon as started the deamon, the log file appeared something as below:

Oct 2 21:34:49 at ppp[60849]: tun0: Warning: ff02:9::/32: Change route failed: errno: Network is unreachable
Oct 2 21:34:52 at ppp[60849]: tun0: LCP: deflink: RecvProtocolRej(4) state = Opened
Oct 2 21:34:52 at ppp[60849]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected!
Oct 2 21:34:52 at ppp[60849]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Oct 2 21:34:55 at ppp[60849]: tun0: LCP: deflink: RecvProtocolRej(5) state = Opened
Oct 2 21:34:55 at ppp[60849]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected!
Oct 2 21:34:55 at ppp[60849]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Oct 2 21:34:58 at ppp[60849]: tun0: LCP: deflink: RecvProtocolRej(6) state = Opened
Oct 2 21:34:58 at ppp[60849]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected!
Oct 2 21:34:58 at ppp[60849]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Oct 2 21:35:01 at ppp[60849]: tun0: LCP: deflink: RecvProtocolRej(7) state = Opened
Oct 2 21:35:01 at ppp[60849]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected!
Oct 2 21:35:01 at ppp[60849]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Oct 2 21:36:08 at ppp[60849]: tun0: LCP: deflink: RecvEchoRequest(1) state = Opened
Oct 2 21:36:08 at ppp[60849]: tun0: LCP: deflink: SendEchoReply(1) state = Opened
Oct 2 21:37:29 at ppp[60849]: tun0: LCP: deflink: RecvEchoRequest(2) state = Opened
Oct 2 21:37:29 at ppp[60849]: tun0: LCP: deflink: SendEchoReply(2) state = Opened
...
then Internet connection is resumed.

The configuration of the ppp is as follow:
default:
set log Phase Chat LCP IPCP CCP tun command
# enable dns
set redial 5 1000
set reconnect 5 1000
set device PPPoE:fxp0
# set speed sync
#enable lqr
#set lqrperiod 5
#set cd 5
set timeout 0
add default HISADDR

and corresponding ppp options in rc.conf is:
ppp_enable="YES"
ppp_mode="ddial"
ppp_nat="NO"
ppp_profile="hgc"

I m wondering what is going on. If it is the problem in my configuration, can anyone please send me the configuration of ppp.conf?

Thanks
Sam      
>How-To-Repeat:
setup pppoe dialup as described in the Full Description, and make a pppoe  connection. 
Leave the connection idle for few hours or overnight - make sure the IP is changed and there is no packet going out for request connection...

sam      
>Fix:
      
>Release-Note:
>Audit-Trail:

From: Gleb Smirnoff <glebius@freebsd.org>
To: Sam Wun <sam.wun@authtec.net>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: misc/72273: Problem with pppoe dialup in Beta 6.
Date: Wed, 6 Oct 2004 10:18:20 +0400

 On Sun, Oct 03, 2004 at 06:07:55AM +0000, Sam Wun wrote:
 S> After upgarded the gateway to Beta 4 and 6, I experienced unreliable pppoe connection.
 
 AFAIK, nothing was commited to ppp(8) or ng_pppoe(4) between BETA4 and BETA6.
 Are you sure that this is not issue with your DSL provider?
 
 S> #enable lqr
 S> #set lqrperiod 5
 
 Why does LQR is commented? It is recommended to use LQR with PPPoE.
 
 -- 
 Totus tuus, Glebius.
 GLEBIUS-RIPN GLEB-RIPE
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Fri Oct 8 06:17:13 GMT 2004 
State-Changed-Why:  
Submitter was asked for feedback. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72273 
State-Changed-From-To: feedback->closed 
State-Changed-By: kris 
State-Changed-When: Sat Jul 30 01:31:03 GMT 2005 
State-Changed-Why:  
Feedback timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72273 
>Unformatted:
