Hello,
I need limit the Bandwidth of my clients…I’ve a 512Kbps/256Kbps line, and I want to offer connections of 128Kbps/64Kbps and 64/32Kbps, but I don’t know how setup it.
I create a Simple Queue with “interface=pppoe-user1”, It works good, but when the client logout the simple queue clear the interface, and set to Unknown. And when the client login he doesn’t have limit.
I create PCQ rules but, I can’t separate the 64Kbps/32Kbps PPPoE users to the 128Kbps/64kbps in the Queue Tree.
Ip range of 128Kbps/64Kbps=192.168.0.160-192.168.0.224 (via Ip Pool)
Ip range of 64/32Kbps=192.168.0.230-246 (via Ip Pool)
Then I create 2 profiles in the PPP Profiles (“prof-128” and “prof-64”)
Then I create 4 Queue types (128down, 128up, 64down and 64up) all with PCQ. It’s OK
But! I don’t know What do here, because I try to create a Queue tree rule, but I only can select parent=global in (or out), but I’ve 2 types of users with different bandwidth.
How can I limit the bandwidth (via PCQ) for 2 different users group.
But, instead of PCQ yuc can just setup 2 different profiles with different speeds.
Then when create new pppoe user, just assigm him to neeeded profile. Dynamic simple queeue with apropriate setting for that user will be used when he connect.
I read the other post w/your example. I follow it, but I’ve problems .
I change some config.
The new range of the PPPoE connections (Basic=128Kbps/64Kbps) is 192.168.0.80-192.168.0.96 =(/28)
The new range of the PPPoE connections (Light=64Kbps/32Kbps) is 192.168.0.100-192.168.132 =(/27).
I set up this.. (I change local to all in connection, because the users connect via PPPoE)
ip firewall mangle
add src-address=192.168.0.80/28 in-interface=all action=passthrough mark-connection=light-up mark-flow=light-
up
add in-interface=local connection=light-up action=accept mark-flow=light-down
add src-address=192.168.0.100/27 in-interface=all action=passthrough mark-connection=basic-up mark-flow=basic-
up
add in-interface=local connection=basic-up action=accept mark-flow=basic-down
The problem is the users continue without bandwidth limitation, and a strange thing when a user (PPPoE) login, the Router automatically create that:
/ip firewall mangle src-address=0.0.0.0/0 in-interface= protocol=tcp. But when the user logout the mangle is erase.
we just send the bandwith via radius to our mt routers like this:
RateLimit=768k/900k 768k/1400k 768k/768k 15/15
that creates a simple queue per user und deletes it when the user logs off