Thanks a lot nhalachev,
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
/ queue type
add name="light-down" kind=pcq pcq-rate=65536 pcq-classifier=dst-address
add name="light-up" kind=pcq pcq-rate=32768 pcq-classifier=src-address
add name="basic-down" kind=pcq pcq-rate=131072 pcq-classifier=dst-address
add name="silver-up" kind=pcq pcq-rate=65536 pcq-classifier=src-address
/ queue tree
add name="all-out" parent=global-out queue=default
add name="light-down" parent=all-out flow=light-down queue=light-down
add name="basic-down" parent=all-out flow=basic-down queue=basic-down
add name="all-in" parent=global-in queue=default
add name="light-up" parent=all-in flow=light-up queue=light-up
add name="basic-up" parent=all-in flow=basic-up queue=basic-up
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=<pppoe-user1> protocol=tcp. But when the user logout the mangle is erase.