R3303-HP HSR6800 Routers ACL and QoS Command Reference
18
Use undo rule to delete an entire IPv4 advanced ACL rule or some attributes in the rule. If no optional
keywords are provided, this command deletes the entire rule. If optional keywords or arguments are
provided, this command deletes the specified attributes.
Syntax
rule [ rule-id ] { deny | permit } protocol [ { { ack ack-value | fin fin-value | psh psh-value | rst rst-value
| syn syn-value | urg urg-value } * | established } | counting | destination { dest-address dest-wildcard
| any } | destination-port operator port1 [ port2 ] | dscp dscp | fragment | icmp-type { icmp-type
[ icmp-code ] | icmp-message } | logging | precedence precedence | reflective | source
{ source-address source-wildcard | any } | source-port operator port1 [ port2 ] | time-range
time-range-name | tos tos | vpn-instance vpn-instance-name ] *
undo rule rule-id [ { { ac
k | fin | psh | rst | syn | urg } * | established } | counting | destination |
destination-port | dscp | fragment | icmp-type | logging | precedence | reflective | source |
source-port | time-range | tos | vpn-instance ] *
Default
An IPv4 advanced ACL does not contain any rule.
Views
IPv4 advanced ACL view
Default command level
2: System level
Parameters
rule-id: Specifies a rule ID in the range of 0 to 65534. If no rule ID is provided when you create an ACL
rule, the system automatically assigns it a rule ID. This rule ID takes 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.
protocol: Specifies a protocol number in the range of 0 to 255, or specifies a protocol by its name, gre
(47), icmp (1) , igmp (2), ip, ipinip (4), ospf (89), tcp (6), or udp (17) . The ip keyword specifies all
protocols. Table 6 de
scribes the parameters that you can specify regardless of the value that the protocol
argument takes.
Table 6 Match criteria and other rule information for IPv4 advanced ACL rules
Parameters Function Descri
p
tion
source
{ source-address
source-wildcard |
any }
Specifies a source address
The source-address source-wildcard arguments
represent a source IP address and wildcard mask in
dotted decimal notation. An all-zero wildcard specifies
a host address.
The any keyword specifies any source IP address.
destination
{ dest-address
dest-wildcard |
any }
Specifies a destination
address
The dest-address dest-wildcard arguments represent a
destination IP address and wildcard mask in dotted
decimal notation. An all-zero wildcard specifies a host
address.
The any keyword represents any destination IP address.