R0106-HP MSR Router Series ACL and QoS Command Reference(V7)
86
To perform rate limiting for a single IP address, use the qos car acl command in interface view.
Examples
# Apply CAR list 1 to the outbound direction of GigabitEthernet 2/1/0. CAR list 1 limits the rate of each
host on the subnet 1.1.1.0/24 to 100 kbps, and traffic of IP addresses in the subnet does not share the
remaining bandwidth.
<Sysname> system-view
[Sysname] qos carl 1 source-ip-address subnet 1.1.1.0 24 per-address
[Sysname] interface gigabitethernet 2/1/0
[Sysname-GigabitEthernet2/1/0] qos car outbound carl 1 cir 100 cbs 6250 ebs 0 green pass
red discard
# Apply CAR list 2 to the outbound direction of GigabitEthernet 2/1/0. CAR list 2 limits the rate of each
host in the IP address range of 1.1.2.100 to 1.1.2.199 to 5 Mbps, and traffic of IP addresses in the subnet
shares the remaining bandwidth.
<Sysname> system-view
[Sysname] qos carl 2 source-ip-address range 1.1.2.100 to 1.1.2.199 per-address
shared-bandwidth
[Sysname] interface gigabitethernet 2/1/0
[Sysname-GigabitEthernet2/1/0] qos car outbound carl 2 cir 5000 cbs 3125 ebs 31250 green
pass red discard
Related commands
• display qos carl
• qos car
GTS commands
display qos gts interface
Use display qos gts interface to view generic traffic shaping (GTS) configuration and statistics on a
specified interface or all the interfaces.
Syntax
display qos gts interface [ interface-type interface-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface-type interface-number: Specifies an interface by its type and number. If no interface is specified,
this command displays the GTS configuration and statistics on all the interfaces.
Examples
# Display the GTS configuration and statistics on all interfaces.
<Sysname> display qos gts interface
Interface: GigabitEthernet2/1/0