Command Reference Guide

3Com Router 5000 Family and Router 6000 Family if-match {destination-mac | source-mac} 43
Command Reference
if-match {destination-mac | source-mac}
Purpose Use the if-match { destination-mac | source-mac } command to define match rule
of destination or source MAC address.
Use the
undo if-match { destination-mac | source-mac } command to delete the
match rule of destination or source MAC address.
Syntax if-match [not ] { destination-mac | source-mac } mac-address
undo if-match [ not ] { destination-mac | source-mac } mac-address
Parameters not
Not match the class.
mac-address
MAC address.
Example Define that the match rule of class2 is to match the packets with the destination MAC
address 0050-ba27-bed3.
[3Com ] traffic classifier class1
[3Com -classifier-class1] if-match destination-mac 0050-ba27-bed3
Define the match rule of class2 as matching the packets with source MAC address
0050-ba27-bed2.
[3Com ] traffic classifier class2
[3Com -classifier-class2] if-match source-mac 0050-ba27-bed2
View This command can be used in the following views:
Class view
Description The match rules of the destination MAC address are only meaningful for the policies
of the outbound direction and the interface of Ethernet type.
The match rules of the source MAC address are only meaningful for the policies of
the input direction and the interface of Ethernet type.
Related Command traffic classifier