I need manage bandwidth by WLAN and AP.
Currently I have a RB2011 with Ubiquiti APs and I do WLAN bandwidth management by WLAN VLAN, for example Visitors WLAN VLAN100 and I create a DHCP server to assign a range of IP so that I can mark that packets. After I have that packets of that WLAN “Visitors” I can set the queue tree.
My question is, how can I do bandwidth management by AP. Maybe creating a VLAN with Eth that its connected to that AP? Or creating a custom WLAN VLAN for that AP?
So I’t would be nice to have for example:
Queue Tree
Global Download---------10M
Visitors (VLAN100) ----- max-limit 5M
AP 1 (VLAN 101) ---- limit-at 3M - max-limit 5M
AP 2 (VLAN 102) ---- limit-at 2M - max-limit 5M
Staff (VLAN120) ------ max-limit 5M
AP 1 (VLAN 121) ---- limit-at 1M - max-limit 5M
AP 2 (VLAN 122) ---- limit-at 4M - max-limit 5M
So this way I can control AP bandwidth congestion.
With Ubiquiti software I can assign a custom VLAN for that WLAN in that AP but I don’t know if there is a better way.
Currently I’m marking packets by Source-Destination IP address list.
But I don’t know how to mark packets to separate that traffic (by AP traffic) from global WLAN VLAN (several AP).
I mean, currently I can manage traffic by markPackets_IP_pool_vlan100 (DHCP Server → VLAN100 → IP_pool_vlan100) but I need to separate to a child AP queue tree. I need a way to mark that packets.
You can add queue tree directly to a VLAN, when that is visible in the router where you do the limiting.
When not, you should know the routing further down the path so it should be possible to know that to match (if not VLAN).
Can you tell me an example, how can you do that you’re saying?
AFAIK every packets that leaves a Eth with a VLAN remains “marked” with that VLAN_id.
I’m using 2 RB2011 and 2 switch HP JG350a (supports VLAN) but in only one RB2011 I will do all the DHCP server for the VLAN.
Attach scheme of your site. Why you want control AP traffic directly? Maybe use shaping of clients or services? If you want separate AP traffic to queue you need QinQ vlans.
Currently this config is working perfect. Depending on the WLAN VLAN id the mikrotik assign an Ip address and with that I mark packets to create the Queue tree by WLAN.
Since Ubiquiti AP doesn’t support the max number of clients in a hard way I was thinking in a method to control the amount of users per WLAN per AP that I have. But the problemis how I distinguish this traffic in the firewall mangle mark packets.
For example in Eth11 I need to connect a HP switch that supports VLAN and in this switch connect a VLAN for WLAN, another for LAN, and so on. How can I do this config in mirkotik since Eth11 gets multiple VLANs.
Yes, the thing is how to do it. Packet mark by Ip address list?
I need to use hotspot per WLAN so this is another problem.
I will need to create a hotspot server per AP VLAN?
Thanks.
I need to create a DHCP server per VLAN interface, right? So this I can control what IP has each Access Point and mark it in firewall → mangle.