R3102-R3103-HP 6600/HSR6600 Routers ACL and QoS Configuration Guide

100
Configuring DAR packet accounting
With the packet accounting function of DAR, you can monitor the number of packets and the amount of
data traffic of application protocols on each interface. According to the statistics, you can apply a correct
QoS policy to the traffic.
To configure DAR packets accounting:
Ste
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter Ethernet
interface view.
interface interface-type interface-number N/A
3. Enable DAR packet
accounting.
dar protocol-statistic [ flow-interval time ]
By default, DAR packet
accounting is disabled.
Displaying and maintaining DAR
Task Command
Remarks
Display DAR protocol
packet statistics.
display dar protocol-statistic [ protocol protocol-name
| top top-number | all ] [ interface interface-type
interface-number ] [ direction { in | out } ] [ | { begin
| exclude | include } regular-expression ]
Available in any view.
Clear DAR protocol
packet statistics.
reset dar protocol-statistic { { protocol protocol-name
| interface interface-type interface-number } * | all }
Available in user view.
Blocking P2P downloading configuration example
Network requirements
As shown in Figure 34, configure the router to prevent BT clients or eMule/eDonkey clients on the PCs
from downloading files from the Internet.
Figure 34 Network diagram
Configuration procedure
# Load the P2P signature file meta.mtd.