Community discussions

MikroTik App
 
Knocik
just joined
Topic Author
Posts: 3
Joined: Sun Apr 19, 2020 9:24 pm

Is it possible to quickly roam between cAPs?

Sun Nov 28, 2021 1:05 am

Hi. I bought 2 x cAP around 2 years ago and it was run on some LTE (crap one) network, roaming wasn't our biggest problem - the bandwidth was.
Recently, we got a chance to connect fiber and with a minimum option of 200mbits, roaming became a noticeable problem. My wife is not happy to say gently. When she moves around the house then whatsapp calls for example disconnect for long enough that the call is dropped.
I spent several evenings trying to find the optimum solution and always got back to almost 'default' home AP dual.
What can I do to try to improve it? The router is provided by ISP and it is some Halny model. If I get a MT router and set CAPsMAN on it, will it allow better roaming?

My config ATM - passwords removed. Both APs have almost the same settings as only IP range is different. The other one has 192.168.88.2-192.168.88.99 from memory.

# nov/27/2021 23:59:08 by RouterOS 6.47.8
# software id = ZC95-781T
#
# model = RBcAPGi-5acD2nD
# serial number = B9320B58F36D
/interface bridge
add admin-mac=C4:AD:34:15:5A:33 auto-mac=no comment=defconf name=bridge
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-g/n basic-rates-a/g=12Mbps \
basic-rates-b="" country=poland disabled=no distance=indoors installation=\
indoor mode=ap-bridge name="WiFi 2.4" rate-set=configured ssid=JKJLS \
station-roaming=enabled supported-rates-a/g=\
12Mbps,18Mbps,24Mbps,36Mbps,48Mbps,54Mbps supported-rates-b="" \
wireless-protocol=802.11 wps-mode=disabled
set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=20/40mhz-XX \
country=poland disabled=no distance=indoors installation=indoor mode=\
ap-bridge name="WiFi 5.0" ssid=JKJLS station-roaming=enabled \
wireless-protocol=802.11 wps-mode=disabled
/interface ethernet
set [ find default-name=ether1 ] name="Eth router"
set [ find default-name=ether2 ] disabled=yes
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless channels
add band=2ghz-b/g/n frequency=2412 name=ch1 width=20
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa2-psk disable-pmkid=yes \
eap-methods="" mode=dynamic-keys supplicant-identity=MikroTik \
wpa-pre-shared-key=XXXXXXXXXXXXXXXXX wpa2-pre-shared-key=XXXXXXXXXXXXXXXXXXX
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
add name=dhcp ranges=192.168.88.100-192.168.88.254
/ip dhcp-server
add address-pool=dhcp interface=bridge name=defconf
add address-pool=dhcp disabled=no interface=bridge name=dhcp1
/interface bridge port
add bridge=bridge comment=defconf interface="WiFi 2.4"
add bridge=bridge interface=ether2
add bridge=bridge interface="WiFi 5.0"
add bridge=bridge disabled=yes interface="Eth router"
/ip neighbor discovery-settings
set discover-interface-list=!dynamic
/interface detect-internet
set detect-interface-list=all lan-interface-list=all
/interface list member
add comment=defconf interface="Eth router" list=WAN
add interface=ether2 list=LAN
add interface="WiFi 5.0" list=LAN
add interface="WiFi 2.4" list=LAN
add interface=bridge list=LAN
/ip address
add address=192.168.88.5/24 interface=ether2 network=192.168.88.0
/ip dhcp-client
add comment=defconf disabled=no interface="Eth router"
/ip dhcp-server network
add address=192.168.1.0/24 comment=defconf gateway=192.168.1.3 netmask=24
add address=192.168.88.0/24 gateway=192.168.88.5 netmask=24
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.88.5 comment=defconf name=router.lan
/ip firewall filter
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" ipsec-policy=\
out,none out-interface-list=WAN
/ip route
add disabled=yes distance=1 gateway=192.168.1.1
/system clock
set time-zone-name=Europe/Warsaw
/system identity
set name="MikroTik"
/system routerboard mode-button
set enabled=yes on-event=dark-mode
/system scheduler
add interval=1d name=schedule1 policy=reboot start-date=dec/12/2020 start-time=\
04:00:00
/system script
add comment=defconf dont-require-permissions=no name=dark-mode owner=*sys \
policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
source="\r\
\n :if ([system leds settings get all-leds-off] = \"never\") do={\r\
\n /system leds settings set all-leds-off=immediate \r\
\n } else={\r\
\n /system leds settings set all-leds-off=never \r\
\n }\r\
\n "
 
User avatar
bpwl
Forum Guru
Forum Guru
Posts: 2978
Joined: Mon Apr 08, 2019 1:16 am

Re: Is it possible to quickly roam between cAPs?

Sun Nov 28, 2021 1:37 am

Both APs have almost the same settings as only IP range is different.
If your IP address has to change, then this are different sessions to your main router NAT service and a different port to the Internet. The session has to be dropped and a new one has to be created, I see no other possibility. I know browser sessions seem to survive IP address changes because they repeat the HTTP(S) request when needed and those sessions are 'connectionless' by design. Most other TCP sessions just die.

If you use multiple AP, with roaming clients, make sure that the session can stay alive. This means at least the same IP address for the client. So the DHCP server should be a common function to all AP's.

There can be no WAN port on all AP. Only the Internet facing router should have a WAN interface with NAT. The other AP's should be part of the same L2 network, having the same subnet everywhere.
It is mostly just one large bridged network. (That one network could be virtual through PPPoE, CAPsMAN, or other VPN/tunnel means, but why make it complicated?)

This is only step one for "quickly roaming". The "quickly" handover between AP might still need some extra tuning.

PS: you will NOT find the bridged-AP setup in Quickset. You will have to tweak the config yourselves.
e.g. : add the uplink "WAN" ethernet interface to the bridge (that makes it a LAN interface and eliminates firewall and NAT rules), and disable the DHCP server on the AP bridge. (the common DHCP lease comes from the central router). Actually your AP's are only bridging ethernet interfaces to WLAN interfaces.

PS PS: a reboot every 24 hours? You have been working with other brands too long. A MT needs a reboot .... something like once a year..

Who is online

Users browsing this forum: Amazon [Bot], GoogleOther [Bot], onnyloh and 38 guests