How to limit speed for each user in Mikrotik Router | Mikrotik Bandwidth Management







 

Mikrotik Bandwidth Management - Create and Limit Bandwidth Automatically in Queue Tree -------------------------------------------------------------------------------------------------------------------------------------------------------- Creating and limiting bandwidth automatically in a Queue Tree on a MikroTik router is useful for managing bandwidth distribution across multiple users or networks. Here's how you can set it up: 1. Mark Connections and Packets: First, you need to mark connections and packets in the firewall. This allows the Queue Tree to classify traffic properly. Step 1: Mark Connections Go to IP Firewall Mangle. Click + to add a new rule. Set Chain to prerouting. Set Src. Address or Dst. Address (depending on whether you want to limit incoming or outgoing traffic). Under Action, select mark-connection. Give it a New Connection Mark name (e.g., user_conn). Click Apply and OK. Step 2: Mark Packets Click + to add another new rule. Set Chain to prerouting. In the Connection Mark field, select the connection mark you created earlier (e.g., user_conn). Under Action, select mark-packet. Give it a New Packet Mark name (e.g., user packet). Click Apply and OK. 2. Create Parent Queue Tree: The Parent Queue Tree is used to manage the total bandwidth available. Go to Queues Queue Tree. Click + to add a new queue. Set Name (e.g., Parent). Set Parent to global. In Max Limit, set the total bandwidth (e.g., 10M for 10 Mbps). Leave other fields as default. Click Apply and OK. 3. Create Child Queue Tree: This is where you set specific limits for different users or groups. Click + to add another new queue. Set Name (e.g., User Limit). Set Parent to the Parent queue you created (e.g., Parent). Set Packet Mark to the packet mark you created earlier (e.g., user packet). Set the Max Limit to the desired bandwidth (e.g., 1M for 1 Mbps). Optionally, set Limit-at to guarantee a minimum bandwidth. Click Apply and OK. 4. Test the Configuration: Once everything is set up: Test the configuration by accessing the network from the users or IP addresses you have configured. Use tools like bandwidth tests to verify the limits. Example: If you want to limit all users in a specific subnet (e.g., 192.168.1.0/24) to a maximum of 2 Mbps each: Mark Connections: Source Address: 192.168.1.0/24. Action: Mark Connection as subnet_conn. Mark Packets: Connection Mark: subnet_conn. Action: Mark Packet as subnet_packet. Parent Queue Tree: Name: Subnet_Parent. Max Limit: 10M (10 Mbps total for the subnet). Child Queue Tree: Name: User_Limit. Parent: Subnet_Parent. Packet Mark: subnet_packet. Max Limit: 2M (2 Mbps per user). This setup ensures that each user in the subnet is limited to 2 Mbps while the entire subnet is limited to 10 Mbps. -------------------------------------------------------------------------------------------------------------------------------------------------------------- Please My Channel and Pages follow Subscribe, Like and Share Thank You ==================================================================== 1- Subscribe YouTube: Zila ABC Tube    / @zilaabctube  

Network System

I configure any Wi-Fi router and internet installation.

Post a Comment

Welcome to My Blog

Previous Post Next Post
/