HP E4510-48G Command Reference Manual page 567

4510g series
Table of Contents

Advertisement

Suppose the logical relationship between classification rules is and. Note the following when using the
if-match command to define matching rules.
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.
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> system-view
[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> system-view
[Sysname] traffic classifier class2
[Sysname-classifier-class2] if-match source-mac 0050-ba27-bed2
# Define a rule for class3 to match the advanced IPv4 ACL 3101.
<Sysname> system-view
[Sysname] traffic classifier class3
[Sysname-classifier-class3] if-match acl 3101
# Define a rule for class4 to match the advanced IPv6 ACL 3101.
<Sysname> system-view
[Sysname] traffic classifier class4
[Sysname-classifier-class4] if-match acl ipv6 3101
# Define a rule for class5 to match all the packets.
<Sysname> system-view
[Sysname] traffic classifier class5
[Sysname-classifier-class5] if-match any
# Define a rule for class6 to match the packets with their DSCP precedence values being 1.
<Sysname> system-view
[Sysname] traffic classifier class6
[Sysname-classifier-class6] if-match dscp 1
# Define a rule for class7 to match the packets with their IP precedence values being 1.
<Sysname> system-view
[Sysname] traffic classifier class7
[Sysname-classifier-class7] if-match ip-precedence 1
# Define a rule for class8 to match IP packets.
1-4

Advertisement

Table of Contents
loading

Table of Contents