acl name
Function
The acl name command creates a named ACL and enters the ACL view.
The undo acl command deletes a named ACL.
By default, no ACL is created.
Format
acl name acl-name [ advance | basic | link | ucl | acl-number ] [ match-order { auto | config } ]
undo acl name acl-name
Parameters
Parameter |
Description |
Value |
---|---|---|
acl-name |
Specifies the name of an ACL. |
The value is a string of 1 to 32 case-sensitive characters, and must begin with a letter. |
advance |
Indicates an advanced ACL. |
- |
basic |
Indicates a basic ACL. |
- |
link |
Indicates a Layer 2 ACL. |
- |
ucl |
Indicates a user ACL. |
- |
acl-number |
Specifies the number of an ACL. |
The value is an integer.
|
match-order { auto | config } |
Indicates the matching order of ACL rules.
|
- |
Usage Guidelines
Usage Scenario
An ACL consists of a series of rules defined by multiple permit or deny clauses. ACLs are mainly applied to QoS, route filtering, and user access. The major functions of ACLs are as follows:
Limit data flows to improve network performance. For example, ACLs are configured on an enterprise network to limit video data flows, which lowers the network load and improves network performance.
Provide flow control. For example, ACLs are used to limit transmission of routing updates so that the bandwidth is saved.
Provide network access security. For example, ACLs are configured to allow specified users to access the human resource network.
Follow-up Procedure
Run the rule command to configure ACL rules and apply the ACL to services which packets need to be filtered.
Precautions
After you create a named ACL by using the acl name command, the ACL still exists even if you exit from the ACL view. You must run the undo acl name acl-name or undo acl acl-number command to delete the ACL.
When you delete an ACL that has been referenced by other services, the services may be interrupted. Before deleting an ACL, ensure that the ACL is not in use.
If the number of a named ACL is not specified, the device automatically allocates a number to the named ACL. The following situations are involved:
- If the type of a named ACL is specified, the number of the named ACL allocated by the device is the maximum value of the named ACL of the type.
- If the number and the type of a named ACL are not specified, the device considers the named ACL as the advanced ACL and allocates the maximum value to the named ACL.
The AC does not allocate the number to a named ACL repeatedly.