OK here is an example of PCQ
add dst=ether1 name=LAN queue=pcq-upload-default/pcq-download-default target=192.168.90.0/24
Notice few things
1. dst=ether1, where ether1 is my WAN port. this means this rule does not appply to traffic heading to LAN port, fit your first requirement.
2. queue type is PCQ which apply to individual IP with in the target range, not just 1 IP address. I will explain where it is configured.
3. target apply to entire subnet, that is from 192.168.90.1 to 192.168.90.254. I know you asked for a specific range, it can be done by mark packet which is more complicated for you to do.
now back to the PCQ
it is set up in queue type:
set 5 pcq-burst-rate=2M pcq-burst-threshold=768k pcq-burst-time=20s pcq-rate=768k
set 6 pcq-burst-rate=5M pcq-burst-threshold=1500k pcq-burst-time=20s pcq-rate=1500k
I'd suggest you do PCQ for the whole subnet, because if you don't, those IP that are not controlled by any queue rule is able to take up all your bandwidth. cannot be a good thing. You can set up a max-limit to match your overall bandwidth, this allow any IP to do so, but only when no-one else is needing it. If all IP are requesting bandwidth at the same time, PCQ will equalize between them.