I have a rather strange situation where my DSL doesn't complete PPPoE when it's disconnected by the ISP
Setup:
- Running a w8970 with master build using the onboard DSL modem to connect to the ISP (no intermediate PPPoE devices)
- PTM based setup
- ISP used vlan7
- My ISP disconnects circuit after a week of being online
- DSL modem tries to reconnect but never does.
Here are timeouts:
Jul 19 05:04:31 imagiswitch pppd[1781]: No response to 10 echo-requests
Jul 19 05:04:31 imagiswitch pppd[1781]: Serial link appears to be disconnected.
Jul 19 05:04:31 imagiswitch pppd[1781]: Connect time 8040.8 minutes.
Jul 19 05:04:31 imagiswitch pppd[1781]: Sent 779840993 bytes, received 3319298415 bytes.
Jul 19 05:04:32 imagiswitch pppd[1781]: Script /lib/netifd/ppp-down started (pid 31702)
Jul 19 05:04:32 imagiswitch netifd: Network device 'pppoe-easybell' link is down
Jul 19 05:04:32 imagiswitch pppd[1781]: sent [LCP TermReq id=0x2 "Peer not responding"]
Jul 19 05:04:32 imagiswitch netifd: Network device 'ffvpn' link is down
Jul 19 05:04:32 imagiswitch netifd: Interface 'ffvpn' has link connectivity loss
Jul 19 05:04:32 imagiswitch netifd: Interface 'ffvpn' is now down
Jul 19 05:04:35 imagiswitch pppd[1781]: sent [LCP TermReq id=0x3 "Peer not responding"]
Jul 19 05:04:36 imagiswitch netifd: Interface 'ffvpn' is disabled
Jul 19 05:04:36 imagiswitch netifd: Interface 'easybell' has lost the connection
Jul 19 05:04:36 imagiswitch netifd: Interface 'henet' has lost the connection
Jul 19 05:04:36 imagiswitch netifd: tunnel '6in4-henet' link is down
Jul 19 05:04:36 imagiswitch netifd: Interface 'henet' is now down
Jul 19 05:04:36 imagiswitch netifd: Interface 'henet' is setting up now
Jul 19 05:04:37 imagiswitch netifd: Interface 'henet' is now down
Jul 19 05:04:38 imagiswitch pppd[1781]: Connection terminated.
Jul 19 05:04:38 imagiswitch pppd[1781]: Send PPPOE Discovery V1T1 PADT session 0x1862 length 0
Jul 19 05:04:38 imagiswitch pppd[1781]: dst fc:48:ef:2c:57:f4 src 00:20:da:86:23:75
Jul 19 05:04:38 imagiswitch pppd[1781]:
Jul 19 05:04:38 imagiswitch pppd[1781]: Sent PADT
Jul 19 05:04:38 imagiswitch pppd[1781]: Modem hangup
Jul 19 05:04:42 imagiswitch pppd[1781]: Script /lib/netifd/ppp-down finished (pid 31702), status = 0x0
Jul 19 05:04:45 imagiswitch netifd: Network device 'ptm0' link is down
Jul 19 05:04:45 imagiswitch netifd: VLAN 'ptm0.7' link is down
Jul 19 05:04:45 imagiswitch netifd: Interface 'easybell' has link connectivity loss
Jul 19 05:04:46 imagiswitch pppd[1781]: Terminating on signal 15
Jul 19 05:04:46 imagiswitch pppd[1781]: Exit.
Jul 19 05:05:27 imagiswitch netifd: Network device 'ptm0' link is up
Jul 19 05:05:27 imagiswitch netifd: VLAN 'ptm0.7' link is up
Jul 19 05:05:27 imagiswitch netifd: Interface 'easybell' has link connectivity
Jul 19 05:05:27 imagiswitch netifd: Interface 'easybell' is setting up now
So far so good. However I noticed that the discovery phase never completes:
Jul 19 05:05:27 imagiswitch pppd[32407]: Plugin rp-pppoe.so loaded.
Jul 19 05:05:27 imagiswitch pppd[32407]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
Jul 19 05:05:27 imagiswitch pppd[32407]: pppd 2.4.7 started by root, uid 0
Jul 19 05:05:27 imagiswitch pppd[32407]: Send PPPOE Discovery V1T1 PADI session 0x0 length 10
Jul 19 05:05:27 imagiswitch pppd[32407]: dst ff:ff:ff:ff:ff:ff src 00:20:da:86:23:75
Jul 19 05:05:27 imagiswitch pppd[32407]: [service-name] [PPP-max-payload 05 dc]
Jul 19 05:05:32 imagiswitch pppd[32407]: Send PPPOE Discovery V1T1 PADI session 0x0 length 10
Jul 19 05:05:32 imagiswitch pppd[32407]: dst ff:ff:ff:ff:ff:ff src 00:20:da:86:23:75
Jul 19 05:05:32 imagiswitch pppd[32407]: [service-name] [PPP-max-payload 05 dc]
Jul 19 05:05:37 imagiswitch pppd[32407]: Send PPPOE Discovery V1T1 PADI session 0x0 length 10
Jul 19 05:05:37 imagiswitch pppd[32407]: dst ff:ff:ff:ff:ff:ff src 00:20:da:86:23:75
Jul 19 05:05:37 imagiswitch pppd[32407]: [service-name] [PPP-max-payload 05 dc]
Jul 19 05:05:42 imagiswitch pppd[32407]: Timeout waiting for PADO packets
Jul 19 05:05:42 imagiswitch pppd[32407]: Unable to complete PPPoE Discovery
<snip>
Jul 19 05:17:33 imagiswitch netifd: Network device 'ptm0' link is down
Jul 19 05:17:33 imagiswitch netifd: VLAN 'ptm0.7' link is down
Jul 19 05:17:33 imagiswitch netifd: Interface 'easybell' has link connectivity loss
To get around this I thought adding the following
cat /etc/ppp/ip-down.d/reset-dsl.sh
#!/bin/sh
/etc/init.d/dsl_control restart
To debug this, I have tried the following:
/etc/init.d/dsl_control restart - doesn't work
/etc/init.d/networking restart - doesn't work
Rebooting the w8970 - works :)
I'm presuming this is something to do with the vdsl firmware or even the system not sending a reset to the remote end or ... ?
To check for auto-reconnect during the week before the ISP does their weekly reconnect, I have pulled the DSL cable for a few seconds - results in a reconnect.
Configs are as follows:
config switch_vlan
option device 'ptm0'
option vlan '7'
config dsl 'dsl'
option xfer_mode 'ptm'
option firmware '/lib/firmware/lantiq-vrx200-a.bin'
option annex 'a'
option line_mode 'vdsl'
config device 'dsl_dev'
option name 'ptm0'
option proto 'none'
option mtu '1508'
option delegate '0'
config device 'dsl_vlan'
option name 'ptm0.7'
option proto 'none'
option mtu '1508'
option delegate '0'
config interface 'easybell'
option proto 'pppoe'
option ifname 'ptm0.7'
option username 'xxxx'
option password 'xxxx'
option mtu '1500'
option peerdns '0'
option ipv6 '0'
option demand '0'
option persist 'true'
option maxfail '0'
option holdoff '10'
option keepalive '10 5'
option pppd_options 'lcp-echo-adaptive mtu 1500 debug'
For the record, a normal connect looks like this and I can reconnect any time before the 7 day disconnect. The device will reconnect just fine.
Jul 19 06:03:14 imagiswitch netifd: Network device 'ptm0' link is up
Jul 19 06:03:14 imagiswitch netifd: VLAN 'ptm0.7' link is up
Jul 19 06:03:14 imagiswitch netifd: Interface 'easybell' has link connectivity
Jul 19 06:03:14 imagiswitch netifd: Interface 'easybell' is setting up now
Jul 19 06:03:15 imagiswitch pppd[6386]: Plugin rp-pppoe.so loaded.
Jul 19 06:03:15 imagiswitch pppd[6386]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
Jul 19 06:03:15 imagiswitch pppd[6386]: pppd 2.4.7 started by root, uid 0
Jul 19 06:03:15 imagiswitch pppd[6386]: Send PPPOE Discovery V1T1 PADI session 0x0 length 10
Jul 19 06:03:15 imagiswitch pppd[6386]: dst ff:ff:ff:ff:ff:ff src 00:20:da:86:23:75
Jul 19 06:03:15 imagiswitch pppd[6386]: [service-name] [PPP-max-payload 05 dc]
Jul 19 06:03:15 imagiswitch pppd[6386]: Recv PPPOE Discovery V1T1 PADO session 0x0 length 42
Jul 19 06:03:15 imagiswitch pppd[6386]: dst 00:20:da:86:23:75 src fc:48:ef:2c:58:9e
Jul 19 06:03:15 imagiswitch pppd[6386]: [service-name] [PPP-max-payload 05 dc] [AC-name rdsl-brln-de80.mediaways.net]
Jul 19 06:03:15 imagiswitch pppd[6386]: Send PPPOE Discovery V1T1 PADR session 0x0 length 10
Jul 19 06:03:15 imagiswitch pppd[6386]: dst fc:48:ef:2c:58:9e src 00:20:da:86:23:75
Jul 19 06:03:15 imagiswitch pppd[6386]: [service-name] [PPP-max-payload 05 dc]
Jul 19 06:03:15 imagiswitch pppd[6386]: PADS: Service-Name: ''
Jul 19 06:03:15 imagiswitch pppd[6386]: PPP session is 30413
Jul 19 06:03:15 imagiswitch pppd[6386]: Connected to fc:48:ef:2c:58:9e via interface ptm0.7
Jul 19 06:03:15 imagiswitch pppd[6386]: using channel 3
Jul 19 06:03:15 imagiswitch pppd[6386]: Using interface pppoe-easybell
Jul 19 06:03:15 imagiswitch pppd[6386]: Connect: pppoe-easybell <--> ptm0.7
Jul 19 06:03:15 imagiswitch pppd[6386]: sent [LCP ConfReq id=0x1 <magic 0x49a2daca>]
Any pointers would be most helpful!