Hi *,
I used to have the following problem like many others in the community (source: No PPPoE connection) with my Telekom VDSL50 internet connection:
daemon.warn pppd[2652]: Timeout waiting for PADO packets
daemon.err pppd[2652]: Unable to complete PPPoE Discovery
And, I looked up every possible page, but couldn't find any problem with my "/etc/config/network" file on the TD-W8970 with LEDE 17.01.2 (r3435-65eec8bd5f):
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fdfa:768b:94d9::/48'
config atm-bridge 'atm'
option vpi '1'
option vci '32'
option encaps 'llc'
option payload 'bridged'
config dsl 'dsl'
option xfer_mode 'ptm'
option annex 'b'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.0.1'
option ip6assign '64'
config interface 'wan'
option proto 'pppoe'
option ipv6 'auto'
option _orig_ifname 'ptm0'
option _orig_bridge 'false'
option ifname 'ptm0.7'
option username 'XXXXX'
option password 'XXXXX'
option keepalive '3 2'
option persist '1'
option holdoff '5'
config device 'wan_dev'
option name 'ptm0'
option macaddr 'XX:XX:XX:XX:XX:XX'
config interface 'wan6'
option ifname 'pppoe-wan'
option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option vid '1'
option ports '0 2 4 5 6t'
The Telekom technicians took care of the telephone cabling and setting up the telephone system "Octopus E". As we are now using only the mobile phone, I spent some time yesterday, turned off the telefone system, changed the telephone cabling and connected my TD-W8970 on ground floor directly with the splitter in the basement. The devices are connected now that way:
"First TAE-outlet" <---> splitter <---> TD-W8970
My DSL connection is now online for 18 hours. Previously, it disconnected with the log message "Timeout waiting for PADO packets" after every 2-3 hours and I had to reboot the router. AFAIK, It seems that my telephone system somehow interfered with my DSL connection. I am not quite sure.
If you are using a telephone system like the "Octopus E" and connecting the router to the first TAE-outlet doesn't help, my scripts that I have used previously might be helpful:
root@LEDE:~# cat /etc/hotplug.d/net/99-check_wan
#!/bin/sh
if [ "$ACTION" = "remove" ] && [ "$INTERFACE" = "pppoe-wan" ]; then
(/root/check_wan.sh >/dev/null 2>&1) &
fi
Above code is called by hotplug after your wan device, which holds the wan ip address, is turned off.
The code below checks the logs for five minutes for the message "Timeout waiting for PADO packets" once every second. If such a message exists and this message has been created within the last 5 minutes, the device is rebooted.
root@LEDE:~# ls -l /root/check_wan.sh
-rwxr-xr-x 1 root root 410 Sep 17 18:04 /root/check_wan.sh
root@LEDE:~# cat /root/check_wan.sh
#!/bin/sh
START_TIME="$(/bin/date +%s)"
while [ $(($(/bin/date +%s) - START_TIME)) -lt 300 ]; do
PADO_LOG_TIME="$(/sbin/logread -t | /bin/grep "Timeout waiting for PADO packets" | /usr/bin/tail -n 1 | /usr/bin/awk -F"[" '{print $2}' | /usr/bin/awk -F"." '{print $1}')"
if [ ! -z "$PADO_LOG_TIME" ] && [ $(($(/bin/date +%s) - PADO_LOG_TIME)) -lt 300 ]; then
/sbin/reboot
fi
/bin/sleep 1s
done
Don't forget to make the 2nd script executable, change the wan device in the 1st script as needed and use them at your own risk.
Best regards,
dasa123