Re: PPP cycling between UP and DOWN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/8/20 10:15 AM, James Carlson wrote:
On 2020-06-08 13:04, Patrick Mahan wrote:
On 5/28/20 6:59 AM, James Carlson wrote:
That's the most likely case.  It would help to have _complete_ debug
logs showing what's happening.
[...]
It sounds like a stretch to me.  A debug log would show for sure, though.
[...]
This doesn't sound likely to me.  But, again, debug logs are your friend
here.

Use the pppd 'debug' option.  By itself, that'll write the log
information to syslog daemon.debug (be sure to redirect that to a file).
   Or use the "logfile /path/to/file" option to write the messages to a
file.  Then post those logs.
[...]
I finally obtained the PPPoE logs from my customer.  I have redacted the
IP addresses.  This is where I think we get the UP-->DOWN-->UP that is
causing my issue.  Oddly, the customer has not experienced another event
of this nature since then.

Here is the log with my annotations:

Executing pppd w/plugin(/etc/ppp/plugins/rp-pppoe.so): '/usr/sbin/pppd
plugin /etc/ppp/plugins/rp-pppoe.so nic-wan0  unit 0 noipdefault noauth
default-asyncmap defaultroute hide-password nodetach  mtu 1492 mru 1492
noaccomp nodeflate nopcomp novj novjccomp user w29ddnjt@xxxxxxxxxxxxxx
lcp-echo-interval 20 lcp-echo-failure 3 '

The one option that's not included in the list above is "debug".

Yes, I had requested that the debug option be added, but since we added it, there has not been another incident.


local  IP address XX.XX.XX.XX
remote IP address YY.YY.YY.YY

NOTE: This is where the first ip-up callout was triggered.

This looks like normal start-up.

Connect time 0.1 minutes.
Sent 0 bytes, received 10 bytes.

NOTE: This is where I think the ip-down callout was triggered.

This looks like it could be a normal tear-down of some sort.  Without
debug information, we're not going to be able to say a whole lot more
about this.  (Crucially, a debug log would likely show which side
initiated the tear-down.)


Understood. And if we ever get this problem to occur again, I should have those logs.

sifdefaultroute(unit=0, ouraddr=XX.XX.XX.XX, gateway=YY.YY.YY.YY)
local  IP address XX.XX.XX.XX
remote IP address YY.YY.YY.YY

NOTE: This is where I think the second ip-up callout was triggered.

Modem hangup
Connect time 1629.1 minutes.
Sent 572 bytes, received 452067 bytes.
Connection terminated.
PPPoE shutdown on interface 'ppp0', exit status is '16'

"Modem hangup" means that PPPoE, not PPP, shut down this link.  It would
be a completely wild guess -- I know the pppd code fairly well, but I
don't know the separate rp-pppoe code too well at all -- but it's
possible that this user was bit by the same stray PADT problem that
someone reported earlier on this list.  Or maybe not.

Assuming that "Modem hangup" is the problem we're worried about here
(I'm not 100% sure at this point), the next thing to do would be to
debug the PPPoE stuff.  The Roaring Penguin guys would probably know
more about that, but, personally, my first action would be to use
something like wireshark to capture the traffic on the Ethernet itself,
and use that to find out what happens to shut down the link.


Sorry, no the "Modem hangup" here is expected. Out tech support generally has a list of "try this" for these issues. One of them was to IFDOWN the physical interface, wait 10s then IFUP. We correctly caught the modem down and restarted.

No the issue I need to deal with is the UP-->DOWN-->UP cycle. I am currently modifying the code to handle this issue a little more leniently, but I haven't figured out a way to validate my changes short of modifying the pppd to inject a rogue PADT packet.

Thanks,

Patrick




[Index of Archives]     [Linux Audio Users]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux