How do I set the rate limit based on the website address

13

Assume that the AR router connects to users on private network segments of 192.168.0.2 and 192.168.0.100 and the rate limit needs to be set to 2 Mbit/s for each address in both inbound and outbound directions. Perform the following configurations:

Enter the view of the public network interface.
[Huawei] interface GigabitEthernet 0/0/0

Set the rate limit to 2 Mbit/s in the outbound direction so that traffic from the internal network to the public network is within 2 Mbit/s.
[Huawei-GigabitEthernet0/0/0] qos car outbound source-ip-address range 192.168.0.2 to 192.168.0.100 per-address cir 2000 //*If the rate limit needs to be set for each address, specifyper-address. If the rate limit is set for all addresses, you do not need to specifyper-address.*//

Set the rate limit to 2 Mbit/s in the inbound direction so that traffic from the public network to the internal network is within 2 Mbit/s.
[Huawei-GigabitEthernet0/0/0] qos car inbound destination-ip-address range 192.168.0.2 to 192.168.0.100 per-address cir 2000

Other related questions:
Configure rate limiting based on IP addresses
You can run the qos car command in the interface view to configure rate limiting based on IP addresses.

How to configure an AR to limit the rate of traffic based on MAC addresses
You can configure a traffic policy to limit the rate of traffic based on MAC addresses as follows: # traffic classifier mac1 operator and if-match source-mac 0015-c50d-0001 //Configure a matching rule based on the source MAC address 0015-c50d-0001 in the traffic classifier mac1. traffic classifier mac2 operator and if-match source-mac 0015-c50d-0002 //Configure a matching rule based on the source MAC address 0015-c50d-0002 in the traffic classifier mac2. traffic classifier mac3 operator and if-match source-mac 0015-c50d-0003 //Configure a matching rule based on the source MAC address 0015-c50d-0003 in the traffic classifier mac3. # traffic behavior d1 car cir 3000 cbs 564000 pbs 939000 mode color-blind green pass yellow pass red discard //Create the traffic behavior d1 and configure the rate limit to 3000 kbit/s. # traffic policy myqos //Configure the traffic policy myqos. classifier mac1 behavior d1 //Bind the traffic classifier mac1 to the traffic behavior d1. classifier mac2 behavior d1 //Bind the traffic classifier mac2 to the traffic behavior d1. classifier mac3 behavior d1 //Bind the traffic classifier mac3 to the traffic behavior d1. # interface GigabitEthernet 0/0/0 ip address 10.1.1.1 255.255.255.0 traffic-policy myqos inbound //Apply the traffic policy myqos to the inbound interface. #

Do S series switches support rate limiting based on IP addresses
S series switches (except S1700 switches) do not support rate limiting based on IP addresses.

Rate limiting based on IP addresses does not take effect on an AR
Verify that the interface to which rate limiting is applied is the router's interface connecting to intranet users or the interface does not have NAT configured. If the interface has NAT configured, ensure that it can match source and destination IP addresses correctly. For the intranet, inbound and outbound in the command indicate the source and destination IP addresses respectively.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top