Community discussions

MikroTik App
 
laotse
just joined
Topic Author
Posts: 10
Joined: Fri Jan 21, 2022 11:40 am

Virtual WiFi interface does not exchange data

Tue Feb 01, 2022 2:17 pm

I set up a hAP ac2 to supply my laptops with Wifi. The hAP receives a trunk with various VLANs, one for the WiFi (3), which links the hAP to a hEX, which runs the DHCP and performs routing. This internal WiFi works like a charm.
Alas, I added a virtual interface to wlan1 for Guest access, hooked it to another VLAN (2), and it does not exchange any data. The clients can register with the guest net, they are rejected, if I enter the wrong passphrase, but they don't receive DHCP. In fact, I cannot even MAC ping them from the very hAP.

I currently have no idea how to analyze the situation any further. As I see it, the two interfaces are set-up in exactly the same way. I'd appreciate any hints to further analyse the situation.

This is the a sanitized excerpt of the configuration of the hAP:
/interface bridge
add name=vlan-bridge vlan-filtering=yes
/interface ethernet
set [ find default-name=ether1 ] name=Trunk-eth1
/interface vlan
add interface=vlan-bridge name=admin-vlan vlan-id=4
add interface=vlan-bridge name=wifi-guest-vlan vlan-id=2
add interface=vlan-bridge name=wifi-int-vlan vlan-id=3
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
add authentication-types=wpa2-psk eap-methods="" mode=dynamic-keys name=\
    Internal supplicant-identity="" wpa2-pre-shared-key=oh-so-secret
add authentication-types=wpa2-psk eap-methods="" mode=dynamic-keys name=Guest \
    supplicant-identity="" wpa2-pre-shared-key=different-secret
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-XX \
    country=germany disabled=no distance=indoors frequency=auto installation=\
    indoor mode=ap-bridge security-profile=Internal ssid="INT-SSID" \
    wireless-protocol=802.11
add disabled=no keepalive-frames=disabled mac-address=DE:2C:6E:40:64:77 \
    master-interface=wlan1 multicast-buffering=disabled name=Guest-Wifi \
    security-profile=Guest ssid=EXT-SSID wds-cost-range=0 \
    wds-default-cost=0 wps-mode=disabled
/interface bridge port
add bridge=vlan-bridge interface=Trunk-eth1
add bridge=vlan-bridge frame-types=admit-only-untagged-and-priority-tagged \
    interface=wlan1 pvid=3
add bridge=vlan-bridge frame-types=admit-only-untagged-and-priority-tagged \
    interface=Guest-Wifi pvid=2
/interface bridge vlan
add bridge=vlan-bridge tagged=vlan-bridge,Trunk-eth1 vlan-ids=1
add bridge=vlan-bridge tagged=vlan-bridge,Trunk-eth1 vlan-ids=4
add bridge=vlan-bridge tagged=Trunk-eth1,vlan-bridge untagged=wlan1 \
    vlan-ids=3
add bridge=vlan-bridge tagged=Trunk-eth1,vlan-bridge untagged=Guest-Wifi \
    vlan-ids=2
    
 
pe1chl
Forum Guru
Forum Guru
Posts: 10216
Joined: Mon Jun 08, 2015 12:09 pm

Re: Virtual WiFi interface does not exchange data

Tue Feb 01, 2022 2:43 pm

Of course this does not work by itself; you need to have another router connected to ether1-Trunk which has VLAN 2 configured with a network, DHCP server, firewall rules, etc.
There could be an error there.
When it is a MikroTik router as well, run a Torch or Packet Sniffer on the VLAN 2 there and see what happens when you connect a client.
 
laotse
just joined
Topic Author
Posts: 10
Joined: Fri Jan 21, 2022 11:40 am

Re: Virtual WiFi interface does not exchange data

Tue Feb 01, 2022 6:50 pm

