Command Reference Guide

3Com Router 5000 Family and Router 6000 Family if-match 41
Command Reference
if-match
Purpose Use the if-match command to define the match rule of a class.
Use the
undo if-match command to delete the match rule of a class.
Syntax if-match [ not ] match-criteria
undo if-match [ not ] match-criteria
Parameters not
Not match the class.
match-criteria
Class match rules. The value can include acl, any,
classifier, destination-mac, inbound-interface,
ip-precedence, dscp, fr-de, atm-clp, dot1p-cos,
protocol, source-mac, mpls-exp, and rtp.
When packets of a certain class do not meet the packet type restrictions of a rule, the
rule is senseless and regarded as ineffective, and the system will neglect it when
performing process by class. Restrictions of rules on packet types are as follows:
destination-mac, source-mac, and dot1p-cos are effective only for Ethernet
packets.
mpls-exp is effective in the inbound direction only for MPLS packets.
mpls-exp (in the outbound direction), ip-precedence, dscp, rtp, and acl are
effective for IP and MPLS packets.
fr-de, atm-clp, protocol, inbound-interface, any, and classifier are effective for all
packets.
Example Define if-match destination-mac rule and if-match inbound-interface rule on ATM
PVC.
[3Com ]display qos policy interface Atm 1/0/0 pvc 0/99
Atm1/0/0, pvc 0/99
Direction: Outbound
Policy: test
Classifier: test
Matched : 0/0 (Packets/Bytes)
1 Min Rate: 0 bps
Operator: AND
Rule(s) : if-match destination-mac ffff-ffff-ffff
if-match inbound-interface e0/0/0
Behavior: test
-none-
In fact, if-match destination-mac is ineffective on ATM PVC. Therefore,
the rule on the ATM PVC is like this:
Classifier: test