39
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Enter interface view.
interface
interface-type
interface-number
N/A
3. Configure the rate limit
for the interface.
qos lr
{
inbound
|
outbound
}
cir
committed-information-rate [
cbs
committed-burst-size ]
By default, rate limit is not
configured on an interface.
Displaying and maintaining traffic policing, GTS,
and rate limit
Execute display commands in any view.
Task Command
Display QoS and ACL resource usage.
display
qos-acl
resource
[
slot
slot-number ]
Display traffic behavior configuration.
display traffic behavior user-defined
[ behavior-name ]
Display GTS configuration on an interface.
display qos gts interface
[ interface-type interface-number ]
Display rate limit configuration on an
interface.
display qos lr interface
[ interface-type interface-number ]
Traffic policing configuration example
Network requirements
As shown in Figure 12, configure traffic policing on GigabitEthernet 1/0/1 of Switch A to meet the
following requirements:
• Limit the rate of traffic from the server to 102400 kbps: Transmit the conforming traffic, mark the
excess traffic with DSCP value 0, and then transmit the excess traffic.
• Limit the rate of traffic from Host A to 25600 kbps: Transmit the conforming traffic, and drop the
excess traffic.
Configure traffic policing on GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 of Switch B to meet the
following requirements:
• Limit the total incoming traffic rate of GigabitEthernet 1/0/1 to 204800 kbps and drop the excess
traffic.
• Limit the outgoing HTTP traffic (traffic accessing the Internet) rate of GigabitEthernet 1/0/2 to
102400 kbps and drop the excess traffic.