Community discussions

MikroTik App
 
pierfrancescoelia
just joined
Topic Author
Posts: 8
Joined: Sun Nov 17, 2019 6:00 pm

FTTH PPPoE Client - Not Reconnecting after Reboot

Wed Jun 09, 2021 12:09 pm

Hi everyone,
I am very happy with my new MikroTik RB4011iGS+RM, I have only one problem that I can't figure out how to solve.

I live in Italy, and I have an FTTH connection with Open Fiber, so the fiber cable comes to my home, it's terminated, through a patch cable it's connected to an ONT (Nokia), and then goes straight to the MikroTik ether1-port via standard ethernet cable.

The provider gave me three parameters in order to set up the internet connection, and they are username, password and VLAN ID, because the connection coming from the ONT is tagged.

I have created the VLAN item, and then the pppoe-client item.
/interface vlan 
	add interface=ether1 name=vlan-openfiber vlan-id=835
/interface pppoe-client
	add add-default-route=yes disabled=no interface=vlan-openfiber name=pppoe-bbbell password=XXXXX user=YYYYY


My gigabit connection works like a charm, but the problem is that, when I unplug and then re-plug ethernet cable connecting ONT to Mikrotik-ether1 or (properly, via Winbox) reboot/shutdown the router, the connection won't work again. Even when I update the firmware, after the reboot same problem.

To work around this problem, now, after I reboot and so I don't have a working internet connection, I export the configuration (/export file=monday), then I reset (through Winbox System > Reset configuration without default configuration), and then I import the previous configuration (/import file-name=monday.rsc).

Everything will start to work again, but I want to understand why this problem occurs and how to avoid it.

