limiting bandwidth in switch mode

hi i need some advice to do limiting bandwidth in below topology:

(internet)---(isp)---(my-router)---(client1-router)
                          |--------(client2-router)
                          |--------(client3-router)

i’ve got 5 public ip address from the isp that i want to share to the client:

x.x.x.90 for my router in ether1
x.x.x.91 for client1-router
x.x.x.92 for client2-router
x.x.x.93 for client3-router

i’ve done with the following configurations:

set ether2 master-port=ether1 comment="client1"
set ether3 master-port=ether1 comment="client2"
set ether4 master-port=ether1 comment="client3"

the config has working properly to make the clients accessing the internet
now i’m trying to do limiting the bandwidth for each client
i’ve done with this simple queue:

simple queue add target=ether2 max-limit=512k/512k
simple queue add target=ether3 max-limit=512k/512k
simple queue add target=ether4 max-limit=512k/512k

but that’s config not work and i have no idea how to do that. i really need the expert’s advice :slight_smile:
btw, i’m using routerboard 1200 with routeros v 6.10

thanks..

Queues are CPU driven feature, they do not work on switched ports.
Only way to limit bandwidth on switched ports is this:

/interface ethernet
set [ find default-name=ether2 ] bandwidth=unlimited/512k
set [ find default-name=ether3 ] bandwidth=unlimited/512k
set [ find default-name=ether4 ] bandwidth=unlimited/512k

Note. RX limiting is not supported on RB1200 switch ports.

However queues will work if you bridge ports together:

/interface bridge
add name=bridge1
/interface bridge settings
set use-ip-firewall=yes
/interface bridge port
add bridge=bridge1 interface=ether1
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=ether4

hi becs thank you for your response.. yes i’ve been thinking to change to bridge mode to solve this, just curious can do it in switch mode, now everything is clear.. btw, what routerboard series that support rx limiting in switch mode?

RX limiting in switch mode is supported on RB750GL, RB951G-2HnD, RB2011 series(ether1-ether5+sfp1) and RB1100AHx2(ether1-ether5, ether6-ether10).

oic, all series that using atheros 8327.. lucky me, i have two rb951g :smiley:

perhaps somebody need to add that to wiki, because this one is not clear enough:

rate (only applies to Atheros8327) - Sets limitation (bits per second) for all matched traffic. Can only be applied to first 32 rule slots.

ok, thank you very much becs..

hi becs.. i’ve tried to set rx/tx = 1M/1M in rb951g, but its not works.. when i set tx = 1M in rb1200 its works.. what i missed? :frowning:

i’ve attached the screenshot my config..

regards..
qos.jpg

Hi,

Sorry to dig up a slightly old thread, but can you rate limit on RB260GS?

I believe you can but reading this has put doubt in my mind!

Thanks

Hi,

Sorry to dig up a slightly old thread, but can you rate limit on RB260GS?

I believe you can but reading this has put doubt in my mind!

Thanks

In current version of switchOS you can only set the egress rate on the ports, but it is possible