Community discussions

MikroTik App
 
User avatar
pothi
newbie
Topic Author
Posts: 46
Joined: Fri Sep 14, 2018 7:48 pm
Location: Srivilliputhur, Tamil Nadu, India
Contact:

pppoe client can't connect anymore

Sat Mar 23, 2019 9:54 am

Hello,

I have a Mikrotik hap ac2 with RouterOS 6.44.1 installed. I use it along with my Belkin ADSL modem-router that is set in bridge mode (acting only as modem, not as router). Internally, it is called as 1483 bridge mode within the modem-router. I use Mikrotik router as pppoe-client to connect to the internet and it acts as router to connect the other devices with internet.

Everything used to work until a couple of days ago. I don't remember changing any configuration on the previous day/s. But, I do remember that I updated the RouterOS recently from 6.43.x to 6.44.x a few days ago. I keep my internet on 24x7. Anyway, I can't use Mikrotik router as pppoe-client, anymore. Here's the debug log from RouterOS...
12:54:30 pppoe,ppp,info pppoe-out1-bsnl-adsl: initializing...
12:54:30 pppoe,ppp,info pppoe-out1-bsnl-adsl: connecting...
12:54:30 pppoe,debug,packet ether1: sent PADI to FF:FF:FF:FF:FF:FF
12:54:30 pppoe,debug,packet     session-id=0x0000
12:54:30 pppoe,debug,packet     host-uniq=0x9400b600
12:54:30 pppoe,debug,packet     service-name=BSNL ADSL
12:54:31 pppoe,debug,packet ether1: sent PADI to FF:FF:FF:FF:FF:FF
12:54:31 pppoe,debug,packet     session-id=0x0000
12:54:31 pppoe,debug,packet     host-uniq=0x9400b600
12:54:31 pppoe,debug,packet     service-name=BSNL ADSL
12:54:32 pppoe,debug,packet ether1: sent PADI to FF:FF:FF:FF:FF:FF
12:54:32 pppoe,debug,packet     session-id=0x0000
12:54:32 pppoe,debug,packet     host-uniq=0x9400b600
12:54:32 pppoe,debug,packet     service-name=BSNL ADSL
12:54:33 pppoe,debug,packet ether1: sent PADI to FF:FF:FF:FF:FF:FF
12:54:33 pppoe,debug,packet     session-id=0x0000
12:54:33 pppoe,debug,packet     host-uniq=0x9400b600
12:54:33 pppoe,debug,packet     service-name=BSNL ADSL
12:54:34 pppoe,debug,packet ether1: sent PADI to FF:FF:FF:FF:FF:FF
12:54:34 pppoe,debug,packet     session-id=0x0000
12:54:34 pppoe,debug,packet     host-uniq=0x9400b600
12:54:34 pppoe,debug,packet     service-name=BSNL ADSL
12:54:35 pppoe,debug,packet ether1: sent PADI to FF:FF:FF:FF:FF:FF
12:54:35 pppoe,debug,packet     session-id=0x0000
12:54:35 pppoe,debug,packet     host-uniq=0x9400b600
12:54:35 pppoe,debug,packet     service-name=BSNL ADSL
12:54:36 pppoe,debug,packet ether1: sent PADI to FF:FF:FF:FF:FF:FF
12:54:36 pppoe,debug,packet     session-id=0x0000
12:54:36 pppoe,debug,packet     host-uniq=0x9400b600
12:54:36 pppoe,debug,packet     service-name=BSNL ADSL
12:54:37 pppoe,debug,packet ether1: sent PADI to FF:FF:FF:FF:FF:FF
12:54:37 pppoe,debug,packet     session-id=0x0000
12:54:37 pppoe,debug,packet     host-uniq=0x9400b600
12:54:37 pppoe,debug,packet     service-name=BSNL ADSL
12:54:38 pppoe,debug,packet ether1: sent PADI to FF:FF:FF:FF:FF:FF
12:54:38 pppoe,debug,packet     session-id=0x0000
12:54:38 pppoe,debug,packet     host-uniq=0x9400b600
12:54:38 pppoe,debug,packet     service-name=BSNL ADSL
12:54:39 pppoe,debug,packet ether1: sent PADI to FF:FF:FF:FF:FF:FF
12:54:39 pppoe,debug,packet     session-id=0x0000
12:54:39 pppoe,debug,packet     host-uniq=0x9400b600
12:54:39 pppoe,debug,packet     service-name=BSNL ADSL
12:54:40 pppoe,ppp,debug pppoe-out1-bsnl-adsl: CCP close
12:54:40 pppoe,ppp,debug pppoe-out1-bsnl-adsl: BCP close
12:54:40 pppoe,ppp,debug pppoe-out1-bsnl-adsl: IPCP close
12:54:40 pppoe,ppp,debug pppoe-out1-bsnl-adsl: IPV6CP close
12:54:40 pppoe,ppp,debug pppoe-out1-bsnl-adsl: MPLSCP close
12:54:40 pppoe,ppp,info pppoe-out1-bsnl-adsl: terminating... - disconnected
12:54:40 pppoe,ppp,debug pppoe-out1-bsnl-adsl: LCP lowerdown
12:54:40 pppoe,ppp,debug pppoe-out1-bsnl-adsl: LCP down event in initial state
12:54:40 pppoe,ppp,info pppoe-out1-bsnl-adsl: disconnected
I can confirm that nothing has gone wrong with the modem itself as I can use it in modem-router mode successfully. If I do use it as modem-router, the internet could be connected as you can see from the limited log provided my that modem-router...
3/23/2019 12:59:30 	If(PPPoE1) PPP connection ok !
03/23/2019 12:59:29 	PPPoE1 get IP:123.123.123.123
03/23/2019 12:59:29 	PPPoE1 start PPP
03/23/2019 12:59:29 	PPPoE receive PADS
03/23/2019 12:59:28 	PPPoE send PADR
03/23/2019 12:59:28 	PPPoE receive PADO
03/23/2019 12:59:28 	PPPoE send PADI
03/23/2019 12:59:28 	ADSL Media Up !
Here's my RouterOS config export (with some hidden information mentioned as xyz)...
# mar/23/2019 13:17:48 by RouterOS 6.44.1
# software id = KBW2-46HF
#
# model = RBD52G-5HacD2HnD
# serial number = xyz
/interface bridge
add admin-mac=B8:69:F4:20:C6:AF auto-mac=no comment=defconf name=bridge
/interface pppoe-client
add add-default-route=yes disabled=no interface=ether1 keepalive-timeout=disabled name=pppoe-out1-bsnl-adsl service-name="BSNL ADSL" user=xyz
/interface l2tp-client
add add-default-route=yes connect-to=work.tinywp.com keepalive-timeout=disabled name=l2tp-out1-work use-ipsec=yes user=xyz
/interface l2tp-server
add name=l2tp-in1-vpn user=xyz
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-XX country=india disabled=no distance=indoors frequency=auto mode=ap-bridge ssid=MikroTik \
    wireless-protocol=802.11
