Community discussions

MikroTik App
 
nexar
just joined
Topic Author
Posts: 7
Joined: Tue Oct 04, 2016 5:32 pm

Using Hap AC lite with Mobile WiFi [SOLVED]

Tue Sep 12, 2017 5:52 pm

Hi
I've been using 2 x Mikrotik Hap AC Lites with my Broadband connected to a BT OpenReach modem. One as a WiFi router and the other as an 'extender'. This setup has been working well for me for over a year.

Recently my Broadband went down (and may stay down for quite a few days) so to 'try' things out I bought a TP-Link M7350 and am using a Three (mobile company) 4G chip to connect to the internet. The TP-Link is working fine with all my devices. However it's WiFi range is somewhat limited and I was wondering whether I could somehow connect the M7350 to my Mikrotiks so that I got better coverage round the house.

Searching the forum I found this thread:

viewtopic.php?t=125133

This seems to suggest that it can be done but it doesn't give any information on HOW!!

Please would someone guide me on how I can use the M7350 as the broadband modem and then use the Hap AC Lite as the WiFi router. I think I just need to connect the one Hap AC Lite which I use as the WiFi router to the M7350. I'm sure once that works then the second Hap AC Lite will automatically continue working as an extender.

All guidance gratefully received with thanks

Purvez
Last edited by nexar on Tue Sep 26, 2017 12:29 pm, edited 1 time in total.
 
User avatar
pcunite
Forum Guru
Forum Guru
Posts: 1345
Joined: Sat May 25, 2013 5:13 am
Location: USA

Re: Using Hap AC lite with Mobile WiFi

Wed Sep 13, 2017 12:34 am

You can absolutely connect the wifi adapter in the MikroTik to a wifi hotspot (running on your phone or other device). I've only done this once. I used this as a guide to create the configuration below. Hopefully, you know enough about RouterOS to make sense of it.

Make MikroTik become a wifi client:
# RouterOS 6.34.6
# http://wiki.mikrotik.com/wiki/Connect_to_an_Available_Wireless_Network

# Optional, configure all ports as a switch
/interface ethernet
set [ find default-name=ether2 ] master-port=ether1
set [ find default-name=ether3 ] master-port=ether1
set [ find default-name=ether4 ] master-port=ether1
set [ find default-name=ether5 ] master-port=ether1

# Create bridge
/interface bridge
add name=bridge-LAN

# Put all ports (via master) and the Wifi adapter in the same bridge
/interface bridge port
add bridge=bridge-LAN interface=ether1
add bridge=bridge-LAN interface=wlan1

# Create a connection to remote AP
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n disabled=no frequency=auto mode=station-bridge wps-mode=disabled ssid=MYSSID

# remote AP
/interface wireless connect-list
add interface=wlan1 security-profile=default ssid=MYSSID

# password to AP
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa2-psk eap-methods="" group-key-update=20m mode=dynamic-keys wpa2-pre-shared-key=PASSWORD1

# become a client of AP
/ip dhcp-client
add default-route-distance=0 dhcp-options=hostname,clientid disabled=no interface=wlan1
 
nexar
just joined
Topic Author
Posts: 7
Joined: Tue Oct 04, 2016 5:32 pm

Re: Using Hap AC lite with Mobile WiFi

Wed Sep 13, 2017 1:49 pm

pcunite, many thanks for your detailed explanation. Sadly my knowledge of RouterOS is quite limited. However before I have an attempt at it I wanted to ask a couple of further questions, please:

1. The TP-Link M7350 has a USB adapter which is used both for charging and for creating a Direct (non-wireless) connection with whichever device it is connected to. I'm wondering if I could use that to connect to the Hap AC Lite? If yes then how do I tell the Hap AC Lite that the internet connection is through the USB rather than the ethernet port?

2. Your solution seems to imply that the Hap AC Lite will become a client of the Wireless M7350. Once it becomes a client then how does it continue to be a router for other devices?....which is the original intention of this exercise.

Thanks

Purvez
 
User avatar
pcunite
Forum Guru
Forum Guru
Posts: 1345
Joined: Sat May 25, 2013 5:13 am
Location: USA

Re: Using Hap AC lite with Mobile WiFi

Wed Sep 13, 2017 4:19 pm


