 upbPremium join:2004-03-15 Carriere, MS kudos:1 | reply to Jeff65
Re: [Tomato] WRT54GL slow to recognize lost connection I've had a chance to look into this further by examining the Tomato source code. It turns out that two nvram variables which are not accessible from the configuration page may be what you really want to adjust. They are pppoe_lei and pppoe_lef — the LCP echo interval and the number of LCP echo failures respectively. They control the "-I" and "-T" option switch values that are provided to pppoecd when it is started by Tomato. The default values of "-I 30" and "-T 5" cause pppoe to wait for 2.5 minutes before it decides that the pppoe session has been lost.
I've tested the command "nvram set pppoe_lef=2", and it does indeed reduce the wait time to one minute under the conditions of an unresponsive ppp connection. The wait time can obviously be reduced further by changing pppoe_lei to something smaller than 30 seconds. By the way, the "nvram show" and "nvram get ..." commands may not show any values for those two variables at first. When the values are null, the Tomato firmware supplies the default values instead. |