When I unplug the internet cable without powering off / rebooting, this is the log:
10:30:53 interface,info ether1 link down  # unplug ether1
10:30:53 pppoe,ppp,info pppoe-bbbell: terminating... - disconnected 
10:30:53 pppoe,ppp,info pppoe-bbbell: disconnected 
10:30:53 pppoe,ppp,info pppoe-bbbell: initializing... 
10:30:53 pppoe,ppp,info pppoe-bbbell: connecting... 
10:30:53 pppoe,ppp,info pppoe-bbbell: terminating... 
10:30:53 pppoe,ppp,info pppoe-bbbell: disconnected 
10:30:53 pppoe,ppp,info pppoe-bbbell: initializing... 
10:30:53 pppoe,ppp,info pppoe-bbbell: connecting... 
10:31:03 pppoe,ppp,info pppoe-bbbell: terminating... - disconnected 
10:31:03 pppoe,ppp,info pppoe-bbbell: disconnected 
10:31:03 pppoe,ppp,info pppoe-bbbell: initializing... 
10:31:03 pppoe,ppp,info pppoe-bbbell: connecting... 
10:31:13 pppoe,ppp,info pppoe-bbbell: terminating... - disconnected 
10:31:13 pppoe,ppp,info pppoe-bbbell: disconnected 
10:31:13 pppoe,ppp,info pppoe-bbbell: initializing... 
10:31:13 pppoe,ppp,info pppoe-bbbell: connecting... 
10:31:23 pppoe,ppp,info pppoe-bbbell: terminating... - disconnected 
10:31:23 pppoe,ppp,info pppoe-bbbell: disconnected 
10:31:24 pppoe,ppp,info pppoe-bbbell: initializing... 
10:31:24 pppoe,ppp,info pppoe-bbbell: connecting... 
10:31:34 pppoe,ppp,info pppoe-bbbell: terminating... - disconnected 
10:31:34 pppoe,ppp,info pppoe-bbbell: disconnected 
10:31:35 pppoe,ppp,info pppoe-bbbell: initializing... 
10:31:35 pppoe,ppp,info pppoe-bbbell: connecting... 
10:31:44 system,info,account user admin logged in from 192.168.20.20 via winbox  # login via Inbox
10:31:45 pppoe,ppp,info pppoe-bbbell: terminating... - disconnected 
10:31:45 pppoe,ppp,info pppoe-bbbell: disconnected 
10:31:46 system,info,account user admin logged in from 192.168.20.20 via telnet  # open terminal to test ping to 1.1.1.1
10:31:48 pppoe,ppp,info pppoe-bbbell: initializing... 
10:31:48 pppoe,ppp,info pppoe-bbbell: connecting... 
10:31:59 pppoe,ppp,info pppoe-bbbell: terminating... - disconnected 
10:31:59 pppoe,ppp,info pppoe-bbbell: disconnected 
10:32:03 interface,info ether1 link up (speed 1G, full duplex) # re-plug ether1
10:32:05 pppoe,ppp,info pppoe-bbbell: initializing... 
10:32:05 pppoe,ppp,info pppoe-bbbell: connecting... 
10:32:05 pppoe,ppp,info pppoe-bbbell: authenticated # router can reach pppoe-server and authenticate
10:32:43 pppoe,ppp,info pppoe-bbbell: terminating... 
10:32:43 pppoe,ppp,info pppoe-bbbell: disconnected 
10:32:43 pppoe,ppp,info pppoe-bbbell: initializing... 
10:32:43 pppoe,ppp,info pppoe-bbbell: connecting... 
10:32:43 pppoe,ppp,info pppoe-bbbell: authenticated 
10:33:44 pppoe,ppp,info pppoe-bbbell: terminating... 
10:33:44 pppoe,ppp,info pppoe-bbbell: disconnected 
10:33:44 pppoe,ppp,info pppoe-bbbell: initializing... 
10:33:44 pppoe,ppp,info pppoe-bbbell: connecting... 
10:33:44 pppoe,ppp,info pppoe-bbbell: authenticated 
10:34:44 pppoe,ppp,info pppoe-bbbell: terminating... 
10:34:44 pppoe,ppp,info pppoe-bbbell: disconnected 
10:34:44 pppoe,ppp,info pppoe-bbbell: initializing... 
10:34:44 pppoe,ppp,info pppoe-bbbell: connecting... 
10:34:44 pppoe,ppp,info pppoe-bbbell: authenticated 
When the internet cable is plugged, of course, the routers can authenticate with PPPoE, but internet won't work anyway. The trick of export/reset/import is required.

There you are screenshot from VLAN item and PPPoE item => https://imgur.com/a/rSblRon

The only thing that changes, is the Status in the pppoe-client item. When everything is working it says Status: connected, after I reboot [and internet does not working] it says Status: link established.


I really hope to solve this unfortunate problem.
Thanks in advance and have a nice day! :)
 
igorfie
just joined
Posts: 4
Joined: Wed Oct 24, 2018 4:04 pm

Re: FTTH PPPoE Client - Not Reconnecting after Reboot

Thu Jun 10, 2021 1:52 pm

I have very similar setup with Bell Canada (except SFP GPON from Huawei is plugging into 4011) and everything works on RouterOS v6.48.1. I did see PPPoE connection problem you describe when I tried upgrading to RouterOS v6.48.3 and had to revert back to v6.48.1.
 
pierfrancescoelia
just joined
Topic Author
Posts: 8
Joined: Sun Nov 17, 2019 6:00 pm

Re: FTTH PPPoE Client - Not Reconnecting after Reboot  [SOLVED]

Thu Jun 10, 2021 4:27 pm

Hi and thank you for your kind reply.

My problem was related to the PPP profile. My internet connection was using the default PPP profile, as well as my L2TP IPsec VPN server (https://wiki.mikrotik.com/wiki/Manual:I ... pSec_setup), I had to copy the profile and use two different profiles for connection and VPN.

That makes sense.

Thanks again!

Who is online

Users browsing this forum: Amazon [Bot], Bing [Bot], godel0914, GoogleOther [Bot], MaxwellsEq, onnyloh and 101 guests