Re: Mpd (3.x) mpd4 config and differeces in reconnect/dial behaviour ?

2007-09-25 Thread Alan Tamm
On 9/25/07, David N [EMAIL PROTECTED] wrote:

 On 25/09/2007, Alan Tamm [EMAIL PROTECTED] 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 

Re: Mpd (3.x) mpd4 config and differeces in reconnect/dial behaviour ?

2007-09-25 Thread Alan Tamm
On 9/25/07, Ian Smith [EMAIL PROTECTED] wrote:

 On Mon, 24 Sep 2007 21:25:32 +0300 Alan Tamm [EMAIL PROTECTED] wrote:

  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..

 Been there ..

  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

 No, you need this one .. or at least, it's what worked for me.  From my
 mpd.conf, with comments I added when I was also getting redial to work:

# without, 'noretry' was ENABLED (so no redial!)
set bundle disable noretry
 and
# without, 'Max redial:no redial' (-1); 0 = 'Max redial:unlimited'
set link max-redial 0

  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

 [..]
  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 !

 Yep.

  # quick fix:
  Manual open command for bundle PPPoE

 Yes, that works fine until you lose the link :)


Indeed :P

 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

 Hmm, well 'set bundle disable noretry' is what worked for me here.  Are
 you sure you restarted mpd afresh after changing that?  I recall having
 found something in update/changelog notes regarding the default value
 having changed for this, and after showing numerous values via console.

  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 ;)

 Here's my working mpd.conf; note that I'm still on mpd-4.1 though, fwiw,
 otherwise it's little different from yours.

 PPPoE:
new bPPPoE lPPPoE
set iface addrs 1.1.1.1 2.2.2.2
set iface route default
set iface disable on-demand
set iface idle 0
set iface up-script /root/bin/mpd_up
set iface down-script /root/bin/mpd_dn
# needed? seems so, t23 had trouble with large tcp pkts .. yep,
 fixes ..
set iface enable tcpmssfix
set bundle disable multilink
# without, 'noretry' was ENABLED (so no redial!)
set bundle disable noretry
set auth authname yeahright
set auth password uhuh
set link no acfcomp protocomp
set link disable pap chap
set link accept chap
set link mtu 1492
set link keep-alive 10 60
# without, 'Max redial:no redial' (-1); with, 'Max
 redial:unlimited'
set link max-redial 0
set ipcp yes vjcomp
set ipcp ranges my.ipa.ddr.ess/0 220.233.0.0/16
 # log dns servers as info anyway .. only passed to up-script, called as:
 # up: script interface proto local-ip remote-ip authname [dns1 ip] [dns2
 ip]
 # where 'dns1' and 'dns2' are LITERAL STRINGS $6 and $8 (dox need
 work!)
 # dn: script interface proto authname
 # later 6/3/7 which works, but we know these anyway .. ah why not ..
set ipcp enable req-pri-dns
set ipcp enable req-sec-dns
open

 mpd.links (note 'set link type' for 4.1, your 'set phys type' for 4.2)

 lPPPoE:
set link type pppoe
set pppoe iface xe0
set pppoe service 
set pppoe disable incoming
set pppoe enable originate

 Cheers, Ian


Thanks,
I am not finished (fine tuning/tweaking later) the setup so thanks again for
the info/examples.


-- 
Regards,
Alan Tamm

 PS! I just found this msg under spam folder (courtesy 

Mpd (3.x) mpd4 config and differeces in reconnect/dial behaviour ?

2007-09-24 Thread Alan Tamm
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

Re: Mpd (3.x) mpd4 config and differeces in reconnect/dial behaviour ?

2007-09-24 Thread David N
On 25/09/2007, Alan Tamm [EMAIL PROTECTED] 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 

Re: Mpd (3.x) mpd4 config and differeces in reconnect/dial behaviour ?

2007-09-24 Thread Ian Smith
On Mon, 24 Sep 2007 21:25:32 +0300 Alan Tamm [EMAIL PROTECTED] wrote:

  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..

Been there ..

  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

No, you need this one .. or at least, it's what worked for me.  From my
mpd.conf, with comments I added when I was also getting redial to work:

# without, 'noretry' was ENABLED (so no redial!)
set bundle disable noretry
and
# without, 'Max redial:no redial' (-1); 0 = 'Max redial:unlimited'
set link max-redial 0

  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

[..]
  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 !

Yep.

  # quick fix:
  Manual open command for bundle PPPoE

Yes, that works fine until you lose the link :)

  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

Hmm, well 'set bundle disable noretry' is what worked for me here.  Are
you sure you restarted mpd afresh after changing that?  I recall having
found something in update/changelog notes regarding the default value
having changed for this, and after showing numerous values via console.

  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 ;)

Here's my working mpd.conf; note that I'm still on mpd-4.1 though, fwiw,
otherwise it's little different from yours.

PPPoE:
new bPPPoE lPPPoE
set iface addrs 1.1.1.1 2.2.2.2
set iface route default
set iface disable on-demand
set iface idle 0
set iface up-script /root/bin/mpd_up
set iface down-script /root/bin/mpd_dn
# needed? seems so, t23 had trouble with large tcp pkts .. yep, fixes ..
set iface enable tcpmssfix
set bundle disable multilink
# without, 'noretry' was ENABLED (so no redial!)
set bundle disable noretry
set auth authname yeahright
set auth password uhuh
set link no acfcomp protocomp
set link disable pap chap
set link accept chap
set link mtu 1492
set link keep-alive 10 60
# without, 'Max redial:no redial' (-1); with, 'Max redial:unlimited'
set link max-redial 0
set ipcp yes vjcomp
set ipcp ranges my.ipa.ddr.ess/0 220.233.0.0/16
# log dns servers as info anyway .. only passed to up-script, called as:
# up: script interface proto local-ip remote-ip authname [dns1 ip] [dns2 ip]
# where 'dns1' and 'dns2' are LITERAL STRINGS $6 and $8 (dox need work!)
# dn: script interface proto authname
# later 6/3/7 which works, but we know these anyway .. ah why not ..
set ipcp enable req-pri-dns
set ipcp enable req-sec-dns
open

mpd.links (note 'set link type' for 4.1, your 'set phys type' for 4.2)

lPPPoE:
set link type pppoe
set pppoe iface xe0
set pppoe service 
set pppoe disable incoming
set pppoe enable originate

Cheers, Ian

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]