R2511-HP MSR Router Series ACL and QoS Configuration Guide(V5)

94
Displaying and maintaining DAR for other types of traffic than
P2P
Task Command
Remarks
Display information about
the DAR module.
display dar information [ | { begin | exclude |
include } regular-expression ]
Available in any view.
Display DAR protocol
information.
display dar protocol { protocol-name | all } [ | { begin
| exclude | include } regular-expression ]
Available in any view.
Display information about
renamed user-defined
protocols.
display dar protocol-rename [ | { begin | exclude |
include } regular-expression ]
Available in any view.
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.
Clear the cache
information of all the
sessions.
reset dar session Available in user view.
DAR configuration examples
FTP transfer prohibition configuration example
Network requirements
As shown in Figure 34, configure the router to prohibit PCs from uploading files to or downloading files
from the FTP server.
Figure 34 Network diagram
Configuration procedure
# Configure the classifier ftpclass for matching FTP packets.
<Router> system-view
[Router] traffic classifier ftpclass
[Router-classifier-ftpclass] if-match protocol ftp
[Router-classifier-ftpclass] quit
# Configure a packet filtering behavior.
[Router] traffic behavior deny
[Router-behavior-deny] filter deny