Community discussions

MikroTik App
 
User avatar
broderick
Member Candidate
Member Candidate
Topic Author
Posts: 242
Joined: Mon Nov 30, 2020 7:44 pm

Mk HAP ac² and wifi card compatibility issue with Lubuntu?

Tue Aug 09, 2022 1:32 pm

Hi,

I have been trying to connect an Acer Aspire 5920-3A2G16Mi - with Lubuntu 22.04 installed on it as a OS - to my Mk HAP ac² via wifi (2.4Ghz).
It seems to be working at the very beginning since the laptop sees the MK wifi signal, and asks me to type the WPA2 wifi password in, but after that I keep getting
"lost connection" messages.
I then tried to connect it to another AP (a tp-link device) which in turn is connected to my Mk HAP ac², and the laptop gets wifi connection this time without any issue.

So, does anyone know if there can be any wifi compatibility issue with MK devices and pc/laptop wifi cards running linux OS distros?
I tried with another distro as well, (mx-linux) and got the same problem.

Thanks
 
holvoetn
Forum Guru
Forum Guru
Posts: 5403
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Mk HAP ac² and wifi card compatibility issue with Lubuntu?

Tue Aug 09, 2022 1:38 pm

Best to post config of your device, probably a configuration issue.

terminal
/export hide-sensitive file=anynameyouwish
Review file for sensitive remaining info (Serial numbers, public IP, secret keys, ...) and hide those.
Then post contents between [code] quotes.
 
User avatar
broderick
Member Candidate
Member Candidate
Topic Author
Posts: 242
Joined: Mon Nov 30, 2020 7:44 pm

Re: Mk HAP ac² and wifi card compatibility issue with Lubuntu?

Tue Aug 09, 2022 1:45 pm

Best to post config of your device, probably a configuration issue.

terminal
/export hide-sensitive file=anynameyouwish
Review file for sensitive remaining info (Serial numbers, public IP, secret keys, ...) and hide those.
Then post contents between [code] quotes.
Would the wifi config only be ok?
I don't have wifi issue with other windows devices.

Thanks
 
holvoetn
Forum Guru
Forum Guru
Posts: 5403
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Mk HAP ac² and wifi card compatibility issue with Lubuntu?

Tue Aug 09, 2022 1:51 pm

We'll see how far we can get.
 
User avatar
broderick
Member Candidate
Member Candidate
Topic Author
Posts: 242
Joined: Mon Nov 30, 2020 7:44 pm

Re: Mk HAP ac² and wifi card compatibility issue with Lubuntu?

Tue Aug 09, 2022 2:07 pm

We'll see how far we can get.
# model = RBD52G-5HacD2HnD
# serial number = BEEB0BXXXXX
/interface bridge
add admin-mac=C4:XX:XX:XX:E7:XX auto-mac=no comment=defconf name=bridge
add name=bridge-guest
/interface ethernet
set [ find default-name=ether1 ] comment=PC
set [ find default-name=ether2 ] comment=Ubuntu
set [ find default-name=ether3 ] comment=Guest-TV
set [ find default-name=ether4 ] comment=Proxmox
set [ find default-name=ether5 ] comment=WAN2 name=ether5_WAN2
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
add authentication-types=wpa2-psk eap-methods="" management-protection=allowed mode=dynamic-keys name="wan wifi" supplicant-identity=\
    "" wpa2-pre-shared-key=xxxxx18x
add authentication-types=wpa-psk,wpa2-psk eap-methods="" management-protection=allowed mode=dynamic-keys name="wifi int" \
    supplicant-identity="" wpa-pre-shared-key=xxxxxxx1 wpa2-pre-shared-key=xxxxxxx1
add authentication-types=wpa2-psk eap-methods="" management-protection=allowed mode=dynamic-keys name="WAN WiFi VD" \
    supplicant-identity="" wpa2-pre-shared-key=xxxxxxxxa1
add authentication-types=wpa2-psk eap-methods="" management-protection=allowed mode=dynamic-keys name="wifi 5Ghz" supplicant-identity=\
    "" wpa2-pre-shared-key=xxxxxxxxx
add authentication-types=wpa-psk,wpa2-psk eap-methods="" management-protection=allowed mode=dynamic-keys name=motox \
    supplicant-identity="" wpa-pre-shared-key=xxxxx6 wpa2-pre-shared-key=xxxxxx6
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-onlyn channel-width=20/40mhz-Ce comment=WAN1 country=france disabled=no installation=indoor \
    keepalive-frames=disabled multicast-buffering=disabled name=wlan1_WAN1 security-profile="WAN WiFi VOD" ssid=Voda-8 \
    wds-default-bridge=bridge wds-mode=dynamic wireless-protocol=802.11 wmm-support=enabled
set [ find default-name=wlan2 ] band=5ghz-a/n country=france frequency=5220 installation=indoor mode=ap-bridge security-profile=\
    "wifi 5Ghz" ssid=MK5 station-roaming=enabled wmm-support=enabled wps-mode=disabled
add disabled=no keepalive-frames=disabled mac-address=XX:XX:34:34:XX:XX master-interface=wlan1_WAN1 multicast-buffering=disabled name=\
    wlan3 security-profile="wifi int" ssid=MK2 station-roaming=enabled wds-cost-range=0 wds-default-bridge=bridge \
    wds-default-cost=0 wds-mode=dynamic wmm-support=enabled wps-mode=disabled
/interface wireless manual-tx-power-table
set wlan1_WAN1 comment=WAN1
/interface wireless nstreme
set wlan1_WAN1 comment=WAN1
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=wlan2
add bridge=bridge interface=ether1
add bridge=bridge-guest interface=ether3
add bridge=bridge interface=wlan3
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=wlan1_WAN1 list=WAN
/interface ovpn-server server
set auth=sha1 certificate=mikrotik cipher=aes256 default-profile=ovpn enabled=yes port=1195


I tried to connect to MK2 (on wlan3 a virtual one)

Thanks
 
erlinden
Forum Guru
Forum Guru
Posts: 1920
Joined: Wed Jun 12, 2013 1:59 pm
Location: Netherlands

Re: Mk HAP ac² and wifi card compatibility issue with Lubuntu?

Tue Aug 09, 2022 2:48 pm

Bit of a mess...can you please explain how this hAP ac2 is supposed to work? Then we can start from there, And would love to see the logging on the RB.

Besides:
  • Why is there a second bridge (I prefer to use VLAN: viewtopic.php?t=143620)?
  • Why are there address lists (there is no firewall)?
  • Why are there (so) many security profiles?
  • Why set 40MHz bandwidth on 2.4GHz radio (you know it will interfere)?
  • Why didn't you set wireless-protocol on the 5GHz radio?
In your case I would reset the RB, without configuration and then choose "HomeAP dual" from the Quickset. Get rid of WPA (choose WPA2-AES only) and continue from there.
Tip: never touch Quickset after primary config.
 
User avatar
broderick
Member Candidate
Member Candidate
Topic Author
Posts: 242
Joined: Mon Nov 30, 2020 7:44 pm

Re: Mk HAP ac² and wifi card compatibility issue with Lubuntu?

Tue Aug 09, 2022 6:08 pm

Bit of a mess...can you please explain how this hAP ac2 is supposed to work?

Well, it works as expected nonetheless

Then we can start from there, And would love to see the logging on the RB.

Besides:
  • Why is there a second bridge (I prefer to use VLAN: viewtopic.php?t=143620)?
  • Why are there address lists (there is no firewall)?
  • Why are there (so) many security profiles?
  • Why set 40MHz bandwidth on 2.4GHz radio (you know it will interfere)?
  • Why didn't you set wireless-protocol on the 5GHz radio?



1) I'm going to use VLANs maybe when I buy another MK device, or a VLAN capable switch. Besides, many don't like use VLANs for security reasons (not my case though), and it wouldn't make any sense in my case. It would be overkilled.
2) ?? off topic
3) ?? off topic
4) Interfere? How? I didn't notice any problem before.
5) What? Off topic anyway.


In your case I would reset the RB, without configuration and then choose "HomeAP dual" from the Quickset. Get rid of WPA (choose WPA2-AES only) and continue from there.
Tip: never touch Quickset after primary config.



Resetting my RB just to make ONE old device's wifi card (or whatever) work (which even is not mine)? Are you serious? No way! Tons of setup there:

- Port forwarding for a few services running on my server,
- OpenVPN
- WAN recursive failover (which works like charm and I DO need it!)
- script to switch to different DNS servers in case the primary one goes occasionaly down
- subnet isolation

