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

Alan Tamm alan.tamm at gmail.com
Tue Sep 25 05:08:33 PDT 2007


On 9/25/07, David N <davidn04 at gmail.com> wrote:
>
> On 25/09/2007, Alan Tamm <alan.tamm at gmail.com> 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


Hmm, I thought I had remembered the difference between "no" and "disable" in
mpd.conf..
For what its worth: I was in a hurry (but then again, aren't we all :P


> > 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 at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at freebsd.org"
> >
>
> Try adding
>
> set bundle no noretry


#log output
Sep 25 14:38:32 secret mpd: [PPPoE] Last link has gone and no noretry
option, will reopen in 3 seconds
/skipped/
Sep 25 14:40:31 secret mpd: [PPPoE] IFACE: Up event


Thanks a lot!

Regards,
Alan Tamm


More information about the freebsd-questions mailing list