The pfSense Store

Author Topic: PPPoE won't reconnect after link loss  (Read 5485 times)

0 Members and 1 Guest are viewing this topic.

Offline clarknova

  • Hero Member
  • *****
  • Posts: 920
    • View Profile
PPPoE won't reconnect after link loss
« on: September 05, 2011, 04:36:56 am »
Attached are four files. Here's how I got them:

1. Boot system fresh. PPPoE connected.
2.
Code: [Select]
clog /var/log/system.log | egrep '(mpd|ppp)' > ppp_working.txt
cp /var/etc/mpd_wan.conf mpd_wan_working.conf.txt
3. Pull plug on WAN NIC. Wait 2 minutes. Re-plug. (WAN not connecting)
4.
Code: [Select]
clog /var/log/system.log | egrep '(mpd|ppp)' > ppp_not_working.txt
cp /var/etc/mpd_wan.conf mpd_wan_not_working.conf.txt
5. Reboot to working WAN.

Null Service Name is checked.
db

Offline clarknova

  • Hero Member
  • *****
  • Posts: 920
    • View Profile
Re: PPPoE won't reconnect after link loss
« Reply #1 on: October 10, 2011, 05:29:48 am »
Reproduceable in 2.0-RELEASE amd64. Haven't tested other arches.

Opened a bug here: http://redmine.pfsense.org/issues/1943
db

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 14935
    • View Profile
Re: PPPoE won't reconnect after link loss
« Reply #2 on: October 14, 2011, 08:28:08 am »
Try this:
Code: [Select]
ngctl list > /root/ngctl-before.txt
unplug, replug, wait for it to try reconnecting

Then run:
Code: [Select]
ngctl list > /root/ngctl-after.txt
diff -ub /root/ngctl-before.txt /root/ngctl-after.txt

I'm curious if there are any differences when it works and when it doesn't.
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline clarknova

  • Hero Member
  • *****
  • Posts: 920
    • View Profile
Re: PPPoE won't reconnect after link loss
« Reply #3 on: October 26, 2011, 05:31:00 am »
em0_vlan20X = mlppp member interface
em1_vlanY (where Y is 7 or 666) = disabled static interface
db

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 14935
    • View Profile
Re: PPPoE won't reconnect after link loss
« Reply #4 on: October 28, 2011, 08:05:51 am »
Does your pppoe0 interface still exist when it's trying to reconnect?

For curiosity sake, while it's not working, go to Diag > Command, in the PHP box, and try:

Code: [Select]
pfSense_ngctl_attach(".", "ng0");
Or perhaps

