rule description (UCL view)

Function

The rule description command configures a description for an ACL rule.

The undo rule description command deletes the description of an ACL rule.

By default, no description is configured for an ACL rule.

Format

rule rule-id description destext

undo rule rule-id description

Parameters

Parameter Description Value
rule-id

Specifies the ID of an ACL rule.

The value is an integer ranging from 0 to 4294967294.

destext

Specifies the description of an ACL rule.

The value is a string of 1 to 127 case-sensitive characters, spaces supported. The value must not start with spaces and can be a combination of letters, numbers, and spaces.

Views

UCL view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
acl write

Usage Guidelines

Usage Scenario

Run the rule description command to configure a description for an ACL in any of the following situations:

  • A large number of ACLs are configured, and their functions are difficult to identify.
  • An ACL is used at a long interval, and its function may be left forgotten.

Prerequisites

An ACL rule has been created using the rule command.

Precautions

If the description of an ACL rule is not configured, the ACL rule may be misunderstood or misused.

Example

# Configure a description for a user ACL rule numbered 23.
<HUAWEI> system-view
[~HUAWEI] acl number 6999
[*HUAWEI-acl-ucl-6999] rule 23 deny ip source service-group any destination user-group any
[*HUAWEI-acl-ucl-6999] rule 23 description prohibiting the host with any source service group from sending IP packets to a host with any destination user group.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >