From owner-freebsd-questions@FreeBSD.ORG Tue Sep 25 01:18:57 2007 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 49E9116A419 for ; Tue, 25 Sep 2007 01:18:56 +0000 (UTC) (envelope-from davidn04@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.224]) by mx1.freebsd.org (Postfix) with ESMTP id B202313C455 for ; Tue, 25 Sep 2007 01:18:55 +0000 (UTC) (envelope-from davidn04@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so1124132wxd for ; Mon, 24 Sep 2007 18:18:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=K3iTmxnj1EOTSEvZXDm70bQCPVkj3V/YyoZFTFaQQRU=; b=IgTI9JN4yXTEeGoU2QZGlti6J5RaIek8LMkhSlRIZsDLyixnYfzNMypQR+oryL9a6meks3GUvICT5gbcd9dlpe6CcCqW7zq61aYzTolwhfagHDaPepAKvUizQnKoJQlScChtuivAhQQsE/av+LVYoLKTdb6Aex9upAXIrTc8WjA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oqX8GeWYrkNYiFUcbfvmCdEhtHgkopFn/7RCCSLa8hPN+hrchfZZ3W/HthdzJsT1CtOcTvkxHOjtHDZ7cBCHb67Eh4weOygfaFrMw24R9IzRLfzcRP9ubog+J2Swm26q661SKs6NOntGB9jvb6/XqUQpONZMAy2HPzKW8IDQoeA= Received: by 10.90.29.18 with SMTP id c18mr5761118agc.1190681426036; Mon, 24 Sep 2007 17:50:26 -0700 (PDT) Received: by 10.90.89.13 with HTTP; Mon, 24 Sep 2007 17:50:25 -0700 (PDT) Message-ID: <4d7dd86f0709241750i1b95d057h627d44082e9955b2@mail.gmail.com> Date: Tue, 25 Sep 2007 10:50:25 +1000 From: "David N" To: "Alan Tamm" In-Reply-To: <9af101940709241125l55a7e27axb5b01945db2d5072@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9af101940709241125l55a7e27axb5b01945db2d5072@mail.gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Mpd (3.x) & mpd4 config and differeces in reconnect/dial behaviour ? 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: Tue, 25 Sep 2007 01:18:57 -0000 On 25/09/2007, Alan Tamm wrote: > Hi everyone! > > Since upgrade from 3.x to 4.x I have to manually (re) open the bundle PPPoE > but I can't afford this system to be offline/needing manual intervention > from now on. When the connection times out mpd4 just won't reconnect.. > > > This (mpd3.x) setup works flawlessly (without reconnection problems): > > #mpd.conf > pppoe: > new -i ng0 pppoe PPPoE > set iface addrs 192.168.0.1 192.168.0.2 > set iface route default > set iface disable on-demand > set iface idle 0 > set bundle disable multilink > set bundle authname "secret" > set link no acfcomp protocomp > set link disable pap chap > set link accept chap > set link mtu 1492 > set link keep-alive 10 60 > set ipcp yes vjcomp > set ipcp ranges 0.0.0.0/0 0.0.0.0/0 > open iface > > #mpd.links > PPPoE: > set link type pppoe > set pppoe iface rl0 > set pppoe service "" > set pppoe disable incoming > set pppoe enable originate > > > ## mpd4 --version > ## Version 4.3 > # (no reconnect) > > #mpd.conf > > PPPoE: > # new PPPoE PPPoE > new -i ng0 PPPoE PPPoE > set iface route default > set iface disable on-demand > set iface idle 0 > set ipcp yes vjcomp > set ipcp ranges 0.0.0.0/0 0.0.0.0/0 > set bundle disable multilink > ## set bundle disable noretry > set auth authname "secret" > set link no acfcomp protocomp > set link disable pap chap chap-msv1 chap-msv2 eap > set link accept chap-md5 chap > set link keep-alive 5 30 > set link max-redial 0 > open > > #mpd.links > PPPoE: > set phys type pppoe > set pppoe iface rl0 > # set pppoe service "whatever" > set pppoe disable incoming > set pppoe enable originate > > > #log output: > Sep 24 20:43:28 secret mpd: [PPPoE] LCP: no reply to 1 echo request(s) > Sep 24 20:43:33 secret mpd: [PPPoE] LCP: no reply to 2 echo request(s) > Sep 24 20:43:38 secret mpd: [PPPoE] LCP: no reply to 3 echo request(s) > Sep 24 20:43:43 secret mpd: [PPPoE] LCP: no reply to 4 echo request(s) > Sep 24 20:43:48 secret mpd: [PPPoE] LCP: no reply to 5 echo request(s) > Sep 24 20:43:48 secret mpd: [PPPoE] LCP: peer not responding to echo > requests > Sep 24 20:43:48 secret mpd: [PPPoE] LCP: state change Opened --> Stopping > Sep 24 20:43:48 secret mpd: [PPPoE] AUTH: Accounting data for user : 70 > seconds, 666055 octets in, 83043 octets out > Sep 24 20:43:48 secret mpd: [PPPoE] Bundle up: 0 links, total bandwidth 9600 > bps > Sep 24 20:43:48 secret mpd: [PPPoE] IPCP: Close event > Sep 24 20:43:48 secret mpd: [PPPoE] IPCP: state change Opened --> Closing > Sep 24 20:43:48 secret mpd: [PPPoE] IPCP: SendTerminateReq #4 > Sep 24 20:43:48 secret mpd: [PPPoE] IPCP: LayerDown > Sep 24 20:43:49 secret mpd: [PPPoE] IFACE: Down event > Sep 24 20:43:49 secret mpd: [PPPoE] IPCP: Down event > Sep 24 20:43:49 secret mpd: [PPPoE] IPCP: LayerFinish > Sep 24 20:43:49 secret mpd: [PPPoE] No NCPs left. Closing links... > Sep 24 20:43:49 secret mpd: [PPPoE] closing link "PPPoE"... > Sep 24 20:43:49 secret mpd: [PPPoE] IPCP: state change Closing --> Initial > Sep 24 20:43:49 secret mpd: [PPPoE] AUTH: Cleanup > Sep 24 20:43:49 secret mpd: [PPPoE] LCP: SendTerminateReq #2 > Sep 24 20:43:49 secret mpd: [PPPoE] LCP: LayerDown > Sep 24 20:43:49 secret mpd: [PPPoE] link: CLOSE event > Sep 24 20:43:49 secret mpd: [PPPoE] LCP: Close event > Sep 24 20:43:49 secret mpd: [PPPoE] LCP: state change Stopping --> Closing > Sep 24 20:43:51 secret mpd: [PPPoE] LCP: SendTerminateReq #3 > Sep 24 20:43:53 secret mpd: [PPPoE] LCP: state change Closing --> Closed > Sep 24 20:43:53 secret mpd: [PPPoE] LCP: LayerFinish > Sep 24 20:43:53 secret mpd: [PPPoE] link: DOWN event > Sep 24 20:43:53 secret mpd: [PPPoE] LCP: Down event > Sep 24 20:43:53 secret mpd: [PPPoE] LCP: state change Closed --> Initial > > Thats it (the problem), after timeout no retry attempt is made ! > > # quick fix: > Manual open command for bundle PPPoE > > # and log output after open: > > Sep 24 20:51:45 secret mpd: [PPPoE] link: OPEN event > Sep 24 20:51:45 secret mpd: [PPPoE] LCP: Open event > Sep 24 20:51:45 secret mpd: [PPPoE] LCP: state change Initial --> Starting > Sep 24 20:51:45 secret mpd: [PPPoE] LCP: LayerStart > Sep 24 20:51:45 secret mpd: [PPPoE] PPPoE: Connecting to '*' > Sep 24 20:51:45 secret mpd: PPPoE: rec'd ACNAME "secret" > Sep 24 20:51:45 secret mpd: [PPPoE] PPPoE: connection successful > Sep 24 20:51:45 secret mpd: [PPPoE] link: UP event > Sep 24 20:51:45 secret mpd: [PPPoE] link: origination is local > Sep 24 20:51:45 secret mpd: [PPPoE] LCP: Up event > Sep 24 20:51:45 secret mpd: [PPPoE] LCP: state change Starting --> Req-Sent > Sep 24 20:51:45 secret mpd: [PPPoE] LCP: SendConfigReq #4 > Sep 24 20:51:45 secret mpd: MRU 1492 > Sep 24 20:51:45 secret mpd: MAGICNUM 10c658b6 > Sep 24 20:51:46 secret mpd: [PPPoE] LCP: rec'd Configure Request #20 > (Req-Sent) > Sep 24 20:51:46 secret mpd: MRU 1492 > Sep 24 20:51:46 secret mpd: AUTHPROTO PAP > Sep 24 20:51:46 secret mpd: MAGICNUM 022165ca > Sep 24 20:51:46 secret mpd: [PPPoE] LCP: SendConfigAck #20 > Sep 24 20:51:46 secret mpd: MRU 1492 > Sep 24 20:51:46 secret mpd: AUTHPROTO PAP > Sep 24 20:51:46 secret mpd: MAGICNUM 022165ca > Sep 24 20:51:46 secret mpd: [PPPoE] LCP: state change Req-Sent --> Ack-Sent > Sep 24 20:51:46 secret mpd: [PPPoE] LCP: rec'd Configure Ack #4 (Ack-Sent) > Sep 24 20:51:46 secret mpd: MRU 1492 > Sep 24 20:51:46 secret mpd: MAGICNUM 10c658b6 > Sep 24 20:51:46 secret mpd: [PPPoE] LCP: state change Ack-Sent --> Opened > Sep 24 20:51:46 secret mpd: [PPPoE] LCP: auth: peer wants PAP, I want > nothing > Sep 24 20:51:46 secret mpd: [PPPoE] PAP: using authname "secret" > Sep 24 20:51:46 secret mpd: [PPPoE] PAP: sending REQUEST len:22 > Sep 24 20:51:46 secret mpd: [PPPoE] LCP: LayerUp > Sep 24 20:51:46 secret mpd: [PPPoE] PAP: rec'd ACK #1 > Sep 24 20:51:46 secret mpd: [PPPoE] LCP: authorization successful > Sep 24 20:51:46 secret mpd: [PPPoE] Bundle up: 1 link, total bandwidth 64000 > bps > Sep 24 20:51:46 secret mpd: [PPPoE] IPCP: Open event > Sep 24 20:51:46 secret mpd: [PPPoE] IPCP: state change Initial --> Starting > Sep 24 20:51:46 secret mpd: [PPPoE] IPCP: LayerStart > Sep 24 20:51:46 secret mpd: [PPPoE] IPCP: Up event > Sep 24 20:51:46 secret mpd: [PPPoE] IPCP: state change Starting --> Req-Sent > Sep 24 20:51:46 secret mpd: [PPPoE] IPCP: SendConfigReq #5 > Sep 24 20:51:46 secret mpd: IPADDR 0.0.0.0 > Sep 24 20:51:46 secret mpd: COMPPROTO VJCOMP, 16 comp. channels, no comp-cid > Sep 24 20:51:46 secret mpd: [PPPoE] IPCP: rec'd Configure Reject #5 > (Req-Sent) > Sep 24 20:51:46 secret mpd: COMPPROTO VJCOMP, 16 comp. channels, no comp-cid > Sep 24 20:51:46 secret mpd: [PPPoE] IPCP: SendConfigReq #6 > Sep 24 20:51:46 secret mpd: IPADDR 0.0.0.0 > Sep 24 20:51:46 secret mpd: [PPPoE] IPCP: rec'd Configure Nak #6 (Req-Sent) > Sep 24 20:51:46 secret mpd: IPADDR secretip > Sep 24 20:51:46 secret mpd: secretip is OK > Sep 24 20:51:46 secret mpd: [PPPoE] IPCP: SendConfigReq #7 > Sep 24 20:51:46 secret mpd: IPADDR secretip > Sep 24 20:51:46 secret mpd: [PPPoE] IPCP: rec'd Configure Ack #7 (Req-Sent) > Sep 24 20:51:46 secret mpd: IPADDR secretip > Sep 24 20:51:46 secret mpd: [PPPoE] IPCP: state change Req-Sent --> Ack-Rcvd > Sep 24 20:51:46 secret mpd: [PPPoE] IPCP: rec'd Configure Request #65 > (Ack-Rcvd) > Sep 24 20:51:46 secret mpd: IPADDR secretispip > Sep 24 20:51:46 secret mpd: secretispip is OK > Sep 24 20:51:46 secret mpd: [PPPoE] IPCP: SendConfigAck #65 > Sep 24 20:51:46 secret mpd: IPADDR secretispip > Sep 24 20:51:46 secret mpd: [PPPoE] IPCP: state change Ack-Rcvd --> Opened > Sep 24 20:51:46 secret mpd: [PPPoE] IPCP: LayerUp > Sep 24 20:51:46 secret mpd: secretip -> secretispip > Sep 24 20:51:46 secret mpd: [PPPoE] IFACE: Up event > > > I have made some attempts before but had no time to go in depth until now.. > Settings I played with so far although without any progress whatsoever are: > > set bundle disable noretry # dumped - no effect > set link max-redial 0 # default is -1 and 0 - redial indefinitely > > > I'm kind of lost right now so any help would be appreciated.. > And I do like mpd 4.x new features (ipv6cp etc) A LOT btw ;) > > > -- > Regards, > Alan Tamm > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Try adding set bundle no noretry