Hello guys,
I am having problem with my Mikrotik RB4011, basically it started not automatically connecting to internet whenever power went out or my ISP lost its internet for a few seconds but come back eventually. But my Mikrotik would not auto connect to internet, l literally have to restart the mikrotik or disconnect and connect the Ethernet cable to the mikrotik from the ISP modem so in order for it connect to internet. I have been asking and hiring people from facebook, fiver or any other websites just to fix this issue but still they could not pinpoint what’s wrong. I also replace the cables with new ones.
This are the events before this issue started happening:
a guy chop off the fiber cable of my ISP and when they fix it started to become like this.
I upgraded my plan from 500mbps to 1gbps same time that happened.
Please I need help.
Hard to know what the problem is without a config of the RB4011 and some more details about how to authenticate with your ISP (whatever their instructions are for 3rd party routers).
A description of what ports are plugged into where would be helpful too!
Wooferguy nailed it.
More info needed to know where the issue might be.
Hard to know what the problem is without a config of the RB4011 and some more details about how to authenticate with your ISP (whatever their instructions are for 3rd party routers).
A description of what ports are plugged into where would be helpful too!
Honestly I just hired a guy to configure this for me a few months ago, it was running smoothly until last week, no idea about anything related to configuring settings at mikrotik.
Do you know how to use winbox ?
Within winbox, open a terminal.
Then type:
/export file=
In the file section of winbox you will find that file
Open it with a text editor of your choice and review for remaining sensitive info (serial number, public IP address, …). Obfuscate those parts (do not remove, just put something else so we know it was there).
Then post the contents of that edited file between [__code] quotes.
Do you know how to use winbox ?
Within winbox, open a terminal.
Then type:
/export file=
In the file section of winbox you will find that file
Open it with a text editor of your choice and review for remaining sensitive info (serial number, public IP address, ...). Obfuscate those parts (do not remove, just put something else so we know it was there).
Then post the contents of that edited file between [__code] quotes.
After a few hours finally figured it out just like you describe.
here you go
oct/28/2022 19:57:01 by RouterOS 6.48.6
software id = M5T4-MLHW
model = RB4011iGS+
serial number = xxxx
/interface ethernet
set [ find default-name=ether1 ] mac-address=xxxx name=
ether1-ISP
set [ find default-name=ether5 ] name=ether5-LAN
set [ find default-name=ether10 ] name="ether10-REMOTE TO OLT"
/interface ovpn-client
add connect-to=sg-9.hostddns.us mac-address=xxxx name=ovpn-out1
password=xxxxxx user=xxx@tunnel.id
/interface vlan
add interface=ether7 name="PON 1 & PON 2" vlan-id=10
add interface=ether9 name="PON 3" vlan-id=30
add interface=ether8 name="PON 3 & PON 4" vlan-id=20
add interface="ether10-REMOTE TO OLT" name="PON 4" vlan-id=40
/interface ethernet switch port
set 0 default-vlan-id=0
set 1 default-vlan-id=0
set 2 default-vlan-id=0
set 3 default-vlan-id=0
set 4 default-vlan-id=0
set 5 default-vlan-id=0
set 6 default-vlan-id=0
set 7 default-vlan-id=0
set 8 default-vlan-id=0
set 9 default-vlan-id=0
set 10 default-vlan-id=0
set 11 default-vlan-id=0
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=pool-LAN ranges=192.168.88.2-192.168.88.254
add name=vpn ranges=192.168.89.2-192.168.89.255
add name="10 MBPS" ranges=172.16.10.2-172.16.10.254
add name="15 MBPS" ranges=172.16.10.2-172.16.15.254
add name="20 MBPS" ranges=172.16.20.2-172.16.20.254
add name="25 MBPS" ranges=172.16.25.2-172.16.25.254
add name="30 MBPS" ranges=172.16.30.2-172.16.30.254
add name="50 MBPS" ranges=172.16.50.2-172.16.50.254
add name=DISCONNECT ranges=172.16.1.2-172.16.1.254
add name="80 MBPS" ranges=172.16.80.2-172.16.80.254
add name="100 MBPS" ranges=172.16.100.2-172.16.100.254
/ip dhcp-server
add address-pool=pool-LAN disabled=no interface=ether5-LAN lease-time=4w2d
name=dhcp-LAN
/ppp profile
add change-tcp-mss=yes dns-server=172.16.10.1,8.8.8.8 local-address=
172.16.10.1 name="10 MBPS" only-one=yes rate-limit=
"10M/10M 15M/15M 7500K/7500K 12/12" remote-address="10 MBPS" use-upnp=yes
add change-tcp-mss=yes dns-server=172.16.20.1,8.8.8.8 local-address=
172.16.20.1 name="20 MBPS" only-one=yes rate-limit=
"20M/20M 25M/25M 15000K/15000K 10/10" remote-address="20 MBPS" use-upnp=
yes
add change-tcp-mss=yes dns-server=172.16.30.1,8.8.8.8 local-address=
172.16.30.1 name="30 MBPS" on-down=
"/queue simple remove [find name~$user]" only-one=yes rate-limit=
"30M/30M 35M/35M 22500K/22500K 10/10" remote-address="30 MBPS" use-upnp=
yes
add change-tcp-mss=yes dns-server=172.16.50.1,8.8.8.8 local-address=
172.16.50.1 name="50 MBPS" on-down=
"/queue simple remove [find name~$user]" only-one=yes rate-limit=
"50M/50M 55M/55M 37500K/37500K 9/9" remote-address="50 MBPS" use-upnp=yes
add change-tcp-mss=yes dns-server=172.16.15.1,8.8.8.8 local-address=
172.16.15.1 name="15 MBPS" only-one=yes rate-limit=
"15M/15M 20M/20M 11250K/11250K 11/11" remote-address="15 MBPS" use-upnp=
yes
add change-tcp-mss=yes dns-server=172.16.25.1,8.8.8.8 local-address=
172.16.25.1 name="25 MBPS" only-one=yes rate-limit=
"25M/25M 30M/30M 18750K/18750K 10/10" remote-address="25 MBPS" use-upnp=
yes
add change-tcp-mss=yes dns-server=172.16.1.1,8.8.8.8 local-address=172.16.1.1
name=DISCONNECT on-down="/queue simple remove [find name~$user]"
only-one=yes rate-limit=1K/1K remote-address=DISCONNECT use-upnp=yes
add change-tcp-mss=yes dns-server=172.16.80.1,8.8.8.8 local-address=
172.16.80.1 name="80 MBPS" on-down=
"/queue simple remove [find name~$user]" only-one=yes rate-limit=
"80M/80M 85M/85M 60000K/60000K 9/9" remote-address="80 MBPS" use-upnp=yes
add change-tcp-mss=yes dns-server=172.16.100.1,8.8.8.8 local-address=
172.16.100.1 name="100 MBPS" on-down=
"/queue simple remove [find name~$user]" only-one=yes rate-limit=
"100M/100M 105M/105M 75000K/75000K 9/9" remote-address="100 MBPS"
use-upnp=yes
set *FFFFFFFE local-address=192.168.89.1 remote-address=vpn
/interface detect-internet
set detect-interface-list=all
/interface pppoe-server server
add authentication=pap,chap disabled=no interface="PON 1 & PON 2"
keepalive-timeout=disabled one-session-per-host=yes service-name=service1
add authentication=pap,chap disabled=no interface="PON 3 & PON 4"
keepalive-timeout=disabled one-session-per-host=yes service-name=service2
add authentication=pap,chap disabled=no interface="PON 3" keepalive-timeout=
disabled one-session-per-host=yes pado-delay=100 service-name=service3
add authentication=pap,chap disabled=no interface="PON 4" keepalive-timeout=
disabled one-session-per-host=yes pado-delay=100 service-name=service4
/ip address
add address=10.100.100.1/24 interface=ether7 network=10.100.100.0
add address=192.168.88.1/24 interface=ether5-LAN network=192.168.88.0
/ip dhcp-client
add disabled=no interface=ether1-ISP
/ip dhcp-server network
add address=192.168.88.0/24 gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes cache-max-ttl=1d cache-size=5000KiB servers=
8.8.8.8,8.8.4.4
/ip dns static
add address=192.168.88.1 name=router.lan
add address=172.16.10.1 name=router.pppoe
add address=172.16.15.1 name=router.pppoe
add address=172.16.20.1 name=router.pppoe
add address=172.16.25.1 name=router.pppoe
add address=172.16.30.1 name=router.pppoe
add address=172.16.50.1 name=router.pppoe
add address=172.16.80.1 name=router.pppoe
add address=172.16.100.1 name=router.pppoe
/ip firewall nat
add action=masquerade chain=srcnat
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www disabled=yes
set ssh disabled=yes
set api disabled=yes
set api-ssl disabled=yes
/ppp secret
add name=1client password=12345678 profile="10 MBPS" service=pppoe
add name=2client password=12345678 profile="10 MBPS" service=pppoe
add name=3client password=12345678 profile="10 MBPS" service=pppoe
add name=4client password=12345678 profile="10 MBPS" service=pppoe
add name=5client password=12345678 profile="10 MBPS" service=pppoe
add name=6client password=12345678 profile="10 MBPS" service=pppoe
add name=8client password=12345678 profile="10 MBPS" service=pppoe
add name=9client password=12345678 profile="10 MBPS" service=pppoe
add name=10client password=12345678 profile="10 MBPS" service=pppoe
add name=11client password=12345678 profile="10 MBPS" service=pppoe
add name=12client password=12345678 profile="10 MBPS" service=pppoe
add name=13client password=12345678 profile="10 MBPS" service=pppoe
add name=14client password=12345678 profile="10 MBPS" service=pppoe
add name=15client password=12345678 profile="10 MBPS" service=pppoe
add name=16client password=12345678 profile="10 MBPS" service=pppoe
add name=17client password=12345678 profile="10 MBPS" service=pppoe
add name=18client password=12345678 profile="10 MBPS" service=pppoe
add name=19client password=12345678 profile="10 MBPS" service=pppoe
add name=20client password=12345678 profile="10 MBPS" service=pppoe
add name=21client password=12345678 profile="10 MBPS" service=pppoe
add name=22client password=12345678 profile="10 MBPS" service=pppoe
add name=23client password=12345678 profile="10 MBPS" service=pppoe
add name=24client password=12345678 profile="10 MBPS" service=pppoe
add name=25client password=12345678 profile="10 MBPS" service=pppoe
add name=26client password=12345678 profile="10 MBPS" service=pppoe
add name=27client password=12345678 profile="10 MBPS" service=pppoe
add name=28client password=12345678 profile="10 MBPS" service=pppoe
add name=29client password=12345678 profile="10 MBPS" service=pppoe
add name=30client password=12345678 profile="10 MBPS" service=pppoe
add name=31client password=12345678 profile="10 MBPS" service=pppoe
add name=32client password=12345678 profile="10 MBPS" service=pppoe
add name=33client password=12345678 profile="10 MBPS" service=pppoe
add name=1pisowifi password=12345678 profile="30 MBPS" service=pppoe
add name=2pisowifi password=12345678 profile="20 MBPS" service=pppoe
add name=3pisowifi password=12345678 profile="30 MBPS" service=pppoe
add name=4pisowifi password=12345678 profile="50 MBPS" service=pppoe
add name=5pisowifi password=12345678 profile="50 MBPS" service=pppoe
add name=client35 password=12345678 profile="10 MBPS" service=pppoe
add name=34client password=12345678 profile="20 MBPS" service=pppoe
add name=36client password=12345678 profile="10 MBPS" service=pppoe
add name=37client password=12345678 profile="10 MBPS" service=pppoe
add name=38client password=12345678 profile="10 MBPS" service=pppoe
add name=39client password=12345678 profile="10 MBPS" service=pppoe
add name=40client password=12345678 profile="10 MBPS" service=pppoe
add name=41client password=12345678 profile="10 MBPS" service=pppoe
add name=42client password=12345678 profile="10 MBPS" service=pppoe
add name=43client password=12345678 profile="10 MBPS" service=pppoe
add name=44client password=12345678 profile="10 MBPS" service=pppoe
add name=45client password=12345678 profile="15 MBPS" service=pppoe
add name=46client password=12345678 profile="10 MBPS" service=pppoe
add name=47client password=12345678 profile="10 MBPS" service=pppoe
add name=48client password=12345678 profile="10 MBPS" service=pppoe
add name=49client password=12345678 profile="10 MBPS" service=pppoe
add name=50client password=12345678 profile="10 MBPS" service=pppoe
add name=51client20 password=12345678 profile="10 MBPS" service=pppoe
add name=52client20 password=12345678 profile="10 MBPS" service=pppoe
add name=53client20 password=12345678 profile="10 MBPS" service=pppoe
add name=54client20 password=12345678 profile="10 MBPS" service=pppoe
add name=56client20 password=12345678 profile="10 MBPS" service=pppoe
add name=57client20 password=12345678 profile="10 MBPS" service=pppoe
add name=58client20 password=12345678 profile="10 MBPS" service=pppoe
add name=59client20 password=12345678 profile="10 MBPS" service=pppoe
add name=60client20 password=12345678 profile="10 MBPS" service=pppoe
add name=61client20 password=12345678 profile="10 MBPS" service=pppoe
add name=62client20 password=12345678 profile="10 MBPS" service=pppoe
add name=63client20 password=12345678 profile="10 MBPS" service=pppoe
add name=64client20 password=12345678 profile="10 MBPS" service=pppoe
add name=65client20 password=12345678 profile="10 MBPS" service=pppoe
add name=66client20 password=12345678 profile="20 MBPS" service=pppoe
add name=67client20 password=12345678 profile="10 MBPS" service=pppoe
add name=68client20 password=12345678 profile="10 MBPS" service=pppoe
add name=69client20 password=12345678 profile="10 MBPS" service=pppoe
add name=70client20 password=12345678 profile="10 MBPS" service=pppoe
add name=7client password=12345678 profile="10 MBPS" service=pppoe
add name=1piso20 password=12345678 profile="30 MBPS" service=pppoe
add name=2piso20 password=12345678 profile="30 MBPS" service=pppoe
add name=3piso20 password=12345678 profile="30 MBPS" service=pppoe
add name=4piso20 password=12345678 profile="20 MBPS" service=pppoe
add name=5piso20 password=12345678 profile="30 MBPS" service=pppoe
add name=6pisowifi password=12345678 profile="20 MBPS" service=pppoe
add name=7pisowifi password=12345678 profile="50 MBPS" service=pppoe
add name=8pisowifi password=12345678 profile="50 MBPS" service=pppoe
add name=9pisowifi password=12345678 profile="50 MBPS" service=pppoe
add name=10pisowifi password=12345678 profile="50 MBPS" service=pppoe
add name=55client20 password=12345678 profile="10 MBPS" service=pppoe
add name=71client password=12345678 profile="10 MBPS" service=pppoe
add name=72client password=12345678 profile="10 MBPS" service=pppoe
add name=73client password=12345678 profile="10 MBPS" service=pppoe
add name=74client password=12345678 profile="10 MBPS" service=pppoe
add name=76client password=12345678 profile="10 MBPS" service=pppoe
add name=77client password=12345678 profile="10 MBPS" service=pppoe
add name=78client password=12345678 profile="10 MBPS" service=pppoe
add name=79client password=12345678 profile="10 MBPS" service=pppoe
add name=80client password=12345678 profile="10 MBPS" service=pppoe
add name=81client20 password=12345678 profile="15 MBPS" service=pppoe
add name=90client20 password=12345678 profile="10 MBPS" service=pppoe
add name=82client20 password=12345678 profile="10 MBPS" service=pppoe
add name=83client20 password=12345678 profile="10 MBPS" service=pppoe
add name=84client20 password=12345678 profile="10 MBPS" service=pppoe
add name=85client20 password=12345678 profile="10 MBPS" service=pppoe
add name=91client password=12345678 profile="10 MBPS" service=pppoe
add name=92client password=12345678 profile="10 MBPS" service=pppoe
add name=86client20 password=12345678 profile="10 MBPS" service=pppoe
add name=93client password=12345678 profile="10 MBPS" service=pppoe
add name=test25 password=12345678 profile="20 MBPS" service=pppoe
add name=87client20 password=12345678 profile="10 MBPS" service=pppoe
add name=88client20 password=12345678 profile="10 MBPS" service=pppoe
add name=89client20 password=12345678 profile="10 MBPS" service=pppoe
add name=75client password=12345678 profile="10 MBPS" service=pppoe
add name=94client password=12345678 profile="10 MBPS" service=pppoe
add name=95client password=12345678 profile="25 MBPS" service=pppoe
add name=96client password=12345678 profile="10 MBPS" service=pppoe
add name=97client password=12345678 profile="10 MBPS" service=pppoe
add name=98client password=12345678 profile="10 MBPS" service=pppoe
add name=99client password=12345678 profile="10 MBPS" service=pppoe
add name=100client password=12345678 profile="30 MBPS" service=pppoe
add name=101client password=12345678 profile="10 MBPS" service=pppoe
add name=102client password=12345678 profile="25 MBPS" service=pppoe
add name=111client20 password=12345678 profile="10 MBPS" service=pppoe
add name=112client20 password=12345678 profile="10 MBPS" service=pppoe
add name=113client20 password=12345678 profile="10 MBPS" service=pppoe
add name=114client20 password=12345678 profile="10 MBPS" service=pppoe
add name=115client20 password=12345678 profile="10 MBPS" service=pppoe
add name=116client20 password=12345678 profile="25 MBPS" service=pppoe
add name=103client password=12345678 profile="10 MBPS" service=pppoe
add name=104client password=12345678 profile="10 MBPS" service=pppoe
add name=117client20 password=12345678 profile="10 MBPS" service=pppoe
/system clock
set time-zone-name=Asia/Manila
/system ntp client
set enabled=yes primary-ntp=121.58.193.100
/system package update
set channel=long-term
Hmmm … I see VLANs but then a bit further usage of switch port.
Not really best practice unless you know very well what you are doing … which I suppose is not your doing.
But from what I can see, those switch settings aren’t really doing anything (not my cup of tea).
Where is the VLAN part controlled then ?
I’d go already for this setting:
/interface detect-internet set detect-interface-list=all
Open terminal and use this command:
/interface detect-internet set detect-interface-list=none
The jury is still out wheter that “detect-internet” is actually a useful feature or not since most of the time it causes havoc and usually pretty unexpected.
Disable it.
IP pool ranges are another thing.
These overlap for a reason?
add name=“10 MBPS” ranges=172.16.10.2-172.16.10.254
add name=“15 MBPS” ranges=172.16.10.2-172.16.15.254
I also hope for your sake this router is behind another device acting as firewall since your device doesn’t really have one.
ANNNDDD … we’re still missing the part how that router gets an IP address and which routes are present towards the ISP modem.
Terminal
provide output from /ip route
and /ip address
A drawing with all connections etc. would help. A simple piece of paper can be enough.
anav
October 28, 2022, 1:31pm
8
Yes, not touching this one, with a 10 foot pole. THe first thing I would do is netinstall.
pe1chl
October 28, 2022, 2:12pm
9
Hello guys,
I am having problem with my Mikrotik RB4011, basically it started not automatically connecting to internet whenever power went out or my ISP lost its internet for a few seconds but come back eventually. But my Mikrotik would not auto connect to internet, l literally have to restart the mikrotik or disconnect and connect the Ethernet cable to the mikrotik from the ISP modem so in order for it connect to internet.
I am not going to dive into your complicated config, but I see it uses PPPoE and I can confirm I have the same problem with my router (coincidentally also a 4011) and PPPoE.
When the link goes down a short interval the PPPoE connection cannot come back up by itself.
The debate is if this is a MikroTik error, an error at the ISP, or a combination of both.
As I have learned that getting such errors fixed is a frustrating experience, and it does not happen too often here, I have worked around it using a script.
In the PPP profile used for the PPPoE connection I added an on-down script that disables the interface and enables a scheduled job running every 10 minutes.
In the scheduled job running every 10 minutes I enable the PPPoE connection and disable the scheduled job.
This solves the problem for me. As an extra you can make a scheduled job that runs a minute after boot and does the same thing (enable the PPPoE and disable the 10-minute job) to make the connection available sooner after a reboot.
It is a pity that it is required and it could probably be fixed by MikroTik, but the discussions with support are too difficult.
Hmmm … I see VLANs but then a bit further usage of switch port.
Not really best practice unless you know very well what you are doing … which I suppose is not your doing.
But from what I can see, those switch settings aren’t really doing anything (not my cup of tea).
Where is the VLAN part controlled then ?
I’d go already for this setting:
/interface detect-internet set detect-interface-list=all
Open terminal and use this command:
/interface detect-internet set detect-interface-list=none
The jury is still out wheter that “detect-internet” is actually a useful feature or not since most of the time it causes havoc and usually pretty unexpected.
Disable it.
IP pool ranges are another thing.
These overlap for a reason?
add name=“10 MBPS” ranges=172.16.10.2-172.16.10.254
add name=“15 MBPS” ranges=172.16.10.2-172.16.15.254
I also hope for your sake this router is behind another device acting as firewall since your device doesn’t really have one.
ANNNDDD … we’re still missing the part how that router gets an IP address and which routes are present towards the ISP modem.
Terminal
provide output from /ip route
and /ip address
A drawing with all connections etc. would help. A simple piece of paper can be enough.
Already disabled the detect internet.
For the IP Pool we set it up, so when clients do a speed test it shows a little bit higher speed than actual speed.
and no this router is not behind any device acting as its firewall,
Pls see attached for the drawing with all the connection and which port/pon is for VLAN 10,20,30,40. Also i dont know how to provide output /ip route and /ip address nor do i know how the router get its IP address hahaha
Hello guys,
I am having problem with my Mikrotik RB4011, basically it started not automatically connecting to internet whenever power went out or my ISP lost its internet for a few seconds but come back eventually. But my Mikrotik would not auto connect to internet, l literally have to restart the mikrotik or disconnect and connect the Ethernet cable to the mikrotik from the ISP modem so in order for it connect to internet.
I am not going to dive into your complicated config, but I see it uses PPPoE and I can confirm I have the same problem with my router (coincidentally also a 4011) and PPPoE.
When the link goes down a short interval the PPPoE connection cannot come back up by itself.
The debate is if this is a MikroTik error, an error at the ISP, or a combination of both.
As I have learned that getting such errors fixed is a frustrating experience, and it does not happen too often here, I have worked around it using a script.
In the PPP profile used for the PPPoE connection I added an on-down script that disables the interface and enables a scheduled job running every 10 minutes.
In the scheduled job running every 10 minutes I enable the PPPoE connection and disable the scheduled job.
This solves the problem for me. As an extra you can make a scheduled job that runs a minute after boot and does the same thing (enable the PPPoE and disable the 10-minute job) to make the connection available sooner after a reboot.
It is a pity that it is required and it could probably be fixed by MikroTik, but the discussions with support are too difficult.
Wow this sound doable and i have no idea what you talking about this just show how little i know with regards to mikrotik configuration.
Yes its getting pretty frustrating for me and my clients whom i promised stable internet connection.
Can you pls teach me how to do it, just like you did in order to solve this problem?
Hello guys,
I am having problem with my Mikrotik RB4011, basically it started not automatically connecting to internet whenever power went out or my ISP lost its internet for a few seconds but come back eventually. But my Mikrotik would not auto connect to internet, l literally have to restart the mikrotik or disconnect and connect the Ethernet cable to the mikrotik from the ISP modem so in order for it connect to internet.
I am not going to dive into your complicated config, but I see it uses PPPoE and I can confirm I have the same problem with my router (coincidentally also a 4011) and PPPoE.
When the link goes down a short interval the PPPoE connection cannot come back up by itself.
The debate is if this is a MikroTik error, an error at the ISP, or a combination of both.
As I have learned that getting such errors fixed is a frustrating experience, and it does not happen too often here, I have worked around it using a script.
In the PPP profile used for the PPPoE connection I added an on-down script that disables the interface and enables a scheduled job running every 10 minutes.
In the scheduled job running every 10 minutes I enable the PPPoE connection and disable the scheduled job.
This solves the problem for me. As an extra you can make a scheduled job that runs a minute after boot and does the same thing (enable the PPPoE and disable the 10-minute job) to make the connection available sooner after a reboot.
It is a pity that it is required and it could probably be fixed by MikroTik, but the discussions with support are too difficult.
Hey man, just wanna tell you that my RB4011 did not auto connect again, It happened just an hour ago when im home and an hour away from the server. Would you pls guide me how did you do your work around. Would really appreciate it right now cause i am my wits end.