and a few others I even don't remember at the moment (yes, this might be a problem really :D )

Come on, dude! I know that my mk device doean't have a state-of-the-art, perfect setup, and it can look a bit messy, but everything does its dirty job.
I'll maybe reset it when I switch to a stable , reliable V7 OS.

Thanks
 
erlinden
Forum Guru
Forum Guru
Posts: 1920
Joined: Wed Jun 12, 2013 1:59 pm
Location: Netherlands

Re: Mk HAP ac² and wifi card compatibility issue with Lubuntu?

Tue Aug 09, 2022 10:19 pm

Okay, so it turns out you didn't share your complete config. That explains a lot.
Getting offended by someone making time to give feedback on your config. Well...in the end...it is your problem, isn't it!?

Ontopic: Yes, there are devices that can't handle 40MHz on 2.4GHz radios. But well... for "ONE old device's wifi card (or whatever)", why even bother starting a topic.
 
holvoetn
Forum Guru
Forum Guru
Posts: 5403
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Mk HAP ac² and wifi card compatibility issue with Lubuntu?

Tue Aug 09, 2022 10:45 pm

Oh yes, my old Dell laptop refuses 40mhz (Debian, Dell D830 2008)

Try 20mhz, see what it gives.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Mk HAP ac² and wifi card compatibility issue with Lubuntu?

Tue Aug 09, 2022 10:56 pm

@broderick, ignorando il resto e considerando soltanto la wlan1, e ignorando che rimuovendo "VODAFONE" da una parte hai lasciato "VD" e dall'altra "VOD":

Da Vinci code

/interface wireless security-profiles
eap-methods="" -> deve essere passthrough
management-protection=allowed -> deve essere disabled, management-protection è supportato solo da prodotti MikroTik
supplicant-identity="" -> deve essere MikroTik
/interface wireless
band=2ghz-onlyn -> se solo n, e non anche g (o b) i vecchi dispositivi solo g non si collegano
channel-width=20/40mhz-Ce -> i dispositivi solo g si collegano comunque, perché a 20+20 (che non è 40) ci vanno solo gli n
country=france ??? maddai... un po' d'orgoglio nazionale...
keepalive-frames=disabled -> perché???
multicast-buffering=disabled -> hai i tuoi motivi...???
wds-default-bridge=bridge & wds-mode=dynamic -> hai qualche dispositivo non-microtik che fa da range extender? se "no", non va bene
 
holvoetn
Forum Guru
Forum Guru
Posts: 5403
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Mk HAP ac² and wifi card compatibility issue with Lubuntu?

Wed Aug 10, 2022 8:17 am

Quite funny, especially the remark on country :lol:
(I do understand a tiny little bit of Italian)
 
User avatar
broderick
Member Candidate
Member Candidate
Topic Author
Posts: 242
Joined: Mon Nov 30, 2020 7:44 pm

Re: Mk HAP ac² and wifi card compatibility issue with Lubuntu?

Wed Aug 10, 2022 9:32 am

Oh yes, my old Dell laptop refuses 40mhz (Debian, Dell D830 2008)

Try 20mhz, see what it gives.
That can be the only on-topic point.
I'll give it a try.

Thanks
 
User avatar
broderick
Member Candidate
Member Candidate
Topic Author
Posts: 242
Joined: Mon Nov 30, 2020 7:44 pm

Re: Mk HAP ac² and wifi card compatibility issue with Lubuntu?

Wed Aug 10, 2022 9:45 am

Okay, so it turns out you didn't share your complete config. That explains a lot.
Getting offended by someone making time to give feedback on your config. Well...in the end...it is your problem, isn't it!?
I am sick and tired to get unsolicited advice.
You could have as well stayed on point and give feedback only on the problem I was asking for.
BUT, it seems that some people here are too often dying to say other ones that they are the MK badasses, so the first thing they come up with is "you should reset!".
 
User avatar
broderick
Member Candidate
Member Candidate
Topic Author
Posts: 242
Joined: Mon Nov 30, 2020 7:44 pm

Re: Mk HAP ac² and wifi card compatibility issue with Lubuntu?

Wed Aug 10, 2022 9:49 am

@broderick, ignorando il resto e considerando soltanto la wlan1, e ignorando che rimuovendo "VODAFONE" da una parte hai lasciato "VD" e dall'altra "VOD":

Da Vinci code

