Community discussions

MikroTik App
 
ken999
just joined
Topic Author
Posts: 2
Joined: Fri Jun 17, 2022 2:30 pm

VLANs on Wireless

Fri Jun 17, 2022 3:01 pm

Hi everyone, I am using RouterOS for a while. I have a hap ac and cap and both using RouterOS 7.1.3
Currently my hap ac WiFi has 2 ssid, one for my home use and one is the guest WiFi and using cap ac as WiFi repeater only for the home WiFi without guest one.

I try to connect the device like this
ISP Switch<--Ethernet---> hap ac <---Ethernet----> cap ac
I would like to extend my WiFi using VLAN with a Ethernet cable instead of using repeater mode and I checked the official document from the below links
https://wiki.mikrotik.com/wiki/Manual:VLANs_on_Wireless
https://wiki.mikrotik.com/wiki/Manual:Bridge_VLAN_Table
https://wiki.mikrotik.com/wiki/Manual:I ... _Filtering
https://help.mikrotik.com/docs/display/ ... +switching
and get a bit confused for the "new way" and "old way" to create a vlan

Image
[admin@R1] >
/interface vlan
add interface=ether1 name=vlan111 vlan-id=111
add interface=ether1 name=vlan222 vlan-id=222

/ip address
add address=192.168.1.1/24 interface=vlan111
add address=192.168.2.1/24 interface=vlan222
As far as I know, from link1 document, R1 router seems using old way to create a vlan interface which will using CPU resources.
Seems the second and third link are focus on the switch side but not the router side, so how the data is tagged before coming to the switch?
I know the wireless interface does not goes to switch and no hardware offload. But I just wonder what is the correct / equivalent new way to do the same thing in R1 router without using CPU resources? Or the first tagged devices must using CPU?
Thanks for your help.
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: VLANs on Wireless

Fri Jun 17, 2022 4:38 pm

R2 adds a tag to what ingresses through the wireless interface using its wireless driver settings...
Thats why R2 handles wlan1 and wlan2 traffic as tagged...
/interface bridge vlan
add bridge=bridge1 tagged=ether2,wlan1 vlan-ids=111
You could as well treat the wireless interface as your ethernet ports, e.g. set the PVID value... But this time those ports would be untagged under /interface bridge vlan
There is nothing wrong with the way R2 communicates with R1, it is a RoAs setup, all the Vlans are passing through one connection ( Trunk Port ) between those two Routers.

You could as well apply Bridge vlan filtering to R1, but you should know that Bridge VLAN filtering in hardware is supported on specific models and or versions...
R1 in the example, Vlans work in software as well. What you will choose depends on many factors, mostly on the network design and your performance expecations or needs...
 
ken999
just joined
Topic Author
Posts: 2
Joined: Fri Jun 17, 2022 2:30 pm

Re: VLANs on Wireless

Sat Jun 18, 2022 5:37 am

Thanks for your clarification. I just use the method in the first link setup the network. Although the software method may not get great throughput on speed test (using 50-90% CPU with 150-200Mbps on hap ac, included routing to Internet), it seems the easiest way to do this.

Who is online

Users browsing this forum: No registered users and 24 guests