RouterOS "repeater bridge" with non-RouterOS AP?

Hi, I need to bridge two physical locations with a WiFI link, and I need all of the devices in both locations to be on the same subnet so they can all talk to each other, and I need to be able to connect devices on either end via WiFI or ethernet. I would prefer to use the same SSID in both locations, but it’s not a strict requirement. Basically, I need to achieve this:

In location A, there is an old Buffalo WHR-G54s running Tomato serving as the default gateway and serving as an AP. I only have WiFI access to the WHR-G54s, so I can only make software changes to it.

I used to achieve connectivity in location B via WDS with an Asus RT-N16, also running Tomato, which just died. So now I have a Mikrotik RB951Ui-2HnD coming in the mail, and I’ve been reading about the different options here:

Thanks a lot for the help.

The repeater function will not work with other vendors - you will only be able to have 1 client behind your Mikrotik this way. (It needs mikrotik in both ends..)

WDS MIGHT be possible, but that I have never tried.

This page is much clearer and better written than the Mikrotik documentation:
https://wiki.openwrt.org/doc/howto/clientmode
But I’m not sure which of that applies to RouterOS, and which would be best for my setup?

you can do it but it is not easy and does not work as a wireless repeater. Here are some options that I have not tried.
http://forum.mikrotik.com/t/wireless-bridge-with-other-brand-ap/100300/1
http://forum.mikrotik.com/t/wireless-bridge-and-dhcp/101715/1
I did manage to get it working. I configured a bridge put the wireless radio into the bridge along with Ethernet1. I then made all the other ethernet ports slaves of ethernet 1. I then configured the wireless as a ap bridge with an ssid for my homes users to connect including security profile. I then created a virtual ap in the settings I set this up as a station with the ssid of the other ap. I configured dhcp client on the virtual wireless interface. Here is the page I followed https://www.reddit.com/r/mikrotik/comments/4n984w/help_with_setting_up_wireless_repeater/

Thanks a lot for the Reddit link, that might do what I need. But I see that post is referring to a setup with 2 Mikrotik devices.

So, I guess I need more explanation on what a “pseudo station bridge” is, and how it works. Will it work with a non-RouterOS devices as the AP? And it will it allow clients to connect both wireless and via ethernet on both ends and still be able to talk to each other?

Have a look at this wiki page.

When I set it up following the reddit post I did not have 2 mikrotik units just 1 and could not get access to other hardware so needed to make it work.

“Pseudo bridge” = Layer-2 NAT. All devices behind the Mikrotik will bet L2-NATed to the same MAC (the Mikrotik’s MAC). It works only with IPv4 (the MT maintains a IPv4 addr → MAC addr lookup table).

I wonder if you can create an EoIP bridge between the MT and DD-WRT:
http://wiki.mikrotik.com/wiki/Manual:Interface/EoIP
https://www.dd-wrt.com/wiki/index.php/EoIP_Routing

Yep, thanks, I linked to it in the first post in this thread, but I didn’t really understand the page.

Yep, this is where I’m at for now. I will probably eventually install another Microtik in the AP location, but I can’t right now.

Thanks for the explanation. And do all protocols work over this bridge, assuming they run on IPv4? I seem to have read somewhere that certain protocols might not work.

And what about “station-pseudobridge-clone”? I really don’t understand the difference in real-world behavior between this and “station-pseudobridge”.

I also ran across this option. Right now the AP is running Tomato, and it has a PPTP Client. (I assume I need a PPTP server, which Tomato doesn’t seem to have, and I’m not sure if the old DD-WRT builds for the WHR-54G have it either.) Could I make it work backwards with Tomato as the client and the PPTP server on the Mikrotik?

I also found this:
http://dumbpcs.blogspot.com/2013/06/using-mikrotik-rb751g-to-bridge-to-non.html
Does that make sense to any of you? And again, would that allow for wired and wireless clients on both segments to connect and see each other?

They only differ by the station’s MAC-address. In the station-pseudobridge mode wireless station uses it’s own MAC address, whereas in station-pseudobridge-clone it uses a MAC address of another device behind that station whose packet goes over the bridge first. The station-pseudobridge-clone mode may only be useful when bridging just a single device.

Thanks @andriys for the explanation.

So if I use “station-pseudobridge” would that work with the DHCP server on the Tomato AP? Can it still see different devices and assign them an IP?

I’ve never used it so I’m not sure. It should work with most IPv4 protocols, since they shouldn’t care about their MAC address getting NATed, but there might be some weird ones that do. E.g. any sort of MAC-based access control would not work.

And what about “station-pseudobridge-clone”? I really don’t understand the difference in real-world behavior between this and “station-pseudobridge”.

Probably that is only useful if you have only one device behind the AP. MT will use that device’s MAC instead of its own. But with more than one device, all will still share one MAC.

I also ran across this option. Right now the AP is running Tomato, and it has a PPTP Client. (I assume I need a PPTP server, which Tomato doesn’t seem to have, and I’m not sure if the old DD-WRT builds for the WHR-54G have it either.) Could I make it work backwards with Tomato as the client and the PPTP server on the Mikrotik?

I don’t know anything about PPTP. From Wikipedia it looks like an L3 link, not an L2 link (like PPP)?

No, I don’t see how DHCP can technically work over the pseudobridge. And I remember seeing multiple posts here reporting that it does not work indeed.

Hmm, I see. I wonder about things like STUN and whatever method that things like Skype use for NAT traversal with VoIP clients?

Ah OK. But no problem with just running another DHCP server in a different range on the Mikrotik station?

Also I would be interested in your comments on this post that I mentioned earlier:

I also found this:
http://dumbpcs.blogspot.com/2013/06/using-mikrotik-rb751g-to-bridge-to-non.html
Does that make sense to any of you? And again, would that allow for wired and wireless clients on both segments to connect and see each other?

I think I see how DHCP could work (after all, DHCP packet carries client MAC, so it can differ from source MAC) but it does not surprise me that it does not work in practice :slight_smile: This is a topic I have been meaning to explore for a while so I will set this up on my home network and take some packet captures.

You might be able to get away with a DHCP relay on the MT.

And just in case this whole setup doesn’t work right (I can’t test it because my Mikrotik hasn’t arrived yet), what is the Mikrotik term for a simple repeater? If the bridged and unified network doesn’t work, I could hobble along for a while with the Mikrotik acting as a wireless client to the Tomato AP and then setting up an internal VLAN and doing its own NAT and DHCP for clients that are connected to a different SSID that the Mikrotek broadcasts. DD-WRT describes it well here as a “WLAN Repeater”:
https://www.dd-wrt.com/wiki/index.php/Wlan_Repeater