29
time-range
time-range-name
: Specifies a time range for the rule. The
time-range-name
argument takes a
case insensitive string of 1 to 32 characters. It must start with an English letter.
vpn-instance
vpn-instance-name
: Applies the rule to packets in a VPN instance. The
vpn-instance-name
argument takes a case sensitive string of 1 to 31 characters. If no VPN instance is specified, the rule
applies only to non-VPN packets.
Description
Use the
rule
command to create or edit an IPv6 basic ACL rule. You can edit ACL rules only when the
match order is config.
Use the
undo
rule
command to delete an entire IPv6 basic ACL rule or some attributes in the rule. If no
optional keywords are provided, you delete the entire rule. If optional keywords or arguments are
provided, you delete the specific attributes.
By default, an IPv6 basic ACL does not contain any rule.
Within an ACL, the permit or deny statement of each rule must be unique. If the ACL rule you are creating
or editing has the same deny or permit statement as another rule in the ACL, your creation or editing
attempt will fail.
To view rules in an ACL and their rule IDs, use the
display acl ipv6 all
command.
Related commands:
acl ipv6
,
display ipv6 acl
, and
step
.
NOTE:
If an IPv6 basic ACL is for QoS traffic classification, do not specify the
fragment
keyword. The keyword
can cause ACL application failure. The
logging
and
counting
keywords (even if specified) do not take
effect for QoS.
Examples
# Create an IPv6 basic ACL rule to deny packets sourced from FE80:5060::101/128.
<Sysname> system-view
[Sysname] acl ipv6 number 2000
[Sysname-acl6-basic-2000] rule deny source fe80:5060::101/128
rule comment
Syntax
rule
rule-id
comment
text
undo rule
rule-id
comment
View
IPv4 basic/advanced ACL view, IPv6 basic/advanced ACL view, Ethernet frame header ACL view
Default level
2: System level
Parameters
rule-id
: Specifies the ID of an existing ACL rule. The ID ranges from 0 to 65534.
text
: Provides a description for the ACL rule, a case sensitive string of 1 to 127 characters.