R2511-HP MSR Router Series ACL and QoS Command Reference(V5)

139
smtp, snmp, socks, sqlnet, sqlserver, ssh, streamwork, sunrpc , syslog, telnet, tftp, vdolive, winmx,
xwindows, unknown-tcp, unknown-udp, unknown-others, user-defined01,
user-defined02user-defined10 (if the names of user-defined01 through user-defined10 are modified,
the new names are used). Among these protocols names, unknown-tcp identifies unknown TCP protocol
packets, unknown-udp identifies unknown UDP protocol packets, and unknown-others identifies other
unknown IP protocol packets. user-defined01, user-defined02,…, user-defined10 are user-defined
protocol names. These protocols are not effective unless port numbers are assigned for them with the dar
protocol command.
Examples
# Define a criterion to match the SMTP protocol for class smtp-class.
<Sysname> system-view
[Sysname] traffic classifier smtp-class
[Sysname-classifier-smtp-class] if-match protocol smtp
if-match protocol http
Use if-match protocol http to define a match criterion for the HTTP protocol.
Use undo if-match protocol http to delete a HTTP protocol match criterion.
Syntax
if-match [ not ] protocol http [ url url-string | host hostname-string | mime mime-type ]
undo if-match [ not ] protocol http [ url url-string | host hostname-string | mime mime-type ]
Default
No HTTP protocol match criterion is configured.
Views
Class view
Default command level
2: System level
Parameters
not: Specifies to match packets not conforming to the specified criterion.
url url-string: Matches a URL string of 1 to 32 characters. The URL string supports simple wildcards.
host hostname-string: Matches a host name, a string of 1 to 32 characters. The host name string supports
simple wildcards.
mime: mime-type: Matches a MIME type, a string of 1 to 32 characters. The MIME type supports simple
wildcards.
Table 42 Simple wildcard match rules
Wildcard Descri
p
tion
*
Matches any number of characters, which can be numbers, upper/lower case letters,
hyphens, and underscores.
#
Matches one character, which can be a number, an upper/lower case letter, a hyphen,
or an underscore.
| Matches either the string on the right or the string on the left.