Unstable Internet caused by frequent PPPoE reconnect, network.wan.keepalive=0 has no effect
Username: ppuzr
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=854
Problem occurs on EE Brightbox 1 (Arcadyan AR7516)
Software version is lede 17.01.1, r3316-7eb58cf1 (
)
Steps to reproduce: after a PPPoE session has been established for a while, it reconnects and the following messages appear in the log
daemon.info pppd[7738]: No response to 5 echo-requests daemon.notice pppd[7738]: Serial link appears to be disconnected. daemon.info pppd[7738]: Connect time 1.0 minutes. daemon.info pppd[7738]: Sent 28006 bytes, received 46170 bytes. daemon.notice pppd[7738]: Connection terminated. daemon.info pppd[7738]: Connect time 1.0 minutes. daemon.info pppd[7738]: Sent 28006 bytes, received 46170 bytes. daemon.info pppd[7738]: Sent PADT daemon.info pppd[7738]: Exit.
network.wan.keepalive is not set, and on luci “LCP echo failure threshold” shows a grey 0 and the description below it says “Presume peer to be dead after given amount of LCP echo failures, use 0 to ignore failures”, but this description is not consistent with the behaviour.
After running the commands below, the grey 0 becomes darker, but the problem persists.
root@LEDE:# uci set network.wan.keepalive=0
root@LEDE:# /etc/init.d/network restart
The value of network.wan.keepalive when set using luci has two numbers separated by a space (which appears to be in the format of ‘[threshold] [interval]’), but it should be a number according to the wiki
I then tried the following commands, and there’re no reconnects after one hour.
root@LEDE:# uci set network.wan.keepalive='0 1'
root@LEDE:# /etc/init.d/network restart
Is it better to have a default of 0 (default=undefined network.wan.keepalive) instead of seemingly 5 which would also be consistent with luci?