Community discussions

MikroTik App
 
quiken
just joined
Topic Author
Posts: 5
Joined: Sat Feb 01, 2020 1:29 am

Using hAP Mini as a LAN to WiFi bridge

Thu May 12, 2022 2:26 pm

Good day

Please could someone assist me with the following. Would like to use a hAP Mini to connect a device to an existing Access Point using the hAP as a LAN to WiFi Bridge.

My idea would be:
1. Set wlan1 to station
2. Connect wlan1 to WiFi
3. Add wlan1 and eth2 to bridge
4. Connect device to eth2
5. Device gets DHCP from network with hAP Mini acting as a LAN to Wifi Bridge

What settings would I need to configure on the hAP to make this work? I've played around a bit and can get the hAP mini to connect to WiFi, even got the device to receive a DHCP address but unable to ping anywhere on the network. Perhaps has to do with ARP?
 
quiken
just joined
Topic Author
Posts: 5
Joined: Sat Feb 01, 2020 1:29 am

Re: Using hAP Mini as a LAN to WiFi bridge

Thu May 12, 2022 6:50 pm

Basic layout attached...
basic layout.JPG
You do not have the required permissions to view the files attached to this post.
 
sindy
Forum Guru
Forum Guru
Posts: 10205
Joined: Mon Dec 04, 2017 9:19 pm

Re: Using hAP Mini as a LAN to WiFi bridge

Thu May 12, 2022 8:58 pm

Bridge the wlan interface with the ethernet one(s) at the hAP mini. If the AP is not a Mikrotik one, or it is a Mikrotik one controlled using CAPsMAN, set the wlan1 mode to station-pseudobridge. Attach a DHCP client to the bridge if you want the hAP mini to get its own IP adress to be manageable via IP (not just via MAC address); detach the DHCP server from the bridge.

The station-pseudobridge is important because standard wireless frames use a single header field for the MAC adress of the wireless receiver and the MAC address of the actual destination, as no one expected the stations (clients) to act as bridges when designing the protocol. So the wireless interface of the hAP mini has to do a lot of magic to sort out which received wireless frame to forward to which MAC address on its "wired" side. And the DHCP server must look at client-ID field of the DHCPDISCOVER/DHCPREQUEST rather than source MAC address of these requests to be able to assign individual IP addresses to the devices connected to the hAP mini's bridge. This is how it should normally work, and the 2011 will work that way, but some DHCP server stacks don't follow standards.

If the AP is a Mikrotik one and not controlled by CAPsMAN, you can use station-bridge mode at the hAP mini, and the wireless frames will use a non-standard format where four MAC addresses are used rather than three, so no magic will be necessary.
 
quiken
just joined
Topic Author
Posts: 5
Joined: Sat Feb 01, 2020 1:29 am

Re: Using hAP Mini as a LAN to WiFi bridge

Fri May 13, 2022 9:36 am

Unfortunately the AP is not a Mikrotik, it's two different sites where we want to use this, one uses an HP Aruba InstantOn AP22 and the other a Ubiquity Unifi AC Mesh
 
sindy
Forum Guru
Forum Guru
Posts: 10205
Joined: Mon Dec 04, 2017 9:19 pm

Re: Using hAP Mini as a LAN to WiFi bridge

Fri May 13, 2022 10:29 am

Unfortunately the AP is not a Mikrotik
Then the station-pseudobridge mode is what you need, as the 4 MAC addresses frame formats are usually incompatible between vendors.
 
quiken
just joined
Topic Author
Posts: 5
Joined: Sat Feb 01, 2020 1:29 am

Re: Using hAP Mini as a LAN to WiFi bridge

Fri May 13, 2022 10:38 am

Then the station-pseudobridge mode is what you need, as the 4 MAC addresses frame formats are usually incompatible between vendors.
Thanks, I played around a bit more using your suggestions and it started working. Not sure why it didn't work before, the only difference now is I removed all other interfaces from the bridge that are there by default.

Who is online

Users browsing this forum: ivicask, LabarH, mrbroadband, sinisa and 88 guests