step

Function

The step command can specify a step for a set of ACL rules.

The undo step command can restore the default step and renumber ACL rules.

By default, the increment of an ACL rule group is 5.

Format

step step-value

undo step

Parameters

Parameter Description Value
step-value

Specifies an ACL increment.

The value is an integer ranging from 1 to 20.

Views

MPLS ACL view, UCL view, Layer 2 ACL view, Interface-based ACL view, Basic ACL view, Advanced ACL view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
acl write

Usage Guidelines

Usage Scenario

An ACL increment is the difference between two adjacent and automatically allocated ACL rule numbers. For example, if the increment is set to 5, rule numbers start at 5 and increase by an increment of 5, yielding rule numbers of 5, 10, 15, 20, and so on. To specify an ACL increment, run the step command.

You can use an ACL increment to maintain ACL rules and add new ACL rules conveniently.

Assume that a user has created four rules numbered from 1 to 4 in an ACL. The user can reconfigure the ACL increment, for example, to 2 by running the step 2 command in the ACL view. The original rule numbers 1, 2, 3, and 4 are renumbered as 2, 4, 6, and 8, respectively. After that, the user can run the rule 3 command to add a rule numbered 3 between the renumbered rules 2 and 4.

Configuration Impact

The numbers of rules in an ACL realign automatically when the ACL increment changes.

Precautions

Changing the ACL increment causes rule numbers to change but does not affect the rules' priorities.

Example

# Set the increment of ACL 3101 to 2.
<HUAWEI> system-view
[~HUAWEI] acl 3101
[*HUAWEI-acl4-advance-3101] step 2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >