I'm working for a WISP, and they have a PPPOE problem long ago.
They have pppoe servers on Mikrotik routers authenticating from a radius server. The pppoe clients running on Mikrotik and Ubiquiti devices. The pppoe sessions resets every night by a script (removing all items from ppp active connections).
Mikrotik devices reconnets immediately, but Ubiquiti devices about 40 seconds.
The problem begins from RouterOS version 6, Ubi devices reconnets immediately to RouterOS 5 pppoe servers.
I tested it, debugging pppd on Ubiquiti, that shows pppd does not notice the Mikrotik pppoe disconnetion, ubi is waiting for echo reply, and after the timeout (20-30sec), reconnect.
From the logs, Mikrotik sends a PADT packet:
12:11:16 pppoe,debug,packet bridge1: sent PADT to 78:8A:20:E6:EC:AB
But ubi is waiting for echo reply for a timeout:
Nov 8 12:11:21 pppd: No response to 5 echo-requests
Nov 8 12:11:31 pppd: sent [LCP ConfReq id=0x13 <mru 1492> <magic 0xbb281bd0>]
With RouterOS 5 version, Mikrotik sends LCP TermReq BEFORE PADT:
12:59:22 pppoe,ppp,debug,packet <0005>: sent LCP TermReq id=0x2
12:59:22 pppoe,ppp,debug,packet <0005>: rcvd LCP TermAck id=0x2
12:59:22 pppoe,debug,packet bridge1: sent PADT to 78:8A:20:E6:EC:AB
And ubi detects the request, and start a new connect immediatelly:
Nov 8 12:58:51 pppd: rcvd [LCP TermReq id=0x2 "administrator request\000"]
Nov 8 12:58:51 pppd: LCP terminated by peer (administrator request^@)
Nov 8 12:58:54 pppd: sent [LCP ConfReq id=0x13 <mru 1492> <magic 0x22b24716>]
Wireshark shows the same, see atatched txt log.
Can anybody help me to solve this problem?
Why does not sends ROS6 TermReq packet, OR why required it for Ubiquity and not for Mikrotik clients?