Wireless problem with Apple devices

I bought a new device and notice the outages and subsequent connection within 5 sec. It happens several times a day. I used Android and Win before and I didn’t have such problems.

jul/11/2020 14:35:01 by RouterOS 6.47.1

software id = B29H-V39N

model = RBD52G-5HacD2HnD

serial number = A6470AC5D5B3

/interface bridge
add name=bridge1
/interface list
add name=WAN
add name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
add authentication-types=wpa2-psk eap-methods=“” management-protection=allowed mode=dynamic-keys name=profile1 supplicant-identity=“” wpa-pre-shared-key=ELL2019dan wpa2-pre-shared-key=ELL2019dan
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n country=“czech republic” disabled=no distance=indoors frequency=auto installation=indoor max-station-count=254 mode=ap-bridge security-profile=profile1
ssid=KT_HOME station-roaming=enabled wireless-protocol=802.11 wmm-support=enabled wps-mode=disabled
set [ find default-name=wlan2 ] band=5ghz-onlyac channel-width=20/40/80mhz-Ceee comment=5Ghz country=“czech republic” disabled=no distance=indoors frequency=auto installation=indoor
max-station-count=254 mode=ap-bridge security-profile=profile1 ssid=KT_HOME_5G station-roaming=enabled wireless-protocol=802.11 wmm-support=enabled wps-mode=disabled
/interface wireless manual-tx-power-table
set wlan2 comment=5Ghz
/interface wireless nstreme
set wlan2 comment=5Ghz
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
add name=dhcp ranges=192.168.1.2-192.168.1.100
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge1 name=dhcp1
/user group
set full policy=local,telnet,ssh,ftp,reboot,read,write,policy,test,winbox,password,web,sniff,sensitive,api,romon,dude,tikapp
/caps-man manager
set enabled=yes
/interface bridge port
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=ether4
add bridge=bridge1 interface=ether5
add bridge=bridge1 interface=wlan1
add bridge=bridge1 interface=wlan2
/interface list member
add interface=ether1 list=WAN
add interface=bridge1 list=LAN
/ip address
add address=192.168.1.1/24 interface=ether2 network=192.168.1.0
add address=172.16.226.147/22 interface=ether1 network=172.16.224.0
/ip arp
add address=192.168.1.2 interface=bridge1 mac-address=44:1C:A8:52:02:A0
add address=192.168.1.3 interface=bridge1 mac-address=F8:FF:C2:45:7B:B8
add address=192.168.1.4 interface=bridge1 mac-address=D0:AE:EC:51:E4:A3
add address=192.168.1.9 interface=bridge1 mac-address=88:A9:B7:65:BF:B8
/ip dhcp-server lease
add address=192.168.1.2 client-id=1:44:1c:a8:52:2:a0 comment=“Tisk\E1rna Brother” mac-address=44:1C:A8:52:02:A0 server=dhcp1
add address=192.168.1.3 client-id=1:f8:ff:c2:45:7b:b8 comment=“MacBook Pro” mac-address=F8:FF:C2:45:7B:B8 server=dhcp1
add address=192.168.1.4 client-id=1:d0:ae:ec:51:e4:a3 comment=SharpTV mac-address=D0:AE:EC:51:E4:A3 server=dhcp1
add address=192.168.1.9 client-id=1:88:a9:b7:65:bf:b8 comment=iPhone mac-address=88:A9:B7:65:BF:B8 server=dhcp1
/ip dhcp-server network
add address=192.168.1.0/24 caps-manager=192.168.1.1 dns-server=178.23.218.9,172.16.10.1,1.1.1.1 gateway=192.168.1.1
/ip dns
set servers=178.23.218.9,172.16.10.1,1.1.1.1
/ip firewall filter
add action=accept chain=forward in-interface=ether1 protocol=icmp
add action=accept chain=forward dst-port=80 in-interface=ether1 protocol=tcp
add action=accept chain=forward dst-port=443 in-interface=ether1 protocol=tcp
add action=accept chain=forward connection-state=established in-interface=ether1
add action=accept chain=forward connection-state=related in-interface=ether1
add action=accept chain=forward out-interface=ether1
add action=drop chain=forward in-interface=ether1
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1
/ip route
add distance=1 gateway=172.16.224.1
/ip service
set telnet disabled=yes
set ftp disabled=yes
set ssh disabled=yes
set api disabled=yes
set api-ssl disabled=yes
/ip upnp interfaces
add interface=bridge1 type=internal
add interface=ether1 type=external
/system clock
set time-zone-name=Europe/Prague
/system identity
set name=MainRouter
/system ntp client
set enabled=yes primary-ntp=217.31.202.100 secondary-ntp=195.113.144.201

What is in the wifi registration, and what is in the log? You might want to add system->logging->topic=wireless for more detailed information.
Has the DHCP lease been given out (bound)?

In the log is (for example):



I don’t know if the connection was lost at this time, but in the first picture there are outages around 23:00, when the device is in static place. The signal is weak, but outages also occur near the router.

I do not understand the second question. I am a beginner :slight_smile:

Apple devices don’t like symbols in the password. Change the wifi password to just letters and numbers and it should work fine.

Thanks, I try it :slight_smile:

the problem still persists

AFAIK this is normal behavior from apple - they disconnect to save the power, when display is off (or device is locked) and they connect on regular basis to allow apps get updates/messages/notifications
https://discussions.apple.com/thread/250285673
https://apple.stackexchange.com/questions/218354/how-to-prevent-iphone-from-dropping-wifi-connection-when-it-goes-to-sleep
and many many others… if you google “apple wifi disconnects with display off” you will see how widespread it is.

But MacBook Pro is disconnecting with display ON :slight_smile:. iPhone only with display OFF.

About the second question (DHCP) : look in the DHCP server on the MKT, i the tab Leases. Has there been an IP address given out (bound) to the Aplle device, or is it just “offered” and not “bound”?


In the configuration:. IP address should be given to the bridge1 interface (master) , not to ether2 (slave)

/ip address
add address=192.168.1.1/24 interface=ether2 network=192.168.1.0

make it

/ip address
add address=192.168.1.1/24 interface=bridge1 network=192.168.1.0

I repaired it :slight_smile:. And (MikroTik says BOUND):

I suggest you to increase “Lease time” to 30
Apple devices doesn’t like low “Lease time”.
PS. For home i make 3 days

I try it :slight_smile:.

one more recommendation

/interface wireless set preamble-mode=long

Some more recommendations:

  • use hide-sensitive when exporting
  • place configs in code tags: [ code] and [ /code] (without the space)
  • only use WPA2/AES

I set the lease time to higher value and now is all ok.

What effect does this have for connecting to apple devices?
What effect does this have for other devices that are not apple?

(PS My issues also seemed to be lease and DNS related, changed to PEER DNS and so far resolved but too early to tell since it seems spurious without rhyme or reason).