Community discussions

MikroTik App
 
LTG
just joined
Topic Author
Posts: 2
Joined: Wed Aug 03, 2022 9:53 am

Mikrotik stops being accessible until reboot

Wed Aug 03, 2022 10:37 am

Hi, i am new to this forum and mikrotiks
I recently got a used mikrotik hap light and after a few hours it will stop being accessible (cant see it in winbox and cant ping it) from the "wan" port as well as the VMs that are behind it. If i use a computer that is directly connected to it i can access the mikrotik as well as the internet normally. When i reboot it starts working again.

How i set it up
  1. Firstly i reset the device and selected no default configuration
  • Used the quick set option (CPE) and connected to the ISP modem wirelessly
  • Selected Bridge mode and set static ip
  • Updated RouterOS to latest version
My network setup
I used the hap light to connect wirelessly to my ISP modem (5-10 meters away with just a plasterboard wall in between, signal reception is good) and provide network to a server (R710 running multiple VMs), a laptop and a switch (managed switch but without dhcp and currently nothing connected on it).

My config


# aug/03/2022 10:30:43 by RouterOS 6.49.6
# software id = 5HMN-ST65
#
# model = RB941-2nD
# serial number = <CENSORED>
/interface bridge
add name=bridge1
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-XX \
    comment=WAN country=greece disabled=no mode=station-pseudobridge ssid=\
    HOL_LT wireless-protocol=nv2-nstreme-802.11
/interface ethernet
set [ find default-name=ether1 ] comment="SRW 2048 SWITCH"
set [ find default-name=ether2 ] comment="R710 - IDRAC"
set [ find default-name=ether3 ] comment="R710 - PROXMOX"
set [ find default-name=ether4 ] comment="T420 - LAPTOP"
/interface wireless manual-tx-power-table
set wlan1 comment=WAN
/interface wireless nstreme
set wlan1 comment=WAN
/interface list
add name=WAN
add name=LAN
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa2-psk mode=dynamic-keys \
    supplicant-identity=MikroTik wpa-pre-shared-key="REDUCTED" \
    wpa2-pre-shared-key="REDUCTED"
/interface bridge filter
add action=drop chain=input dst-port=68 in-interface=!wlan1 ip-protocol=udp \
    mac-protocol=ip
/interface bridge port
add bridge=bridge1 interface=wlan1
add bridge=bridge1 interface=ether1
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=ether4
/interface list member
add interface=wlan1 list=WAN
add list=LAN
add interface=ether1 list=LAN
add interface=ether2 list=LAN
add interface=ether3 list=LAN
add interface=ether4 list=LAN
/ip address
add address=192.168.1.100/24 interface=ether1 network=192.168.1.0
/ip cloud
set ddns-enabled=yes ddns-update-interval=1m
/ip dhcp-client
add interface=bridge1
/ip dns
set servers=1.1.1.1,8.8.8.8,8.8.4.4
/ip route
add distance=1 gateway=192.168.1.1
/system clock
set time-zone-name=Europe/Athens
/system identity
set name="CPE MikroTik"
/system leds
add interface=wlan1 leds=user-led type=wireless-status
I have removed only the wifi password.
I apologise if the formating or grammar is wrong, any help is appreciated.
Thank you in advance
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Mikrotik stops being accessible until reboot

Wed Aug 03, 2022 12:06 pm

If the config, except the password, and the censored serial number, is exacly that, paste this on terminal:
/interface bridge
set bridge1 name=bridge protocol-mode=none
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-g/n wireless-protocol=802.11
/interface wireless security-profiles
set [ find default=yes ] wpa-pre-shared-key=""
/interface list member
remove [find]
/interface list
remove [find]
/ip address
set [find where address="192.168.1.100/24"] interface=bridge
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Mikrotik stops being accessible until reboot

Wed Aug 03, 2022 12:40 pm

If you do not use MikroTik devices on both side, this can cause problems, because station-pseudobridge do not work the same on all productors.
/interface wireless
set [ find default-name=wlan1 ] mode=station-pseudobridge

Whit this you want filter dhcp because you have two dhcp server on same network???
/interface bridge filter
add action=drop chain=input dst-port=68 in-interface=!wlan1 ip-protocol=udp mac-protocol=ip

You have problem every x minutes, where x minutes are the dhcp lease time of main router?
If yes, probably all stop working when dhcp lease expire???
 
LTG
just joined
Topic Author
Posts: 2
Joined: Wed Aug 03, 2022 9:53 am

Re: Mikrotik stops being accessible until reboot

Wed Aug 03, 2022 12:49 pm

I tried applying the suggested commands, i added the wifi password in the wpa-pre-shared-key field but it would not connect to the wifi afterwards so i restored it to the previous settings. What am i doing wrong ? i copy pasted the commands one by one in the terminal, should i reset first ?

Thanks

edit: just noticed the second response, i only have 1 dhcp server from my isp modem/router i checked the lease time it is set to 1 day. The issue seems to occur every few hours.

Who is online

Users browsing this forum: tangent and 33 guests