286 CHAPTER 8: USING QOS/ACL COMMANDS
System View: return to User View with Ctrl+Z
[SW5500]interface GigabitEthernet 1/0/1
[SW5500-GigabitEthernet1/0/1]packet-filter inbound ip-group 2000
reset acl counter Syntax
reset acl counter { all |
acl-number
}
View
User View
Parameter
all: All ACLs.
acl-number
: Specifies an ACL by its number, ranging from 2000 to 4999.
Description
Use the reset acl counters command to reset the ACL statistics information to
zero.
Example
Clear the statistics information of ACL 2000.
<SW5500>reset acl counters 2000
rule Syntax
Define or delete the subrules of a basic ACL:
rule [ rule-id ] { permit | deny } [source { source-addr wildcard | any
} fragment | time-range
name ]*
undo rule
rule-id
[ source | fragment | time-range ]*
Define or delete the subrules of an advanced ACL:
rule [
rule-id
] { permit | deny }
protocol
[ source {
source-addr
wildcard
| any } ] [ destination {
dest-addr wildcard
| any } ] [
source-port
operator port1
[
port2
] ] [ destination-port
operator
port1
[
port2
] ] [ icmp-type
type code
] [ established ] [ [ {
precedence
precedence
tos
tos
| dscp
dscp
}* | vpn-instance
instance
] |
fragment | logging | time-range
name
]*
undo rule
rule-id
[ source | destination | source-port |
destination-port | icmp-type | precedence | tos | dscp | fragment |
logging | time-range | vpn-instance ]*
Define or delete the subrules of a Layer 2 ACL:
rule [
rule-id
] { permit | deny } [ [ type
protocol-type type-mask
|
lsap
l
sap-type type-mask
] |
format-type
| cos
cos
| source {
source-vlan-id | source-mac-addr source-mac-wildcard
}* | dest {
dest-mac-addr dest-mac-wildcard
} | time-range
name
]*
undo rule
rule-id