3Com 10014302 Network Router User Manual


 
Example
Define class2 by invoking class1.
Define match rule for class2. As class1 will be invoked, you should configure class1
first.The match rule for class1 is: IP precedence is 5.
[3Com] qos class class1
[3Com-qosclass-class1] if-match ip-precedence 5
Define class2 packets with the match rule as class1 and destination MAC address as
0050-BA27-BED3.
[3Com] qos class class2
[3Com-qosclass-class2] if-match class class1
[3Com-qosclass-class2] if-match destination-mac 00-50-BA-27-BE-D3
1.13 if-match
criteria
Syntax
if-match [ logic-not ] criteria
undo if-match [ logic-not ] criteria
View
Class view
Parameter
criteria
: Match rule of a class, which can be acl, any, class-map, destination-mac,
inbound-interface, ip-precedence, dscp, protocol, source-mac or mpls-exp.
Description
Using the if-match not command, you can define the rule for all packets not
satisfying the specified match rule. Using the undo if-match not command, you can
delete the rule of all packets not satisfying the specified match rule.
For the related command, see qos class.
Example
Define the packets with class match protocol not being IP.
[3Com] qos class class1
[3Com-qosclass-class1] if-match logic-not protocol ip
3Com Router Command Reference Guide Addendum for V1.2
16