/interface wireless security-profiles
eap-methods="" -> deve essere passthrough // it's unselectable.
management-protection=allowed -> deve essere disabled, management-protection è supportato solo da prodotti MikroTik // OK!
supplicant-identity="" -> deve essere MikroTik // WHY?
/interface wireless
band=2ghz-onlyn -> se solo n, e non anche g (o b) i vecchi dispositivi solo g non si collegano //ok, but it supports N
channel-width=20/40mhz-Ce -> i dispositivi solo g si collegano comunque, perché a 20+20 (che non è 40) ci vanno solo gli n
country=france ??? maddai... un po' d'orgoglio nazionale... //you don't know what you are talking about here
keepalive-frames=disabled -> perché??? What is it for?
multicast-buffering=disabled -> hai i tuoi motivi...??? //No :-) What is it for?
wds-default-bridge=bridge & wds-mode=dynamic -> hai qualche dispositivo non-microtik che fa da range extender? se "no", non va bene //No, I haven't. Should I disable it?
Thanks
 
holvoetn
Forum Guru
Forum Guru
Posts: 5403
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Mk HAP ac² and wifi card compatibility issue with Lubuntu?

Wed Aug 10, 2022 11:38 am

I am sick and tired to get unsolicited advice.

I guess it is hot for everyone ...
I'll throw in my 0.02€

You could have as well stayed on point and give feedback only on the problem I was asking for.

More often then not there are problems being reported here based on limited info the user "thinks" is relevant.
Quite a lot the cause of the problem is not to be found there. It's elsewhere, in the part not shown.
Hence the almost standard request here to provide full config.
If for whatever reason you do not think this is relevant for solving your problem, it is not correct to blame others for not being able to solve your problem.
A problem not created by the ones trying to help. OK ?

BUT, it seems that some people here are too often dying to say other ones that they are the MK badasses, so the first thing they come up with is "you should reset!".

