undo rule time-range (interface-based ACL6 view)

Function

The undo rule time-range command deletes specifies a time range during which an ACL6 rule takes effect.

By default, no time range is configured.

Format

undo rule rule-id time-range

Parameters

Parameter Description Value
rule-id

Specifies a start rule ID for interface-based ACL6 rules to be deleted in batches.

The value is an integer ranging from 0 to 4294967294.

Views

Interface-based ACL6 view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
acl write

Usage Guidelines

Usage Scenario

To delete specifies a time range during which an ACL6 rule takes effect, run this command.

Prerequisites

An interface-based ACL6 has been created using the acl ipv6 command in the system view.

A time range has been configured using the time-range command in the system view if you want to specify a validity period when creating an interface-based ACL6 rule.

Configuration Impact

When specifying an ACL6 rule ID, note the following:

  • If a rule with a specified rule ID already exists, and the new rule conflicts with the existing one, the conflicting part in the new rule overwrites that in the existing rule.
  • If no rule with the specified rule ID exists, a rule with the specified rule ID is created.

    When an ACL6 rule ID is not specified and a rule is added, the system automatically allocates an ID to this rule. ACL6 rules are arranged in ascending order of rule IDs, with the difference between two adjacent rules as an ACL6 step.

    The rule IDs automatically generated by the system start from the ACL6 step. For example, if the ACL6 step is 5, the rule ID starts from 5; if the ACL6 step is 2, the rule ID starts from 2. This allows you to add rules before the first rule.

Precautions

If auto is configured when you run the acl ipv6 command to create an ACL6, you cannot specify a rule ID when creating a rule. The system automatically uses the ACL6 step as the start rule ID, and the subsequent rules are numbered by a step in ascending order.

If rule-id is not specified when you run the rule command to create an ACL6, the system automatically assigns an ID to the ACL6 rule. You can run the display acl ipv6 command to check the rule ID automatically assigned to an ACL6.

If name rule-name is not specified when you run the rule command to create an ACL6, the system automatically generates a name for the ACL6 in the format of "rule"+"_"+rule ID. Rule ID is the ID of an ACL6 rule that can be specified using the rule-id parameter or automatically assigned by the system. You can check the automatically generated name of an ACL6 rule through the NMS.

You must specify the rule ID when deleting a rule. To check rule IDs, run the display acl ipv6 command.Before deleting an ACL6 rule, run the display acl ipv6 command to check whether the ACL6 rule has been applied to other services. Delete the rule only when it is not applied to other services.

Example

# Create an interface-based ACL6 numbered 1999 and add a rule to ACL6 1999 to match packets from the inbound interface GE 0/1/0, delete an ACL rule in the interface ACL6 view.
<HUAWEI> system-view
[~HUAWEI] time-range aa
[~HUAWEI] acl ipv6 number 1999
[*HUAWEI-acl6-interface-1999] rule 1 deny interface GigabitEthernet0/1/0 time-range aa
[*HUAWEI-acl6-if-1999] undo rule 1 time-range
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic