GL-MT6000 Rate Limiting and Prioritization

I've been a long time user of OpenWrt but through the GL-Inet products so my understanding of it is limited. I have a need to setup a GL-Inet product as a router for a business, specifically the GL-MT6000. I'm not sure how to achieve the following:

  1. There are 4 wireless networks: A, B, C, D. They should receive priority in the order A, B, C, D.
  2. On networks C and D, each connected device needs to be rate limited to 5mbps both download and upload. Networks A and B have no rate limiting.

I’ve installed SQM, specifically the "luci-app-sqm" plug-in, and been trying to understand how to achieve this but failing. I've also been reading through documentation but am not finding or not understanding well enough to safely configure SQM to work as desired. Can I get some help?

SQM is not coming with any scripts that do what you want to be done here. What SQM can offer is giving each device an equitable share of your wan capacity... that likely is a better starting position from which to research your exact solution, but it is clearly not all you ask for.

Prioritising different WiFi networks is IMHO under defined. If these for networks use different frequencies/APs there is no need to prioritise them in regards to each other. Only if you want to run multiple SSIDs on the same radio and channel then priority makes some sense, however prioritising between different SSIDs is something I have zero experience with.

I believe if you know the MACs of these devices then nftqos might be part of a solution.

Thanks for the input. The GL-MT6000 comes out of the box with 4 configurable networks each with their own SSID: 5 GHZ, 5 GHZ Guest, 2.4 GHZ, and 2.4 GHZ Guest. I think all 4 are sharing from the same WAN capacity. So yes, to be more clear I would like to prioritize the internal SSIDs over the guest SSIDs and on each SSID share the capacity equitably. But giving each device an equitable share of the WAN capacity would be a big step towards achieving this. How would I do that?

Also, I won't know the MACs of most of the devices on the network beforehand. So they would need to be handled dynamically.

Install luci-app-sm and then follow the instruction here for per-internal-IP-fairness:
https://openwrt.org/docs/guide-user/network/traffic-shaping/sqm-details#making_cake_sing_and_dance_on_a_tight_rope_without_a_safety_net_aka_advanced_features