Community discussions

MikroTik App
 
monkmartinez
just joined
Posts: 7
Joined: Tue May 17, 2016 3:03 am

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Tue May 17, 2016 9:00 pm

I tried this script yesterday on a hAP-Lite. Obviously the 5GHz part didn't work as the radio is only 2GHz but other than that it worked ok.

The only issue I have is that the virtual ap stops working the the wan ap client is not connected. Is there a way to keep the inside ap operational so that registered devices can still communicate with each other when the wan ap client is down?
Hi Cutty!

What did you change or modify to use it with hAP-lite? Truth be told, I would really like to know what is going on in the script as I am new to ROS. That is, a step by step to see what exactly I am configuring.

I have a hAP lite connected to an AP, but it is in station-pseudobridge mode AKA as a client. I used this guide: http://wiki.mikrotik.com/wiki/Connect_t ... ss_Network

If I could get a virtual AP working from here... life would be good!
 
sombragris
just joined
Posts: 3
Joined: Thu Oct 01, 2015 9:58 pm

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Sat May 28, 2016 12:56 am

monkmartinez. What's your firmware? With the latest firmware or 6.35 up you may set the Virtual AP with lower versions it's not possible... but I have the same problem... Once que WAN WiFi is down all the internel WiFi client connected to the AP fall down and the network is undiscoverable :(

I wished they could still communicate and use a flalbac 3G Dongle while it is down.
 
monkmartinez
just joined
Posts: 7
Joined: Tue May 17, 2016 3:03 am

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Mon May 30, 2016 7:38 pm

monkmartinez. What's your firmware?
6.35.2 right now.

I am going to wipe it and try with the 6.36rc20 from the downloads.
With the latest firmware or 6.35 up you may set the Virtual AP with lower versions it's not possible... but I have the same problem... Once que WAN WiFi is down all the internel WiFi client connected to the AP fall down and the network is undiscoverable :(

I wished they could still communicate and use a flalbac 3G Dongle while it is down.
Are you using the hAP lite? I am beginning to think it is not possible with the RB941-2nD-TC router. OR there is a bug somewhere. The part that is frustrating is that cheap "travel routers" can do this out of the box.
 
mtedo
just joined
Posts: 13
Joined: Wed Jun 01, 2016 4:51 pm

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Wed Jun 01, 2016 4:57 pm

Once que WAN WiFi is down all the internel WiFi client connected to the AP fall down and the network is undiscoverable.
I'm running the wireless-rep package on my hAP-lite. What I did (unsure if this is "right") was set the radio witless interface to ap bridge with my LAN network, then created a virtual ap in station mode to connect to another wifi network (as a WAN). From there, I can NAT out the virtual station from my LAN wifi. And since its on the radio itself (not virtual) it'll always be up, which makes it easier when changing WAN networks.
 
robertEIT
Member Candidate
Member Candidate
Posts: 112
Joined: Tue Sep 08, 2015 6:16 pm

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Mon Jun 20, 2016 2:43 pm

Wow, I was looking forward to this feature in RouterOS for some time now!

I will try it ahead on a hAP Lite since I have some free wireless networks near my home.
 
fundix
just joined
Posts: 3
Joined: Thu Sep 08, 2016 5:07 pm

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Thu Sep 08, 2016 5:10 pm

Hi You need install wireless-rep package to the Mikrotik. http://www.mikrotik.com/download Extra packages, unzip and copy wireless-rep package over ftp to the mikrotik. Then reboot and voala, Virtual AP came to the light. Now you set wlan1 to the station, create virtual, set as AP bridge etc. (I added wlan2 to the bridge and now working all fine)
 
robertEIT
Member Candidate
Member Candidate
Posts: 112
Joined: Tue Sep 08, 2015 6:16 pm

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Thu Sep 08, 2016 6:10 pm

Hi You need install wireless-rep package to the Mikrotik. http://www.mikrotik.com/download Extra packages, unzip and copy wireless-rep package over ftp to the mikrotik. Then reboot and voala, Virtual AP came to the light. Now you set wlan1 to the station, create virtual, set as AP bridge etc. (I added wlan2 to the bridge and now working all fine)
Hi,
Could you please post your working config? I'm confused a bit about how to bridge and assign IPs.

So wlan1 set to station, this connects to an existing wifi network, let's say "free wifi on the street".

Wlan2 (virtual AP) is a normal "ap bridge: type, this should be in a say "bridge1" with eth ports? Do I have to set an IP and a subnet to brdige1, DHCP server, OR it everything IP, DNS, Mask related stuff is taken from the "free wifi on the street" ap?
 
DoctorEvo
just joined
Posts: 2
Joined: Sun Sep 18, 2016 4:49 am

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Sun Sep 18, 2016 5:44 am

I'm also having issues with this. I'm using a MikroTik metal which only has a single radio. My config is below. The problem I have is when I boot up the metal away from the configured ExternalSSID it will not broadcast my internal SSID. If I flip the WLAN1 and WLAN2 (virtual) then I broadcast my internal SSID but never connect to the external SSID.

If I boot up the router in range of the configured External SSID it works great and I can even leave the area and return and it will reconnect with the internal SSID functioning.

Anyone have any ideas? I can promise a starbucks gift card :D
# sep/17/2016 15:15:16 by RouterOS 6.36.3
# software id = 5L35-NFEF
#
/interface bridge
add name=bridge1-LAN
/interface ethernet
set [ find default-name=ether1 ] name=ether1-LAN
/interface wireless security-profiles
add authentication-types=wpa2-psk management-protection=allowed mode=\
    dynamic-keys name=External wpa2-pre-shared-key=ExternalPW
add authentication-types=wpa2-psk management-protection=allowed mode=\
    dynamic-keys name=Internal wpa2-pre-shared-key=InternalPW
/interface wireless
set [ find default-name=wlan1 ] band=5ghz-a/n/ac channel-width=20/40mhz-Ce \
    disabled=no frequency=auto mode=station-pseudobridge name=wlan1-WAN \
    security-profile=External ssid=ExternalSSID
add disabled=no mac-address=E6:8D:8C:F9:21:FB master-interface=wlan1-WAN \
    mode=ap-bridge name=wlan2-LAN security-profile=Internal ssid=InternalSSID \
    wds-default-bridge=bridge1-LAN
/ip neighbor discovery
set wlan1-WAN discover=no
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
add name=default-dhcp ranges=192.168.88.10-192.168.88.254
/ip dhcp-server
add address-pool=default-dhcp disabled=no interface=bridge1-LAN name=defconf
/interface bridge port
add bridge=bridge1-LAN interface=ether1-LAN
add bridge=bridge1-LAN interface=wlan2-LAN
/ip address
add address=192.168.88.1/24 comment=defconf interface=ether1-LAN network=\
    192.168.88.0
/ip dhcp-client
add comment=defconf dhcp-options=hostname,clientid disabled=no interface=\
    wlan1-WAN
/ip dhcp-server network
add address=192.168.88.0/24 comment=defconf gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.88.1 name=router
/ip firewall filter
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment="defconf: accept establieshed,related" \
    connection-state=established,related
add action=drop chain=input comment="defconf: drop all from WAN" \
    in-interface=wlan1-WAN
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
    connection-state=established,related
add action=accept chain=forward comment="defconf: accept established,related" \
    connection-state=established,related
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=wlan1-WAN
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" \
    out-interface=wlan1-WAN
/ip upnp interfaces
add interface=bridge1-LAN type=external
/system clock
set time-zone-name=America/Chicago
/system routerboard settings
set cpu-frequency=720MHz protected-routerboot=disabled
/tool mac-server
set [ find default=yes ] disabled=yes
add interface=ether1-LAN
/tool mac-server mac-winbox
set [ find default=yes ] disabled=yes
add interface=ether1-LAN
 
DoctorEvo
just joined
Posts: 2
Joined: Sun Sep 18, 2016 4:49 am

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Wed Sep 21, 2016 2:07 am

So the problem I've found with the WLAN1 being the Internal AP and WLAN2 being the external connection is that the channel settings and frequency of WLAN1 and WLAN2's designated BSSID must match exactly.

I would much rather have WLAN1 as my external connection to automatically select a channel to match it's targeted SSID but in that case the internal AP will never launch because the External connection, until created, will never select a channel it seems.

Anyone find a workaround for this?
 
Rass05
just joined
Posts: 1
Joined: Sun Dec 18, 2016 8:29 am

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Sun Dec 18, 2016 8:51 am

Hi guys, I'm very interested in this great discussion.
I have a project for a university with a campus of 2km, if you could please advise me I would thank you guys.
  The idea is to provide the internet to each mobile device within this range on the same network and monetize this access.
that the customer always have access to both 200 mtrs and 2km with his cell phone or pc. it could?
Thanks for the help.

What devices do boys recommend me?
A powerful omnidirectional antenna with Hap Lite for this proyect

I am very interested in the world of mikroTik
I studied cisco networks but I am new to the world of wisp I would like to learn more so I can buy these devices.
 
yottabit
Member Candidate
Member Candidate
Topic Author
Posts: 198
Joined: Thu Feb 21, 2013 5:56 am

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Sun Jan 15, 2017 1:21 am

Updated my script to reflect the new RouterOS version requirements.

https://docs.google.com/document/d/1gdy ... Fv6aU/edit
 
micromaxi
newbie
Posts: 43
Joined: Fri Feb 06, 2015 10:32 am

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Fri Oct 06, 2017 10:00 pm

Awesome just bought a MikroTik RouterBOARD 952Ui-5ac2nD hAP ac lite to achieve the same result when travelling.

Will follow this thread and supply info on my succes.
 
micromaxi
newbie
Posts: 43
Joined: Fri Feb 06, 2015 10:32 am

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Wed Nov 22, 2017 10:53 am

Using it for quite some weeks now. It is working great, havent had any problems in hotels to connect.
Also created a dedicated vpn tunnel home so i cant watch tv on my tablet (which is blocked by the provider when you are not on their network/country)
 
BusinessTux
just joined
Posts: 4
Joined: Sun Dec 17, 2017 4:07 pm

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Mon Dec 25, 2017 4:29 pm

Hi everybody,

today I heavily studied this thread to configure a RBmAP2nD as traveling wlan router. Thanks to all contributors and especially to yottabit for his google doc with the export. With this lines I could adapt it to the RBmAP2nD with only one wireless antenna.

Now I've only the problem described here:
The only issue I have is that the virtual ap stops working the the wan ap client is not connected. Is there a way to keep the inside ap operational so that registered devices can still communicate with each other when the wan ap client is down?
Is there a solution for this too? Because how should I change the external WLAN credentials in a hotel, when I have only WLAN devices (Phone, Tablet)? The internal WLAN will start only, when external WLAN connection is etablished. Do I have to forgot something?

Thanks
Ulf
 
Rikar2
just joined
Posts: 2
Joined: Wed Dec 27, 2017 5:12 pm

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Wed Dec 27, 2017 5:31 pm

friends I have a stx-lite5 connected to an AP, it is possible to make several connections to the AP with the same mikrotik?, please I need if someone can help me with my question
 
yottabit
Member Candidate
Member Candidate
Topic Author
Posts: 198
Joined: Thu Feb 21, 2013 5:56 am

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Sat Jan 13, 2018 7:31 pm

Hi everybody,

today I heavily studied this thread to configure a RBmAP2nD as traveling wlan router. Thanks to all contributors and especially to yottabit for his google doc with the export. With this lines I could adapt it to the RBmAP2nD with only one wireless antenna.

Now I've only the problem described here:
The only issue I have is that the virtual ap stops working the the wan ap client is not connected. Is there a way to keep the inside ap operational so that registered devices can still communicate with each other when the wan ap client is down?
Is there a solution for this too? Because how should I change the external WLAN credentials in a hotel, when I have only WLAN devices (Phone, Tablet)? The internal WLAN will start only, when external WLAN connection is etablished. Do I have to forgot something?

Thanks
Ulf
You can always connect via wired interface for reconfiguration. See the following newer thread where I discuss this:

viewtopic.php?f=13&t=129398

Or if you have a dual radio device you can keep one configured in AP mode only (no station mode), and connect via that AP.

Sent from my Pixel XL using Tapatalk


 
micromaxi
newbie
Posts: 43
Joined: Fri Feb 06, 2015 10:32 am

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Sat Jan 27, 2018 12:06 pm

@yottabit just a friendly question: would you happen to know whether i could safely update to the new bridge config firmware 6.41? Currently i'm travelling and need a working one, but this update also irons out some nasty bugs.
 
yottabit
Member Candidate
Member Candidate
Topic Author
Posts: 198
Joined: Thu Feb 21, 2013 5:56 am

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Sat Jan 27, 2018 4:42 pm

I've upgraded all my Routerboards without any problems.

I suggest doing a backup first of course, in case something goes wrong and you need to revert.
 
User avatar
deadManN
Frequent Visitor
Frequent Visitor
Posts: 67
Joined: Thu Jan 21, 2016 9:18 am

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Wed Dec 04, 2019 10:34 am

I looked for this before and now again, and i'm disappointed that my router own two individual antenna, but i can't configure two separate (AP / Station) at same time...

i want to carry the hAP lite on my bag while traveling connecting it to a power bank... and receive signal from portable WiFi-AP, and then do all routing and VPNs and etc, and then connect using laptop or mobile to the hAP...
Also on work, i want to config it so, at my work place, it connect to company WiFi's instead and do the same routing...
Also as we have at least 7 active separate WiFi based network, which I use one the three, i wished to configure load balancing if possible to be client of multiple network...
 
User avatar
deadManN
Frequent Visitor
Frequent Visitor
Posts: 67
Joined: Thu Jan 21, 2016 9:18 am

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Mon Dec 05, 2022 6:36 pm

I looked for this before and now again, and i'm disappointed that my router own two individual antenna, but i can't configure two separate (AP / Station) at same time...

i want to carry the hAP lite on my bag while traveling connecting it to a power bank... and receive signal from portable WiFi-AP, and then do all routing and VPNs and etc, and then connect using laptop or mobile to the hAP...
Also on work, i want to config it so, at my work place, it connect to company WiFi's instead and do the same routing...
Also as we have at least 7 active separate WiFi based network, which I use one the three, i wished to configure load balancing if possible to be client of multiple network...
I Bought an `hAP ac3`, recent version of Router OS now is 7.6, and with this scenario still have no luck...
Screenshot 2022-12-05 200048.jpg
You do not have the required permissions to view the files attached to this post.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 10706
Joined: Thu Mar 03, 2016 10:23 pm

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Mon Dec 05, 2022 7:21 pm

Remember that slave interfaces share same radio with master interface. And only master interface can influence on some of crucial radio parameters, such as frequency selection.

Meaning that there are generally two possibilities to make such scenario work:
  1. configure master interface to run in mode=station(-bridge) and configure APs on slave interfaces.
  2. configure master interface with statically set frequency (matching upstream AP frequency). In this case the mode=station(-bridge) can run on slave interface.

Each solution has it's pros and cons. I'll mention cons here:
  1. if upstream AP becomes unavailable and the mode=station(-bridge) radio starts to scan the spectrum to find it, all the slave interfaces (APs) cease to exist on the air ... because radio is busy changing frequencies and APs can not transmit anything.
  2. if upstream AP changes frequency, device looses upstream connection. APs however keep trasmitting as if nothing happened
 
User avatar
deadManN
Frequent Visitor
Frequent Visitor
Posts: 67
Joined: Thu Jan 21, 2016 9:18 am

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Tue Dec 06, 2022 9:29 am

Remember that slave interfaces share same radio with master interface. And only master interface can influence on some of crucial radio parameters, such as frequency selection.

Meaning that there are generally two possibilities to make such scenario work:
  1. configure master interface to run in mode=station(-bridge) and configure APs on slave interfaces.
  2. configure master interface with statically set frequency (matching upstream AP frequency). In this case the mode=station(-bridge) can run on slave interface.

Each solution has it's pros and cons. I'll mention cons here:
  1. if upstream AP becomes unavailable and the mode=station(-bridge) radio starts to scan the spectrum to find it, all the slave interfaces (APs) cease to exist on the air ... because radio is busy changing frequencies and APs can not transmit anything.
  2. if upstream AP changes frequency, device looses upstream connection. APs however keep trasmitting as if nothing happened
That wen't a little bit into the technical side... but let you know that my tunnel AP is a simple D-Link external network card, and I'm wondering if I have any power over its configurations...
And that's because I'm running softether client on PC that mikrotik does not support, and then share the tunnel through hotspot... but the card itself is weak and cannot target a wide range of environment...

Is what you saying still possible to select frequency as AP?

Using master as station by your saying is already discarded...
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 10706
Joined: Thu Mar 03, 2016 10:23 pm

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Tue Dec 06, 2022 10:17 am

It's entirely up to driver and management software of mentioned D-Link card as to what can be set.

As to the rest, I simply mentioned constraints and possible work arounds (and those are mostly due to how hardware works, not much that software can change). Whether you can adapt your setup to work around constraints or not is entirely up to you. As always it may end up being not feasible at all.
And yes, if one wanders off the beaten track away from common setups, one has to delve into (technical) details. Without unerstanding how things work it's just a guess work, with infinite number of possibilities it's extremely hard to guess the right choice.
 
User avatar
deadManN
Frequent Visitor
Frequent Visitor
Posts: 67
Joined: Thu Jan 21, 2016 9:18 am

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Tue Dec 06, 2022 12:31 pm

It's entirely up to driver and management software of mentioned D-Link card as to what can be set.

As to the rest, I simply mentioned constraints and possible work arounds (and those are mostly due to how hardware works, not much that software can change). Whether you can adapt your setup to work around constraints or not is entirely up to you. As always it may end up being not feasible at all.
And yes, if one wanders off the beaten track away from common setups, one has to delve into (technical) details. Without unerstanding how things work it's just a guess work, with infinite number of possibilities it's extremely hard to guess the right choice.
It is the product page...
Using `DevCheck` android mobile app, I noticed that it uses Frequency of 2462 and Channel Width of 40MHz and secondary channel of 11
I tried all option , and only 40MHz with Frequency of 2462 was, `20/40MHz eC` and tried the to set secondary channel off or set to 11 too, on the virtual station network...
didn't worked...
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 10706
Joined: Thu Mar 03, 2016 10:23 pm

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Tue Dec 06, 2022 2:35 pm

Frequency 2462 is channel 11. So as starting point configure MT to 20MHz channel width and channel 2462. 40MHz in 802.11 is 20+20 and AP reverts to 20 (single channel) for devices not capable of 20+20. If that works, try setting frequency layout to XX and channel width 20/40.
 
User avatar
deadManN
Frequent Visitor
Frequent Visitor
Posts: 67
Joined: Thu Jan 21, 2016 9:18 am

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Tue Dec 06, 2022 4:42 pm

Frequency 2462 is channel 11. So as starting point configure MT to 20MHz channel width and channel 2462. 40MHz in 802.11 is 20+20 and AP reverts to 20 (single channel) for devices not capable of 20+20. If that works, try setting frequency layout to XX and channel width 20/40.
Yeah that was the way, it seem to be connected... I just need to reroute my data, if I'm doing it right...
ovpn2.png
You do not have the required permissions to view the files attached to this post.
 
User avatar
deadManN
Frequent Visitor
Frequent Visitor
Posts: 67
Joined: Thu Jan 21, 2016 9:18 am

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Wed Dec 07, 2022 1:54 am

Frequency 2462 is channel 11. So as starting point configure MT to 20MHz channel width and channel 2462. 40MHz in 802.11 is 20+20 and AP reverts to 20 (single channel) for devices not capable of 20+20. If that works, try setting frequency layout to XX and channel width 20/40.
It works for a period of time, then the network dies... (the station seems to still be connected) then again it starts to work for another period, then again it dies...
I wonder what I'm doing wrong...

Do I cause loop and packet lost in my network? :|
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 10706
Joined: Thu Mar 03, 2016 10:23 pm

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Wed Dec 07, 2022 8:41 am

Is the D-Link device transmitting beacons stably on same frequency? It could be that it's playing games ...
When MT looses connection, is there anything in logs?

The fact you can't (or your don't know how to) set things on D-Link in predictive manner doesn't exactly fill me with confidence in that gadget.
 
User avatar
deadManN
Frequent Visitor
Frequent Visitor
Posts: 67
Joined: Thu Jan 21, 2016 9:18 am

Re: Set Wireless to Station + AP Mode Simultaneous? WISP Client?

Wed Dec 07, 2022 12:19 pm

Is the D-Link device transmitting beacons stably on same frequency? It could be that it's playing games ...
When MT looses connection, is there anything in logs?

The fact you can't (or your don't know how to) set things on D-Link in predictive manner doesn't exactly fill me with confidence in that gadget.
I think that could be the issue as well, but still it seem to be connected, most mean it doesn't change frequency,.. or it just look like to be connected

---------
edit:
---------
This time while route-marking, I used the src-address instead of interface... it worked fine
Sample Video: https://www.youtube.com/watch?v=7HgrUmRA6Ac

Who is online

Users browsing this forum: adimihaix, Ahrefs [Bot] and 16 guests