1. The TP-Link M7350 has a USB adapter which is used both for charging and for creating a Direct (non-wireless) connection with whichever device it is connected to. I'm wondering if I could use that to connect to the Hap AC Lite? If yes then how do I tell the Hap AC Lite that the internet connection is through the USB rather than the ethernet port?

2. Your solution seems to imply that the Hap AC Lite will become a client of the Wireless M7350. Once it becomes a client then how does it continue to be a router for other devices?....which is the original intention of this exercise.
#1
If the USB adapter is compatible, yes that would be an option.

#2
It will automatically add a default route for traffic.
 
nexar
just joined
Topic Author
Posts: 7
Joined: Tue Oct 04, 2016 5:32 pm

Re: Using Hap AC lite with Mobile WiFi

Wed Sep 13, 2017 5:47 pm

pcunite, thanks again for your prompt response. It would appear that the TP-Link M7350 is not a 'compatible' device.

Your point 2 is noted and I'm going to have a 'try' and setting up the hAP ac lite using your config as a guide. Thanks again for all your help. here.
 
nexar
just joined
Topic Author
Posts: 7
Joined: Tue Oct 04, 2016 5:32 pm

Re: Using Hap AC lite with Mobile WiFi [SOLVED]

Tue Sep 26, 2017 12:26 pm

With the help from Uldis at Mikrotik's support I have managed to get the TP-Link M7350 working with the hAP ac Lite. These are the steps I took:

1. I ensured that the M7350 was switched on and connected to the Mobile network provider.
2. I connected the M7350 via the USB cable to the USB port on hAP ac lite.
3. Within WebFig I looked at the interfaces screen on hAP ac lite and saw that an LTE1 interface had been added automatically.
4. Within Webfig I went to IP>DHCP Client. I added a new DHCP Client for the LTE1 interface. All settings were left at default and when I clicked 'apply' the M7350 allocated an IP address to the hAP ac lite from its DHCP pool.
5. Within Webfig I went to IP>Firewall>NAT and added a rule for the LTE1 out interface. All settings were left at default other than 'action' which was set to 'masquerade'.

After carrying out the above actions it appeared NOT to work. On checking through the above sections (3-5) I found that for some reason the LTE1 NAT rule had been disabled. I renabled it and pulled out the USB cable from the hAP ac lite and pushed it back again and it all started to work.

As a safe guard I have deactivated the broadcasting of the SSID on the M7350 so that no one else can access it wirelessly any more.

I hope the above will prove helpful to anyone who is wanting to try and use the hAP ac lite with an LTE interface rather than a broadband one.
 
alepotech
just joined
Posts: 4
Joined: Thu Dec 07, 2017 8:56 am

Re: Using Hap AC lite with Mobile WiFi [SOLVED]

Tue Dec 19, 2017 3:40 pm

Hi

I have configured hAP ac lite with hotspot by creating new bridge and also configure the external radius server with public ip of radius server.

I am able to get redirected to external landing page but when trying to connect,getting error as radius server not responding.

when i check logs i have seen that access request is getting generate but not sending to any IP ..can you please help on this

Please check the attached image.
You do not have the required permissions to view the files attached to this post.
 
alepotech
just joined
Posts: 4
Joined: Thu Dec 07, 2017 8:56 am

Re: Using Hap AC lite with Mobile WiFi [SOLVED]

Wed Dec 20, 2017 6:58 am

Hi

I have configured hAP ac lite with hotspot by creating new bridge and also configure the external radius server with public ip of radius server.

I am able to get redirected to external landing page but when trying to connect,getting error as radius server not responding.

when i check logs i have seen that access request is getting generate but not sending to any IP ..can you please help on this

Please check the attached image.
 
nexar
just joined
Topic Author
Posts: 7
Joined: Tue Oct 04, 2016 5:32 pm

Re: Using Hap AC lite with Mobile WiFi [SOLVED]

Wed Dec 20, 2017 11:52 am

Hi Alepotech

I'm afraid I'm not really very technical. Most of what I did to get this working came from Mikrotik support. I would recommend you write to them directly as they are VERY HELPFUL.

I'm sorry I couldn't be of more help.

Purvez
 
User avatar
r0berts
newbie
Posts: 49
Joined: Mon Jul 30, 2018 3:29 pm

Re: Using Hap AC lite with Mobile WiFi [SOLVED]

