1-4
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> 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.
Содержание E4510-48G
Страница 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Страница 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Страница 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Страница 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Страница 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Страница 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Страница 857: ...iii 7 Track Configuration Commands 7 1 Track Configuration Commands 7 1 display track 7 1 track nqa 7 2 ...
Страница 914: ...5 17 Sysname reset oam ...
Страница 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Страница 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...