Community discussions

MikroTik App
 
ianngrh
newbie
Topic Author
Posts: 26
Joined: Thu Aug 30, 2018 6:53 am

Roaming Hotspot Between Vlan

Wed Oct 31, 2018 11:56 am

Hi all....
I need some help regarding hotspot Mikrotik.
I have router which provide hotspot server in different vlan with same SSID. Is it possible to roaming to another AP with different vlan without re-login or showing any popup or need to open browser first?

Note : I use radius and already using Mac Authentication & PAP authentication
example.jpg
The configuration is like this

/ip address
	add address=192.168.101.1/24 interface=vlan101
	add address=192.168.102.1/24 interface=vlan102

/ip pool 
	add name=pool-101 ranges=192.168.101.11-192.168.101.250
	add name=pool-102 ranges=192.168.102.11-192.168.102.250
	
/ip hotspot
add address-pool=pool-101 disabled=no interface=101 name=HS-101
/ip hotspot profile
set [ find default=yes ] dns-name=portal.hotspot-service.net hotspot-address=\
    192.168.101.1 login-by=mac,http-pap mac-auth-mode=\
    mac-as-username-and-password name=hsprof-101 use-radius=yes
add dns-name=portal.hotspot-service.net hotspot-address=192.168.102.1 \
	login-by=mac,http-pap mac-auth-mode=mac-as-username-and-password \
	name=hsprof-102 use-radius=yes
/ip hotspot
add address-pool=pool-102 disabled=no interface=vlan102 name=hs-102 \
	profile=hsprof-102
/ip hotspot user profile
set [ find default=yes ] keepalive-timeout=30m shared-users=unlimited

You do not have the required permissions to view the files attached to this post.
 
ianngrh
newbie
Topic Author
Posts: 26
Joined: Thu Aug 30, 2018 6:53 am

Re: Roaming Hotspot Between Vlan

Thu Nov 08, 2018 5:06 am

Anybody can help?
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 13135
Joined: Thu Mar 03, 2016 10:23 pm

Re: Roaming Hotspot Between Vlan  [SOLVED]

Thu Nov 08, 2018 9:11 am

I might be wrong, but my guess is that in your scenario roaming won't work nicely.

The problem is this: when client roams to another AP with same SSID, it will perform disassociation from original AP and re-association to the new AP. But due to process being "smooth" (no out-of-service period of time) it will assume that L3 details (DHCP lease in particular) are still valid. Which is fine if both APs are part of same L2 network with DHCP being served either by same server (or coordinated servers). In your case, that's not the case, both APs are not part of same L2 network and client would definitely have to initialize re-lease of IP address. Which would happen if client was out of coverage for certain time period (e.g. several seconds), but that technically would no longer be WiFi roaming.
 
ianngrh
newbie
Topic Author
Posts: 26
Joined: Thu Aug 30, 2018 6:53 am

Re: Roaming Hotspot Between Vlan

Fri Nov 09, 2018 11:19 am

So to put it simply if I want to make the roaming very smooth, I have to use 1 vlan only for 1 ssid.

Thank you for information @mkx. It is very helpful for me