set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=20/40/80mhz-XXXX country=india disabled=no distance=indoors frequency=auto mode=ap-bridge ssid=MikroTik5 \
    wireless-protocol=802.11
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa-psk,wpa2-psk mode=dynamic-keys supplicant-identity=MikroTik
add authentication-types=wpa-psk,wpa2-psk mode=dynamic-keys name=profile supplicant-identity=MikroTik
/interface wireless
add disabled=no mac-address=BA:69:F4:20:C6:B4 master-interface=wlan2 name=wlan3 security-profile=profile ssid=MikroGuests
add disabled=no mac-address=BA:69:F4:20:C6:B3 master-interface=wlan1 name=wlan4 security-profile=profile ssid=MikroGuests
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
add name=dhcp ranges=192.168.18.10-192.168.18.254
add name=vpn ranges=192.168.19.2-192.168.19.255
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge name=defconf
/ppp profile
set *FFFFFFFE local-address=192.168.19.1 remote-address=vpn
/interface bridge filter
add action=drop chain=forward in-interface=wlan3
add action=drop chain=forward out-interface=wlan3
add action=drop chain=forward in-interface=wlan4
add action=drop chain=forward out-interface=wlan4
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=ether5
add bridge=bridge comment=defconf interface=wlan1
add bridge=bridge comment=defconf interface=wlan2
add bridge=bridge interface=wlan3
add bridge=bridge interface=wlan4
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface l2tp-server server
set enabled=yes use-ipsec=yes
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
/interface pptp-server server
set enabled=yes
/interface sstp-server server
set default-profile=default-encryption enabled=yes
/interface wireless access-list
add ap-tx-limit=1000000 interface=wlan4
add ap-tx-limit=1000000 interface=wlan3
/ip address
add address=192.168.18.1/24 comment=defconf interface=ether2 network=192.168.18.0
/ip cloud
set ddns-enabled=yes
/ip dhcp-client
add add-default-route=no comment=defconf dhcp-options=hostname,clientid disabled=no interface=ether1 use-peer-dns=no
add add-default-route=no dhcp-options=clientid,hostname disabled=no use-peer-dns=no use-peer-ntp=no
/ip dhcp-server network
add address=192.168.18.0/24 comment=defconf gateway=192.168.18.1 netmask=24
/ip dns
set servers=176.103.130.130,9.9.9.9,1.0.0.1,8.4.4.8
/ip dns static
add address=192.168.18.1 name=router.lan
/ip firewall filter
add action=accept chain=input comment="defconf: accept established,related,untracked" connection-state=established,related,untracked
add action=accept chain=input comment="allow IPsec NAT" dst-port=4500 protocol=udp
add action=accept chain=input comment="allow IKE" dst-port=500 protocol=udp
add action=accept chain=input comment="allow l2tp" dst-port=1701 protocol=udp
add action=accept chain=input comment="allow pptp" disabled=yes dst-port=1723 protocol=tcp
add action=accept chain=input comment="allow sstp" disabled=yes dst-port=443 protocol=tcp
# l2tp-in1-vpn not ready
add action=accept chain=input in-interface=l2tp-in1-vpn
add action=drop chain=input comment="defconf: drop invalid" connection-state=invalid
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=drop chain=input comment="defconf: drop all not coming from LAN" in-interface-list=!LAN
add action=accept chain=forward comment="defconf: accept in ipsec policy" ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" connection-state=established,related
add action=accept chain=forward comment="defconf: accept established,related, untracked" connection-state=established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" connection-state=invalid
add action=drop chain=forward comment="defconf:  drop all from WAN not DSTNATed" connection-nat-state=!dstnat connection-state=new in-interface-list=WAN
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" disabled=yes ipsec-policy=out,none out-interface-list=WAN
add action=masquerade chain=srcnat comment="masq. vpn traffic" src-address=192.168.19.0/24
# lte1 not ready
add action=masquerade chain=srcnat out-interface=*E
add action=masquerade chain=srcnat out-interface=ether1
# pppoe-out1-bsnl-adsl not ready
add action=masquerade chain=srcnat out-interface=pppoe-out1-bsnl-adsl
/ip route
add comment="Belkin default" distance=1 gateway=192.168.2.1
add comment="Belkin custom" distance=1 gateway=192.168.83.1
add check-gateway=ping distance=2 gateway=192.168.42.129
add comment="Netgear Router" disabled=yes distance=1 gateway=192.168.75.1
add disabled=yes distance=1 dst-address=192.168.88.0/24 gateway=l2tp-out1-work pref-src=192.168.19.1
/ip ssh
set allow-none-crypto=yes
/ppp secret
add name=xyz
/system clock
set time-zone-name=Asia/Kolkata
/system scheduler
add interval=1d name="Take backups" on-event=backup policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-date=feb/05/2019 start-time=05:30:00
add name=reboot_alert on-event=reboot_alert policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-time=startup
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
What could have gone wrong? Could it be a bug with the latest version of RouterOS?
 
matd
just joined
Posts: 13
Joined: Wed Jan 17, 2018 5:12 pm

Re: pppoe client can't connect anymore

Tue Mar 26, 2019 2:01 pm

Hi, it seems, that you don't have any response from BRAS/BNG (no PADO packet) when on Mikrotik.
You could try to remove Service Name in your Mikrotik configuration (if it is incorrect it could be reason for BRAS not to respond).
 
Drf
just joined
Posts: 2
Joined: Sat Jan 22, 2022 11:39 am

Re: pppoe client can't connect anymore

Sun Jan 23, 2022 10:14 am

Did you ever figure out what the problem was? I have a very similar issue and almost exactly the same setup. Mikrotik manages to get one pppoe session up after restart that only manages to last about 30-60 seconds and never manages to reconnect after. If I use the modem, everything works fine.

Who is online

Users browsing this forum: h1ghrise, jaclaz, tuxedo0801 and 87 guests