Hello Morituri ;)

with such a nickname, you may not wonder about connection dying ;)

Now to your problem.
What is in your ip down script ?
I cannot confirm the problem you have. I use 1.0 stable for a long time now.
I just tried
1. getting the connection down with ifdown ppp0  ( it is the better way)
2. manually restart
3. pulling the ethernet cable out. --> lcp fails --Connection drop
4. Ethernet cable in --> connection builds up again.
5 same for  poweroff dsl modem

Interesting in your log file is are following line.
>Jun  1 17:42:09 moritius pppd[1613]: Sending PADI
your broadcast on the line to get an Access Concentrator

>Jun  1 17:42:09 moritius pppd[1613]: invalid packet Ether addr:
00:90:1a:40:xx:xx  (PPPOE Discovery)  PPPoE hdr: ver=0x1 type=0x1 code=0xd3
sid=0xe412 length=0x0023 (Unknown)  PPPoE tag: type=0112 length=001f
(Unknown) unrecognized data
Now the PPPOE Discovery has a version 0x1 type 0x1 code 0xd3 ok but a
session id sid=0xe412 this is wrong . It should be 00 as it is a try to get
a new session with a new session number from the Access concentrator.
If the link dies from LCP failure, your  side might send a package with a
message LCP failure I take the connection down.
It could be possible that this  package is mixed with the PADI.

>Jun  1 17:42:09 moritius pppd[1613]: Failed to negotiate PPPoE connection:
10 No child processes
>Jun  1 17:42:09 moritius pppd[1613]: Exit.
this is something i wonder about too, pppd is normally not exited after a
failed connection.
My box tried once for a whole night it reconnects,  impossible due to a
cable problem. After reconnecting the cable, connection was there in a few
seconds.

A  Try ifup ppp0 . and ifdown ppp0
B   remove holdoff 30
 it doesn't seem to work, as you have only 10 seconds between the disconnect
and the first PADI.

Good Luck

Regards
Eric Wolzak
member of the bering Crew



-----Ursprüngliche Nachricht-----
Von: Morituri Salutant <[EMAIL PROTECTED]>
An: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Datum: Mittwoch, 18. Juni 2003 21:14
Betreff: [leaf-user] Strange pppoe session terminations...