Code: [Select]
pfSense_ngctl_attach("ng0", "pppoe0");
Failing that, give this a try: Edit usr/local/sbin/ppp-linkdown and comment out or remove this line (keep an unaltered copy around though so you can restore the copy if it doesn't help)
Code: [Select]
/usr/sbin/ngctl shutdown $1:
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline clarknova

  • Hero Member
  • *****
  • Posts: 920
    • View Profile
Re: PPPoE won't reconnect after link loss
« Reply #5 on: November 30, 2011, 06:12:46 am »
I'll post my updates here: http://forum.pfsense.org/index.php/topic,41061.msg225361.html#msg225361, as that seems to be the current thread for this topic.
db

Offline Craigusoz

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: PPPoE won't reconnect after link loss
« Reply #6 on: December 30, 2011, 03:39:39 pm »
Hi, I'm looking to set up pfSense in a small business environment, but am very concerned about this apparent problem that seems to have no fix. Does this occur universally, or just with some ISP's ?


Offline wallabybob

  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
Re: PPPoE won't reconnect after link loss
« Reply #7 on: December 30, 2011, 05:09:59 pm »
I believe some changes went into pfSense 2.0.1 to address this problem. Its not universal. I am not alone in being able to report that my pppoe successfully restarts after link loss. I believe at least one of the pfSense developers reported they were unable to reproduce the problem.

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 14935
    • View Profile
Re: PPPoE won't reconnect after link loss
« Reply #8 on: December 30, 2011, 05:14:33 pm »
Several of us (developers) use PPPoE at home and various other places, and have never been able to reproduce this as far as I'm aware.

It would seem to hit certain ISPs more than others.
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline Craigusoz

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: PPPoE won't reconnect after link loss
« Reply #9 on: December 30, 2011, 09:13:14 pm »
OK, that is somewhat reassuring, thanks for taking the time to reply.


Offline minimaster

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: PPPoE won't reconnect after link loss
« Reply #10 on: January 09, 2012, 01:11:15 pm »
I've Pfsense 2.0 and lately 2.01 running on Alix 2D13. vr1 with a static VDSL connection from a seperate VDSL router and vr2 with a PPPoE connection via Teledat430/T-DSL connection. Same issue here with both 2.0 and 2.01; when the DSL cable is disconnected >2 minutes it won't reconnect. Must reboot the Alix to get the PPPoE connection alive again.
Snippet from the log:
Jan 9 20:10:57    ppp: [opt1_link0] PPPoE connection timeout after 9 seconds
Jan 9 20:10:48    ppp: [opt1_link0] PPPoE: Connecting to ''
Jan 9 20:10:48    ppp: [opt1_link0] Link: reconnection attempt 87
Jan 9 20:10:44    ppp: [opt1_link0] Link: reconnection attempt 87 in 4 seconds
Jan 9 20:10:44    ppp: [opt1_link0] LCP: Down event
Jan 9 20:10:44    ppp: [opt1_link0] Link: DOWN event
Jan 9 20:10:44    ppp: [opt1_link0] PPPoE connection timeout after 9 seconds
Jan 9 20:10:35    ppp: [opt1_link0] PPPoE: Connecting to ''
Jan 9 20:10:35    ppp: [opt1_link0] Link: reconnection attempt 86
Jan 9 20:10:34    ppp: [opt1_link0] Link: reconnection attempt 86 in 1 seconds
« Last Edit: January 09, 2012, 01:13:09 pm by minimaster »

Offline clarknova

  • Hero Member
  • *****
  • Posts: 920
    • View Profile
Re: PPPoE won't reconnect after link loss
« Reply #11 on: January 09, 2012, 01:15:00 pm »
Have you tried this: http://forum.pfsense.org/index.php/topic,40671.msg219480.html#msg219480

It worked for me in 2.0. I haven't tested since upgrading to 2.0.1 though.
db

Offline minimaster

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: PPPoE won't reconnect after link loss
« Reply #12 on: January 09, 2012, 02:52:49 pm »
Tried all three suggestions, including reboot after the file edit. Still if the PPPoE line is being disconnected for a longer while it won't reconnect.  The kernel recognizes on the interface the reconnected modem:
Jan 9 21:44:46    kernel: vr2: link state changed to UP
Jan 9 21:44:46    check_reload_status: Linkup starting vr2

, but ppp continues with endless attempts and timeouts
Jan 9 21:45:05    ppp: [opt1_link0] LCP: Down event
Jan 9 21:45:05    ppp: [opt1_link0] Link: DOWN event
Jan 9 21:45:05    ppp: [opt1_link0] PPPoE connection timeout after 9 seconds
Jan 9 21:44:56    ppp: [opt1_link0] PPPoE: Connecting to ''
Jan 9 21:44:56    ppp: [opt1_link0] Link: reconnection attempt 33
Jan 9 21:44:52    ppp: [opt1_link0] Link: reconnection attempt 33 in 4 seconds

Offline wallabybob

  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
Re: PPPoE won't reconnect after link loss
« Reply #13 on: January 09, 2012, 03:14:02 pm »
It could be worthwhile doing a packet capture on the physical interface. Does the capture show outgoing PPP startup attempts? Does the capture show incoming responses? If not, might be time to call your ISP's tech support.

Offline minimaster

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: PPPoE won't reconnect after link loss
« Reply #14 on: January 09, 2012, 03:45:14 pm »
A packet capture does not show any packets (not a single one) on the interface while the log shows all the attempts and timeouts.