From owner-freebsd-questions@FreeBSD.ORG Mon Sep 24 18:54:42 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 6548C16A419 for ; Mon, 24 Sep 2007 18:54:42 +0000 (UTC) (envelope-from alan.tamm@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.231]) by mx1.freebsd.org (Postfix) with ESMTP id 0B59613C49D for ; Mon, 24 Sep 2007 18:54:41 +0000 (UTC) (envelope-from alan.tamm@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so1060869wxd for ; Mon, 24 Sep 2007 11:54:41 -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:mime-version:content-type; bh=nEee/ZYu6fSzlYC+QnUsWEwhqbB1lyv96ewGmLSYxqg=; b=cwhpYXH5Nm7A1rf9jiMwbFZA2oJUOrF9cR+BUu5y9ZiKsXf7byIf23cV+usCEodl255g5hamA1Yn5i7RCco0It1ubAonUMxGas3CiXHApypkclj9GNgbynqTzSSm88JxYVSQya4HiJfs2PvrM0MG5EE8fSSogote6GZul/3FUco= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=D73bpE0esKqyW5xUl3tyGdvYlweECXwY1ZyHAjfVmAEyAuHsjz7bsZbgpF8m3bnLqWI6V3xjNyiJVmZdrISbRCWadsXEOiYz8xedtbLrfaiOaa3dN0ZIaW2Za/Va2brKaSVXgJms6EfNmZ+7KvKHm0n3mibSerflKwxNwGjR410= Received: by 10.90.106.11 with SMTP id e11mr5782536agc.1190658332077; Mon, 24 Sep 2007 11:25:32 -0700 (PDT) Received: by 10.90.94.20 with HTTP; Mon, 24 Sep 2007 11:25:32 -0700 (PDT) Message-ID: <9af101940709241125l55a7e27axb5b01945db2d5072@mail.gmail.com> Date: Mon, 24 Sep 2007 21:25:32 +0300 From: "Alan Tamm" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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: Mon, 24 Sep 2007 18:54:42 -0000 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