1-24QoS Configuration ExamplesConfiguration Example of Traffic policing and Line RateNetwork requirementAn enterprise network connects all the departments through an Ethernet switch. PC 1, with the IPaddress 192.168.0.1 belongs to the R&D department and is connected to Ethernet 1/0/1 of the switch.The marketing department is connected to Ethernet 1/0/2 of the switch.Configure traffic policing and line rate to satisfy the following requirements:z Set the maximum rate of outbound packets sourced from the marketing department to 64 kbps.Drop the packets exceeding the rate limit.z Set the maximum rate of outbound IP packets sent by PC 1 in the R&D department to 640 kbps.Drop the packets exceeding the rate limit.Network diagramFigure 1-9 Network diagram for traffic policing and rate limiting configurationConfiguration procedure1) Define an ACL for traffic classification.# Create ACL 2000 and enter basic ACL view. system-view[Sysname] acl number 2000# 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] quit2) 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/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