95
Step
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
, 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
.
<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