3Com S7902E Command Reference Manual - page 1685
2-3
Field
Description
customer-vlan-id vlan-id-list
Specifies to match the packets of specified VLANs of user
networks. The
vlan-id-list
argument specifies a list of VLAN
IDs, in the form of
vlan-id to vlan-id
or multiple discontinuous
VLAN IDs (separated by space). You can specify up to eight
VLAN IDs for this argument at a time. VLAN ID is in the range
1 to 4094.
In a class configured with the operator
and
, the logical
relationship between the customer VLAN IDs specified for
the
customer-vlan-id
keyword is
or
.
service-vlan-id
vlan-id-list
Specifies to match the packets of specified VLANs of the
operator’s network. The
vlan-id-list
argument is a list of VLAN
IDs, in the form of
vlan-id to vlan-id
or multiple discontinuous
VLAN IDs (separated by space). You can specify up to eight
VLAN IDs for this argument at a time. VLAN ID is in the range
1 to 4094.
In a class configured with the operator
and
, the logical
relationship between the service VLAN IDs specified for the
service-vlan-id
keyword is
or
.
Description
Use the
if-match
command to define a rule to match a specific type of packets.
Use the
undo if-match
command to remove a matching rule.
Suppose the logical relationship between classification rules is
and
. Note the following when using the
if-match
command to define matching rules.
z
If multiple matching rules with the
acl
or
acl ipv6
keyword specified are defined in a class, the
actual logical relationship between these rules is
or
when the policy is applied.
z
If multiple matching rules with the
customer-vlan-id
or
service-vlan-id
keyword specified are
defined in a class, the actual logical relationship between these rules is
or
when the policy is
applied.
Examples
# Define a rule for class1 to match the packets with their destination MAC addresses being
0050-ba27-bed3.
[Sysname] traffic classifier class1
[Sysname-classifier-class1] if-match destination-mac 0050-ba27-bed3
# Define a rule for class2 to match the packets with their source MAC addresses being
0050-ba27-bed2.
[Sysname] traffic classifier class2
[Sysname-classifier-class2] if-match source-mac 0050-ba27-bed2