PPPoE WAN bug?

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

geekgirl
Posts: 8
Joined: Sun Mar 14, 2010 11:54 pm

Re: PPPoE WAN bug?

Post by geekgirl »

pbix,

I see now. Thanks for the clarification :)
pbix wrote:geekgirl,
BTW, do you know how pppd is started in OpenWRT? This is somewhat of a mystery to me. Somehow pppd is started before any scripts in /etc/init.d are executed.
Yes, it is a bit mysterious in fact, as you can see in r17527 (the patch I referenced), it does not reference ppp directly at all.

Normally, at boot (or start) I think this is how it happens (simplified):

1. /etc/init.d/network, at boot() and start(), does this:

Code: Select all

include /lib/network
2. The above include loads all files in in /lib/network (in alphabetical order), as seen by the "include" function's code in /etc/functions.sh

a. /lib/network/config.sh usually gets called first, since files in /lib/network are loaded in alphabetical order

b. /lib/network/ppp.sh gets loaded, where you can see the start_pppd() routine which invokes /usr/sbin/pppd, followed by:

c. pppoa.sh and/or pppoe.sh get(s) loaded, and they both call start_pppd()

hope this helps

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: PPPoE WAN bug?

Post by pbix »

That was my original understanding as well but as I said in my previous post my testing showed the pppd was running before any scripts from etc/init.d and certainly before /etc/init.d/network

So it remains a mystery to me how this is the case.
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

geekgirl
Posts: 8
Joined: Sun Mar 14, 2010 11:54 pm

Re: PPPoE WAN bug?

Post by geekgirl »

Please note that in /etc/init.d/network , boot() and start() are different
Mainly:
boot() doesn't contain `ifup -a` like start() does.. maybe that would explain why pppd starts before any interfaces are brought up?

I don't have access to a running openwrt atm, so can't look any further into this yet.

webcrawler42
Posts: 2
Joined: Sat Apr 09, 2011 8:41 pm

Re: PPPoE WAN bug?

Post by webcrawler42 »

Has this issue been fixed and put into a release? or is it only offered in the pppd fix? I am running a WRT54G and Gargoyle v1.2.5.

In the changelog http://www.gargoyle-router.com/wiki/dok ... =changelog for v1.3.9 it says "Fixes several issues with PPPoE, in particular with bandwidth monitor functionality on AR71XX routers by eliminating race conditions".

I would like to stick with a stable release, but if this bug was fixed in an unstable release I would be willing to upgrade to an unstable release.

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: PPPoE WAN bug?

Post by pbix »

I believe that all PPPoE issues are resolved in modern releases.

You will have to test yourself to confirm.
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

poffsoft_
Posts: 6
Joined: Tue Aug 16, 2011 3:59 pm

Re: PPPoE WAN bug?

Post by poffsoft_ »

pbix wrote:I believe that all PPPoE issues are resolved in modern releases.

You will have to test yourself to confirm.
I've just installed 1.4.0 on two Lafonera FON2200A.
The PPPOE doesn't connect bug still remain.
The last working 1.3.8 of gargoyle.
The highest version all doesn't connect by pppoe....
A question by that :
Should you inplement a "release" button, to disconnect, reconnect manually the PPPOE, into the connection PPPOE section?

And - the incorrect system time issues happend a lot of case on my m$ network config works-
should you insert at time page a manual time setup box (that can be used until the time server connection established).
And by default you should put one "time backup" file into the new releases with the compilation date- maybe it should helps?

i like gargoyle well, easy to use and so, but actually i cannot up to date because that bugs :(. And with 1.3.8 i've a little sability problem : the longtime (about 10-30 min) maximal download (4 Mbit/s) work rebooting the router, so 2-3 min pause until complete reconstructing my routing..

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: PPPoE WAN bug?

Post by pbix »

The FON2200 appears to have only 16Meg of RAM which may be the issue. I am not sure since I do not have this router.

One the connection limits screen change your connection limit to 512, then disable all QoS and Quotas and see if this makes a difference. If it does then it would seem that RAM space is the issue.

If you want to send one to me I will investigate more.
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

poffsoft_
Posts: 6
Joined: Tue Aug 16, 2011 3:59 pm

Re: PPPoE WAN bug?

Post by poffsoft_ »

ok, thanks.

The low ram cause the pppoe or the reboot issue?
The qos and quotas by default off, and the connection limits too, by default at 1024 . I'll check the result if decreased. (what are the minimums for that page for connections?).
another question: if my config use too much ram, may have some services and something exactly needn't, that can be killed(if it is, then please tell me how)?
My lan draw is:
dsl-modem(in bridge mode) ->
Fonera "A" (As station, with wireless clients and in WDS bridge to Fonera "B") ->
WDS "A" to "B" ->
Fonera "B" (as AP( repeater-mode), with wireless clients and one wired client and in WDS bridge to "A").

Just needed to extend range, so this is a good choice for that?

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: PPPoE WAN bug?

Post by pbix »

Insufficient RAM will cause many strange things including reboot issues.

Routers with only 16Meg of RAM can be used for systems supporting up to 3 or four users only. Your system sounds more complex. Are you having trouble with both routers?

I cannot tell you how many connections you need. You can inspect the connection list yourself and see how many are being used. Then set your limit a little higher than that.

Other things you can do to save memory, remove all port forwards, disable uPnP, turn off QoS, turn off Quotas. These are the things you can do from the GUI.
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

poffsoft_
Posts: 6
Joined: Tue Aug 16, 2011 3:59 pm

Re: PPPoE WAN bug?

Post by poffsoft_ »

Yes, the same thing on each router, IF i use higher version than 1.3.8.
And any services to stop form SSH? or by config? in console i mean.

The secound question, the DWS bridge is good choice for me, or a simple client bridge should be better? Or any othe configuration for my lan?

Post Reply