I am by no means an IT professional (just happen to be someone who knows quite a lot from decades of fiddling and experimenting) and certainly not an MK badass (still learning quite a lot myself) but you'd be surprised that in 8 or 9 cases out of 10 pulling the plug on a device solves a lot of problems.
So does clean config reset on a router device which has been wrongly configured (which I am not saying is the case for your problem, we'll see about that further on).

You came here for assistance with a problem.
Be glad someone is willing to help. We are all doing this in our free time.
 
User avatar
broderick
Member Candidate
Member Candidate
Topic Author
Posts: 242
Joined: Mon Nov 30, 2020 7:44 pm

Re: Mk HAP ac² and wifi card compatibility issue with Lubuntu?

Wed Aug 10, 2022 12:10 pm



More often then not there are problems being reported here based on limited info the user "thinks" is relevant.
Quite a lot the cause of the problem is not to be found there. It's elsewhere, in the part not shown.
Hence the almost standard request here to provide full config.
If for whatever reason you do not think this is relevant for solving your problem, it is not correct to blame others for not being able to solve your problem.
A problem not created by the ones trying to help. OK ?
I know that something else in our setup can be relevant, but that wouldn't explain why all other my devices work perfectly as expected both via wifi and ethernet.

I am by no means an IT professional (just happen to be someone who knows quite a lot from decades of fiddling and experimenting) and certainly not an MK badass
...
So, you should understand why your answer can be annerving.

Be glad someone is willing to help. We are all doing this in our free time.


I know it, and I have always been glad for that.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Mk HAP ac² and wifi card compatibility issue with Lubuntu?

Wed Aug 10, 2022 1:41 pm

Based on your replies, paste this on terminal:

why: used or not, eap default is passthrough (long term bug, fixed on latest v7.4), and supplicant as MikroTik device, is the default
/interface wireless security-profiles
set [find] eap-methods=passthrough supplicant-identity="MikroTik"

You can/must disable wds if you do not have any mikrotik "station-wds" as client.
the default are wds-default-bridge=none and wds-mode=disabled

keepalive-frames=disabled -> if disabled, the ap do not keep track of the client if is really connected or not, and can cause problems, better enabled (default)

multicast-buffering=disabled -> if disabled do not buffer multicast traffic, and is dropped. If you use some device that use this function, better keep it enabled (default).
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Mk HAP ac² and wifi card compatibility issue with Lubuntu?

Wed Aug 10, 2022 1:57 pm

If that do not fix, and all other devices work,
supposing you do not have put an access-list rule that deny the registration,
or a fixed dhcp lease that assign wrong ip,
or firewall rule that block the MAC,
or any other setting than can cause the problem on another config parts (I provide exact examples, not generic)

try to make a bootable usb stick with windows 10 / kaspersky recovery / other iso than can boot and use wlan
and check if on another OS the wireless work correclty.
If work, the problem can be only on Lubuntu driver/kernel/settings/etc.
 
User avatar
broderick
Member Candidate
Member Candidate
Topic Author
Posts: 242
Joined: Mon Nov 30, 2020 7:44 pm

Re: Mk HAP ac² and wifi card compatibility issue with Lubuntu?

Wed Aug 10, 2022 2:01 pm

Based on your replies, paste this on terminal:

why: used or not, eap default is passthrough (long term bug, fixed on latest v7.4), and supplicant as MikroTik device, is the default
/interface wireless security-profiles
set [find] eap-methods=passthrough supplicant-identity="MikroTik"

You can/must disable wds if you do not have any mikrotik "station-wds" as client.
the default are wds-default-bridge=none and wds-mode=disabled

keepalive-frames=disabled -> if disabled, the ap do not keep track of the client if is really connected or not, and can cause problems, better enabled (default)

multicast-buffering=disabled -> if disabled do not buffer multicast traffic, and is dropped. If you use some device that use this function, better keep it enabled (default).
Ok, done!
Useful information. Learned something more now.
Thank you very much.
 
User avatar
broderick
Member Candidate
Member Candidate
Topic Author
Posts: 242
Joined: Mon Nov 30, 2020 7:44 pm

Re: Mk HAP ac² and wifi card compatibility issue with Lubuntu?

Wed Aug 10, 2022 6:09 pm

I didn't see this answer earlier.

If that do not fix, and all other devices work,
supposing you do not have put an access-list rule that deny the registration,
or a fixed dhcp lease that assign wrong ip,
or firewall rule that block the MAC,
or any other setting than can cause the problem on another config parts (I provide exact examples, not generic)

I don't think so, I mean, it is very unlikely. I didn't set any particular rules to block new devices trying to connect to the Wlan1, and as far as I remember, my MK dhcp has never had issues before.

try to make a bootable usb stick with windows 10 / kaspersky recovery / other iso than can boot and use wlan
and check if on another OS the wireless work correclty.


Unfortunately, I can't do any attempts now. The laptop wasn't mine; just a friend of mine passing by who asked me to install lubuntu on his old device.
Windows 7 ran on it before I installed lubuntu, and I didn't notice this problem, BUT I don't remember if it was connected via wifi or ethernet, sorry :( ..maybe wifi, but I often plug a cable when I need to install a new OS on a device. Anyway, he told me that the laptop works flawlessly via wifi on his home network, it is the most important thing.
Anyway, as I said above already, it was an opportunity to learn new things, and tune up my mk setup.

If work, the problem can be only on Lubuntu driver/kernel/settings/etc.

Yes, maybe. I thought the same too.

Thanks
 
lambert
Long time Member
Long time Member
Posts: 548
Joined: Fri Jul 23, 2010 1:09 am

Re: Mk HAP ac² and wifi card compatibility issue with Lubuntu?

Sun Aug 21, 2022 11:22 am

Non-default wireless configuration settings can cause, and have caused, interop issues with small subsets of devices. If you've brought your config forward through routeros versions and many years of testing and changing and maybe not reverting things that didn't help because you didn't notice them causing issues, you can end up with a configuration that is less than optimal. This is especially true with MikroTik wireless settings. There are many knobs to turn. We nerds often cannot resist turning them.

/export is your friend. You can save your current configuration statements to a safe place and reset to defaults. You can then copy and paste complicated firewall rules, lengthy dhcp lease lists, and other non-wireless parts of your configuration.

Set the SSID on the wireless interface and set the WPA2 key on the security profile manually in winbox without changing more than is absolutely necessary to do so. If things work, you can export the new configuration to see what is now different, if you care to know. If it didn't fix the problem, but your existing devices work as well or better, you can leave it alone and blame the problem laptop. If your existing devices don't work, you can change one setting at a time to the old values until you find out which settings you need.

Who is online

Users browsing this forum: cyrq, jerogabe, sybadi, vkp and 33 guests