QoS
through an Ethernet switch. PC 1, with the IP
and is connected to Ethernet 1/0/1 of the switch.
to Ethernet 1/0/2 of the switch.
g requirements:
Set the maximum rate of outbound packets sourced from the marketing department to 64 kbps.
Drop the packets exceeding the rate limit.
of outbound IP packets sent by PC 1 in the R&D department to 640 kbps.
Drop the packets exceeding the rate limit.
N
ram for traffic policing and rate limiting configuration
Configuration Examples
Configuration Example of Traffic policing and Line Rate
Network requirement
An enterprise network connects all the departments
address 192.168.0.1 belongs to the R&D department
The marketing department is connected
Configure traffic policing and line rate to satisfy the followin
z
z
Set the maximum rate
etwork diagram
Figure 45-9
Network diag
Configuration procedure
000
2] line-rate inbound 64
[Sysname-Ethernet1/0/2] quit
# Set the maximum rate of outbound IP packets sent by PC 1 in the R&D department to 640 kbps.
[Sysname] interface Ethernet1/0/1
[Sysname-Ethernet1/0/1] traffic-limit inbound ip-group 2000 640 exceed drop
1) Define an ACL for traffic classification.
# Create ACL 2000 and enter basic ACL view.
<Sysname> system-view
[Sysname] acl number 2
# Define a rule for the packets with 192.168.0.1 as the source IP address.
[Sysname-acl-basic-2000] rule permit source 192.168.0.1 0
[Sysname-acl-basic-2000] quit
2) Configure traffic policing and rate limiting
# Set the maximum rate of outbound packets sourced from the marketing department to 64 kbps.
[Sysname] interface Ethernet1/0/2
[Sysname-Ethernet1/0/
45-24