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

101
<Router> system-view
[Router] dar p2p signature-file meta.mtd
# Configure protocol group 1.
[Router] dar protocol-group 1
[Router-protocol-group-1] protocol bittorrent
[Router-protocol-group-1] protocol eMule/eDonkey
[Router-protocol-group-1] quit
# Create a class and reference protocol group 1 in it.
[Router] traffic classifier p2p
[Router-classifier-p2p] if-match protocol-group 1
[Router-classifier-p2p] quit
# Configure a packet filtering behavior.
[Router] traffic behavior deny
[Router-behavior-deny] filter deny
[Router-behavior-deny] quit
# Create a QoS policy and associate the traffic behavior with the class in the policy.
[Router] qos policy p2p
[Router-qospolicy-p2p] classifier bt behavior deny
[Router-qospolicy-p2p] quit
# Enable P2P traffic recognition on GigabitEthernet 1/1, and apply the QoS policy to the incoming
traffic of GigabitEthernet 1/0/1.
[Router] interface gigabitethernet 1/1
[Router-GigabitEthernet1/1] dar enable
[Router-GigabitEthernet1/1] qos apply policy p2p inbound
Run the BT client and the eMule/eDonkey client on a connected PC and start to download files.
Check the interfaces of the clients, and you can see they cannot download files.