As I said there is a hEX for providing DHCP connected to the trunk. Thanks for the hint with the packet sniffer, and now I'm completely confused. In the hEX I see a complete DHCP protocol. On the hAP I do not see the answers from the DHCP on the hEX. This is particularly strange, since I see the DHCP Request in both devices i.e., the client should have seen the DHCP Offer, which I did not see on the hAP. These are the wireshark analyses of the packet sniffer files.
# The hEX with the DHCP server sniffed on VLAN 2
0.0.0.0		255.255.255.255	DHCP Discover - Transaction ID 0x7da0dcf3
192.168.188.1	198.168.188.253	DHCP Offer    - Transaction ID 0x7da0dcf3
0.0.0.0	        255.255.255.255	DHCP Request  - Transaction ID 0x7da0dcf3
192.168.188.1	198.168.188.253	DHCP ACK      - Transaction ID 0x7da0dcf3
# The hAP with the wireless interface sniffed on VLAN 2
0.0.0.0     	255.255.255.255	DHCP Discover - Transaction ID 0x7da0dcf3
0.0.0.0	        255.255.255.255	DHCP Request  - Transaction ID 0x7da0dcf3
Interestingly, if I sniff on the wireless interface itself i.e., Guest-Wifi not on VLAN 2, I see the responses of the DHCP server, which were on VLAN 2 in the hEX. It seems like downstream packets somehow by-pass VLAN 2 inside the hEX, which is strange. Sniffer settings were identical except for the interface.

Still wierder: sniffing VLAN3 looks the same, but on VLAN3 attached to wlan2 I have perfect DHCP and Internet connection.
Last edited by laotse on Tue Feb 01, 2022 7:27 pm, edited 2 times in total.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10216
Joined: Mon Jun 08, 2015 12:09 pm

Re: Virtual WiFi interface does not exchange data

Tue Feb 01, 2022 7:15 pm

I am confused as well. I use a similar setup with a RB4011 and a hAP ac2. It works.
The only difference I see is that I use protocol-mode=none on my bridge configurations.
Also, are you sure you have no /interface ethernet switch configuration on either device? (maybe leftover from old days)
 
laotse
just joined
Topic Author
Posts: 10
Joined: Fri Jan 21, 2022 11:40 am

Re: Virtual WiFi interface does not exchange data

Tue Feb 01, 2022 7:21 pm

/interface ethernet switch export
is empty on both hAP and hEX.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19321
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Virtual WiFi interface does not exchange data

Tue Feb 01, 2022 7:26 pm

Draw a diagram of your network..........
 
laotse
just joined
Topic Author
Posts: 10
Joined: Fri Jan 21, 2022 11:40 am

Re: Virtual WiFi interface does not exchange data

Tue Feb 01, 2022 10:17 pm

Concerning the relevant VLANs it's a straight line:

WAN -- Fritz!Box --(192.168.178.0/24)-- hEX (ether3 Trunk with VLAN 2,3,4) -- hAP ( wlan1,wlan2 on VLAN 3, Guest(wlan1) on VLAN2).

Nothing else on the hAP so far. The hEX has other trunks to other switches, none of them receive VLAN2 or VLAN3. VLAN4 is administration. All VLANs are associated with /24 networks of the 172.18.0.0 range. Except, VLAN3 is 192.168.188.0/24 and therefore addresses different NAT rules. However, since I'm beginning to set up the system, the firewall is empty except for NAT, yet.

I meanwhile sniffed on the trunk in between hEX and hAP. There I see the complete DHCP negotiation and all packets are in the correct VLAN. The DHCP server lists a proper lease for the client's MAC. But I cannot ping the device.

I used a Linux system as client. Wireshark shows the complete DHCP protocol on the client, but not a single ICMP from the simultaneous /ping on the hAP. And, for whatever reason, the Linux system determines that the link is broken, retries and later deactivates the WLAN interface.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10216
Joined: Mon Jun 08, 2015 12:09 pm

Re: Virtual WiFi interface does not exchange data

Tue Feb 01, 2022 10:19 pm

Did you already set the spanning tree protocol mode to none?
 
