HP 6125XLG R2306-HP 6125XLG Blade Switch ACL and QoS Command Reference - Page 22

rule (Ethernet frame header ACL view

Page 22 highlights

• display packet-filter statistics sum rule (Ethernet frame header ACL view) Use rule to create or edit an Ethernet frame header ACL rule. Use undo rule to delete an Ethernet frame header ACL rule or some attributes in the rule. Syntax rule [ rule-id ] { deny | permit } [ cos vlan-pri | counting | dest-mac dest-address dest-mask | { lsap lsap-type lsap-type-mask | type protocol-type protocol-type-mask } | source-mac source-address source-mask | time-range time-range-name ] * undo rule rule-id [ counting | time-range ] * Default An Ethernet frame header ACL does not contain any rule. Views Ethernet frame header ACL view Predefined user roles network-admin Parameters rule-id: Specifies a rule ID in the range of 0 to 65534. If no rule ID is specified when you create an ACL rule, the system automatically assigns it a rule ID. This rule ID is the nearest higher multiple of the numbering step to the current highest rule ID, starting from 0. For example, if the rule numbering step is 5 and the current highest rule ID is 28, the rule is numbered 30. deny: Denies matching packets. permit: Allows matching packets to pass. cos vlan-pri: Matches an 802.1p priority. The vlan-pri argument can be a number in the range of 0 to 7, or in words, best-effort (0), background (1), spare (2), excellent-effort (3), controlled-load (4), video (5), voice (6), or network-management (7). counting: Counts the number of times the Ethernet frame header ACL rule has been matched. The counting keyword enables match counting specific to rules, and the hardware-count keyword in the packet-filter command enables match counting for all rules in an ACL. If the counting keyword is not specified, matches for the rule are not counted. dest-mac dest-address dest-mask: Matches a destination MAC address range. The dest-address and dest-mask arguments represent a destination MAC address and mask in the H-H-H format. lsap lsap-type lsap-type-mask: Matches the DSAP and SSAP fields in LLC encapsulation. The lsap-type argument is a 16-bit hexadecimal number that represents the encapsulation format. The lsap-type-mask argument is a 16-bit hexadecimal number that represents the LSAP mask. type protocol-type protocol-type-mask: Matches one or more protocols in the Ethernet frame header. The protocol-type argument is a 16-bit hexadecimal number that represents a protocol type in Ethernet_II and Ethernet_SNAP frames. The protocol-type-mask argument is a 16-bit hexadecimal number that represents a protocol type mask. 17

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114

17
display packet-filter statistics sum
rule (Ethernet frame header ACL view)
Use
rule
to create or edit an Ethernet frame header ACL rule.
Use
undo
rule
to delete an Ethernet frame header ACL rule or some attributes in the rule.
Syntax
rule
[
rule-id
] {
deny
|
permit
} [
cos
vlan-pri
|
counting
|
dest-mac
dest-address
dest-mask
| {
lsap
lsap-type
lsap-type-mask
|
type
protocol-type
protocol-type-mask
} |
source-mac
source-address
source-mask
|
time-range
time-range-name
] *
undo
rule
rule-id
[
counting
|
time-range
] *
Default
An Ethernet frame header ACL does not contain any rule.
Views
Ethernet frame header ACL view
Predefined user roles
network-admin
Parameters
rule-id
: Specifies a rule ID in the range of 0 to 65534. If no rule ID is specified when you create an ACL
rule, the system automatically assigns it a rule ID. This rule ID is the nearest higher multiple of the
numbering step to the current highest rule ID, starting from 0. For example, if the rule numbering step is
5 and the current highest rule ID is 28, the rule is numbered 30.
deny
: Denies matching packets.
permit
: Allows matching packets to pass.
cos
vlan-pri:
Matches an 802.1p priority. The
vlan-pri
argument can be a number in the range of 0 to 7,
or in words,
best-effort
(0),
background
(1),
spare
(2),
excellent-effort
(3),
controlled-load
(4),
video
(5),
voice
(6), or
network-management
(7).
counting
: Counts the number of times the Ethernet frame header ACL rule has been matched. The
counting
keyword enables match counting specific to rules, and the
hardware-count
keyword in the
packet-filter
command enables match counting for all rules in an ACL. If the
counting
keyword is not
specified, matches for the rule are not counted.
dest-mac
dest-address
dest-mask:
Matches a destination MAC address range. The
dest-address
and
dest-mask
arguments represent a destination MAC address and mask in the H-H-H format.
lsap
lsap-type
lsap-type-mask:
Matches the DSAP and SSAP fields in LLC encapsulation. The
lsap-type
argument is a 16-bit hexadecimal number that represents the encapsulation format. The
lsap-type-mask
argument is a 16-bit hexadecimal number that represents the LSAP mask.
type
protocol-type
protocol-type-mask
: Matches one or more protocols in the Ethernet frame header. The
protocol-type
argument is a 16-bit hexadecimal number that represents a protocol type in Ethernet_II and
Ethernet_SNAP frames. The
protocol-type-mask
argument is a 16-bit hexadecimal number that represents
a protocol type mask.