>Hello,
>
> I'am happy user of Bering-1.0_stable router & firewall set on
>[EMAIL PROTECTED] with 16MB RAM running 2.4.18 kernel. My Internet
>connection is 512/128kbps ADSL line with 1 dynamic IP address set during
>PPPoE procedure. I set NATed LAN:192.168.1.0/24. Simple topology of
>my net is depicted below:
>
>pppoe[one dynamic [EMAIL PROTECTED] - Bering-1.0_stable[router,firewall and NAT]
>- LAN:192.168.1.254/24
>
>I have configured DROPs of tardy DNS replies and it's working fine for me.
>
> As I think, my problem is connected to michal ostrowski's pppoe
>plugin used in Bering-1.0_stable. First pppoe connection always works fine,
but
>after LCP termination from remote site or from my side connection isn't
>established anymore even with persist option set. Daemon pppd ends up
>with error code 10 or 25, reporting invalid packet. Config and logs are
>shown below.
>
> Looking forward to Your help. Sincerely, Morituri.
>
>
>config file: /etc/ppp/peers/dsl-provider
>plugin /usr/lib/pppd/pppoe.so
>name "********************"
>noipdefault
>defaultroute
>hide-password
>lcp-echo-interval 20
>lcp-echo-failure 3
>connect /bin/true
>noauth
>persist
>holdoff 30
>maxfail 0
>mtu 1492
>
>log: /var/log/daemon.log
># pppd manually started with: pon dsl-provider eth0
>Jun  1 15:52:33 moritius pppd[3220]: Plugin /usr/lib/pppd/pppoe.so loaded.
>Jun  1 15:52:33 moritius pppd[3220]: PPPoE Plugin Initialized
>Jun  1 15:52:33 moritius pppd[1613]: pppd 2.4.1 started by root, uid 0
>Jun  1 15:52:33 moritius pppd[1613]: Sending PADI
>Jun  1 15:52:34 moritius pppd[1613]: HOST_UNIQ successful match
>Jun  1 15:52:34 moritius pppd[1613]: HOST_UNIQ successful match
>Jun  1 15:52:34 moritius pppd[1613]: Got connection: 12e4
>Jun  1 15:52:34 moritius pppd[1613]: Connecting PPPoE socket:
00:90:1a:40:xx:xx e412 eth0 0x807c260
>Jun  1 15:52:34 moritius pppd[1613]: using channel 4
>Jun  1 15:52:34 moritius pppd[1613]: Using interface ppp0
>Jun  1 15:52:34 moritius pppd[1613]: Connect: ppp0 <--> eth0
>Jun  1 15:52:34 moritius pppd[1613]: Couldn't increase MTU to 1500.
>Jun  1 15:52:34 moritius pppd[1613]: Couldn't increase MRU to 1500
>Jun  1 15:52:37 moritius pppd[1613]: Couldn't increase MRU to 1500
>Jun  1 15:52:37 moritius pppd[1613]: local  IP address 80.50.70.*
>Jun  1 15:52:37 moritius pppd[1613]: remote IP address 213.25.2.57
>
># pppd triggered to renegotiate connection manually with SIGHUP
>Jun  1 17:41:59 moritius pppd[1613]: Hangup (SIGHUP)
>Jun  1 17:41:59 moritius pppd[1613]: Script /etc/ppp/ip-down started (pid
15411)
>Jun  1 17:41:59 moritius pppd[1613]: Couldn't increase MTU to 1500.
>Jun  1 17:41:59 moritius pppd[1613]: Couldn't increase MRU to 1500
>Jun  1 17:41:59 moritius pppd[1613]: Connection terminated.
>Jun  1 17:41:59 moritius pppd[1613]: Connect time 109.5 minutes.
>Jun  1 17:41:59 moritius pppd[1613]: Sent 16682282 bytes, received 31385375
bytes.
>Jun  1 17:41:59 moritius pppd[1613]: Doing disconnect
>Jun  1 17:41:59 moritius pppd[1613]: Script /etc/ppp/ip-down finished (pid
15411), status = 0x100
>
># pppd manually started again with: pon dsl-provider eth0
>Jun  1 17:42:42 moritius pppd[22956]: Plugin /usr/lib/pppd/pppoe.so loaded.
>Jun  1 17:42:42 moritius pppd[22956]: PPPoE Plugin Initialized
>Jun  1 17:42:42 moritius pppd[31353]: pppd 2.4.1 started by root, uid 0
>Jun  1 17:42:42 moritius pppd[31353]: Sending PADI
>Jun  1 17:42:42 moritius pppd[31353]: HOST_UNIQ successful match
>Jun  1 17:42:42 moritius pppd[31353]: HOST_UNIQ successful match
>Jun  1 17:42:42 moritius pppd[31353]: Got connection: 158e
>Jun  1 17:42:42 moritius pppd[31353]: Connecting PPPoE socket:
00:90:1a:40:xx:xx 8e15 eth0 0x807c260
>Jun  1 17:42:42 moritius pppd[31353]: using channel 5
>Jun  1 17:42:42 moritius pppd[31353]: Using interface ppp0
>Jun  1 17:42:42 moritius pppd[31353]: Connect: ppp0 <--> eth0
>Jun  1 17:42:42 moritius pppd[31353]: Couldn't increase MTU to 1500.
>Jun  1 17:42:42 moritius pppd[31353]: Couldn't increase MRU to 1500
>Jun  1 17:42:45 moritius pppd[31353]: Couldn't increase MRU to 1500
>Jun  1 17:42:45 moritius pppd[31353]: local  IP address 80.50.49.*
>Jun  1 17:42:45 moritius pppd[31353]: remote IP address 213.25.2.57
>
># pppd died from LCP termination by peer
>May 31 22:18:43 moritius pppd[2386]: LCP terminated by peer
>May 31 22:18:43 moritius pppd[2386]: Couldn't increase MTU to 1500.
>May 31 22:18:43 moritius pppd[2386]: Couldn't increase MRU to 1500
>May 31 22:18:43 moritius pppd[2386]: Modem hangup
>May 31 22:18:43 moritius pppd[2386]: Connection terminated.
>May 31 22:18:43 moritius pppd[2386]: Connect time 10081.5 minutes.
>May 31 22:18:43 moritius pppd[2386]: Sent 559930218 bytes, received
1625113202 bytes.
>May 31 22:18:43 moritius pppd[2386]: Doing disconnect
>May 31 22:18:53 moritius pppd[2386]: Sending PADI
>May 31 22:18:53 moritius pppd[2386]: invalid packet Ether addr:
00:90:1a:40:xx:xx  (PPPOE Discovery)  PPPoE hdr: ver=0x1 type=0x1 code=0xd3
sid=0xc016 length=0x0023 (Unknown)  PPPoE tag: type=0112 length=001f
(Unknown) unrecognized data
>May 31 22:18:53 moritius pppd[2386]: Failed to negotiate PPPoE connection:
10 No child processes
>May 31 22:18:53 moritius pppd[2386]: Exit.
---cut lots of logfile.




-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to