laotse
just joined
Topic Author
Posts: 10
Joined: Fri Jan 21, 2022 11:40 am

Re: Virtual WiFi interface does not exchange data

Wed Feb 02, 2022 10:50 am

No, so far I didn't. As I understood this is required to allow for hardware offloading, which at least in the hEX acting as router and firewall is not intended, is it? However, I tried:

/interface bridge set protocol-mode=none

on either box, and these prompt me for numbers:. I have no idea what to answer here.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10216
Joined: Mon Jun 08, 2015 12:09 pm

Re: Virtual WiFi interface does not exchange data

Wed Feb 02, 2022 11:28 am

You can set it in the GUI by going to STP tab in the bridge config and click "none" and OK.
Do it on both devices and see if there is a difference. When not, you can just leave it. If anything, it will prevent offloading, not allow it.
(but on your devices bridges with vlan filtering will never be offloaded)
 
laotse
just joined
Topic Author
Posts: 10
Joined: Fri Jan 21, 2022 11:40 am

Re: Virtual WiFi interface does not exchange data

Wed Feb 02, 2022 1:25 pm

There is no STP tab in the bridge config. I run 6.49.2. The tabs in the bridge config are: Bridge, Ports, Port Extensions, VLANs, MSTIs, Port MST Overrides, Filters, NAT, Hosts, MDB.

There is an STP tab in "Bridge Port", but this does not exist for the wireless ports.
Last edited by laotse on Wed Feb 02, 2022 1:34 pm, edited 1 time in total.
 
erlinden
Forum Guru
Forum Guru
Posts: 1957
Joined: Wed Jun 12, 2013 1:59 pm
Location: Netherlands

Re: Virtual WiFi interface does not exchange data

Wed Feb 02, 2022 1:29 pm

There is no STP tab in the bridge config. I run 6.49.2. The tabs in the bridge config are: Bridge, Ports, Port Extensions, VLANs, MSTIs, Port MST Overrides, Filters, NAT, Hosts, MDB.
And if you double click on the bridge?
 
laotse
just joined
Topic Author
Posts: 10
Joined: Fri Jan 21, 2022 11:40 am

Re: Virtual WiFi interface does not exchange data

Wed Feb 02, 2022 2:03 pm

Ah, found. Setting to none didn't change the situation.

I tried something else. I attached ether2 to the same VLAN, plugged in a laptop and see that it is configured to 192.168.188.252/32!
Well, I added 192.168.188.16/24 to the interface, tried to ping 192.168.188.1, but it fails. I neither see anything using torch on ether2 during the ping.
If I map ether2 to VLAN3 instead, everything works as expected; I get 172.18.34.252/24 and can ping 172.18.34.1. And, since the hEX does no firewalling so far, I can even ping 192.168.188.1. This situation does not change whether or not I chose RSTP on the bridges.
 
laotse
just joined
Topic Author
Posts: 10
Joined: Fri Jan 21, 2022 11:40 am

Re: Virtual WiFi interface does not exchange data

Wed Feb 02, 2022 2:28 pm

It seems I found the issue, and it's a really dumb error. Having mistyped during a ping I re-checked for other typos and it turned out that the DHCP pool was in 198.168.188.0/24! After correcting the pool it seems to work. I set protocol-mode to the rstp default, and it still works.

Thanks for your help and patience, and sorry for my bad recognition of numbers.
 
Lemel
just joined
Posts: 1
Joined: Thu Feb 03, 2022 8:22 pm

Re: Virtual WiFi interface does not exchange data

Thu Feb 03, 2022 8:57 pm

At any time, no more than one wireless hosted network can be enabled on a local computer, and only one wireless adapter will be used by the wireless hosted network. If there is more than one wireless hosted network adapter, Windows will select one adapter to use with the wireless hosted network. When hosted network APIs are used, the hosted network capable wireless adapter is virtualized to a maximum of 3 logical adapters

Who is online

Users browsing this forum: No registered users and 31 guests