Hello everybody
I was having an issue with vlan configuration that was not solved in an old thread.(http://forum.mikrotik.com/t/vlan-and-bridge-forward-traffic-to-wds-interfaces/132104/1)
Now I have another issue. I have a wireless network that contains VLANs(10,11,20). Each ISP is on a separate VLAN. I use bridge on the client side and add the vlan interface with the ethernet interface. Every thing is fine except the omintik in the above link which my goal was is to keep the bridge containing vlans but need to configure ethernet-5 as in vlan 20 so I can connect a router on ehter-5 and give a pppoe user from ISP vlan 20. I did a workaround and created a vlan 20 interface on the bridge and configured this pppoe on the vlan interface and masquerade rule and dhcp server so the router connected to ether-5 can access the internet.
Now I tried all interface queues in order to limit the bandwidth on the wireless clients sides. I tried to create a pcq rule and limited the upload and download and tried to change the ethernet interface queue from only-hardware-queue to this pcq, but didn’t work. I tried to make a simple queue using interface as target also didn’t work. I tired lot of solutions on the forum but no one worked. I also did a workaround solution but it is not working 100%.
/interface bridge settings
set use-ip-firewall=yes use-ip-firewall-for-pppoe=yes
I enabled the use-ip-firewall and use-ip-firewall-for-pppoe on the bridge and I marked the packets using bridge filters; one mark for download and another mark for the upload. The queues are turning into red but they are not limiting the wlan and the vlan interface. for example the queue is 4M and the ether interface will be limited to this but the wlan and vlan will show 5 or 6 mega sometimes or even more and from the ap side the traffic on the wds interface is larger than the desired limit 4M which is my goal to reduce traffic bandwidth on wireless interfaces.
Here is a complete configuration of the client side.
/interface bridge
add name=bridge1 protocol-mode=none
/interface wireless
set [ find default-name=wlan1 ] band=5ghz-a/n disabled=no frequency=5750 frequency-mode=superchannel mode=station-wds radio-name="client" scan-list=5750 ssid=ap
/interface vlan
add interface=wlan1 name=vlan20 vlan-id=20
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa2-psk eap-methods="" mode=dynamic-keys supplicant-identity=MikroTik
/queue simple
add max-limit=3M/3M name=winbox packet-marks=winbox target=""
add max-limit=7M/7M name=download packet-marks=pppoe-download target=""
add max-limit=7M/7M name=upload packet-marks=pppoe-upload target=""
/interface bridge filter
add action=mark-packet chain=forward in-interface=vlan20 mac-protocol=pppoe new-packet-mark=pppoe-download
add action=mark-packet chain=forward in-interface=ether1 mac-protocol=pppoe new-packet-mark=pppoe-upload
/interface bridge port
add bridge=bridge1 interface=ether1
add bridge=bridge1 interface=vlan20
/interface bridge settings
set use-ip-firewall=yes use-ip-firewall-for-pppoe=yes
/ip address
add address=172.16.11.112/24 interface=wlan1 network=172.16.11.0
/ip firewall mangle
add action=mark-packet chain=prerouting new-packet-mark=winbox passthrough=yes port=8291 protocol=tcp
Can anybody help please I usually post topic in forum after reading and trying all solutions on the forum.