Wed Aug 01, 2018 11:15 pm

Nexar, out of interest - did your hAP lite have a plastic tab in front of the usb port? Mine has a plastic tab - and I do not know if there is a real usb port behind it and right next to it there is a button called "MODE" - I do not quite know what that does. Model id RB941-2nD
 
nexar
just joined
Topic Author
Posts: 7
Joined: Tue Oct 04, 2016 5:32 pm

Re: Using Hap AC lite with Mobile WiFi [SOLVED]

Thu Aug 02, 2018 11:15 am

No there is no tab in front. Just the usb slot. There is also not button on mine. You describe yours as hAP lite. Mine is an hAP AC lite. I don't know if the AC bit makes a difference.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26385
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Using Hap AC lite with Mobile WiFi [SOLVED]

Thu Aug 02, 2018 11:17 am

If there is a tab in front - there is no USB. Just same case.
MODE button can be configured to launch any script of your choice, it is in RouterOS settings.
 
User avatar
r0berts
newbie
Posts: 49
Joined: Mon Jul 30, 2018 3:29 pm

Re: Using Hap AC lite with Mobile WiFi [SOLVED]

Thu Aug 02, 2018 6:05 pm

Thanks, good to know!
 
Batis
just joined
Posts: 2
Joined: Thu Apr 16, 2020 2:08 pm

Re: Using Hap AC lite with Mobile WiFi [SOLVED]

Thu Apr 23, 2020 9:48 am

Hello friends ,
I have a Mikrotik router (hAPlite) with router os v 6.47 beta and
use this device as a wireless access point and a router . There is an ADSL modem also which use as my internet gateway .
I want to redirect the internet traffic from the ADSL modem to my Mobile data ,
Using these links :
https://wiki.mikrotik.com/wiki/Connect_ ... ss_Network ,
viewtopic.php?t=125541 .
My router connected to Mobile Data seccessfully But, The problem is neither the router has any access to the internet nor the wifi clients could connect to my router any longer !! I dont know what is my mistake .
Anybody has any suggestion ?
 
Corsari
just joined
Posts: 7
Joined: Mon Sep 27, 2021 10:36 am

Re: Using Hap AC lite with Mobile WiFi

Wed Sep 29, 2021 5:39 pm

You can absolutely connect the wifi adapter in the MikroTik to a wifi hotspot (running on your phone or other device). I've only done this once. I used this as a guide to create the configuration below. Hopefully, you know enough about RouterOS to make sense of it.

Make MikroTik become a wifi client:
# RouterOS 6.34.6
# http://wiki.mikrotik.com/wiki/Connect_to_an_Available_Wireless_Network

# Optional, configure all ports as a switch
/interface ethernet
set [ find default-name=ether2 ] master-port=ether1
set [ find default-name=ether3 ] master-port=ether1
set [ find default-name=ether4 ] master-port=ether1
set [ find default-name=ether5 ] master-port=ether1

# Create bridge
/interface bridge
add name=bridge-LAN

# Put all ports (via master) and the Wifi adapter in the same bridge
/interface bridge port
add bridge=bridge-LAN interface=ether1
add bridge=bridge-LAN interface=wlan1

# Create a connection to remote AP
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n disabled=no frequency=auto mode=station-bridge wps-mode=disabled ssid=MYSSID

# remote AP
/interface wireless connect-list
add interface=wlan1 security-profile=default ssid=MYSSID

# password to AP
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa2-psk eap-methods="" group-key-update=20m mode=dynamic-keys wpa2-pre-shared-key=PASSWORD1

# become a client of AP
/ip dhcp-client
add default-route-distance=0 dhcp-options=hostname,clientid disabled=no interface=wlan1


after 6.41 master-port is not valid anymore
https://wiki.mikrotik.com/wiki/Manual:Master-port

wondering how to update this script
 
User avatar
r0berts
newbie
Posts: 49
Joined: Mon Jul 30, 2018 3:29 pm

Re: Using Hap AC lite with Mobile WiFi [SOLVED]

Tue Jul 25, 2023 11:56 am

@normis
Normund, sakiet lūdzu vai es varētu ar jums sazināties pa tiešo kādā ar Mikrotik saistītā personiskā jautājumā?

Paldies,
Roberts

Who is online

Users browsing this forum: Bing [Bot], gigabyte091 and 107 guests