The acl name command creates an MPLS-based ACL and displays the ACL view. If the MPLS-based ACL already exists, this command directly displays the ACL view.
The undo acl name command deletes a created MPLS-based ACL.
By default, no MPLS-based ACL is created.
Parameter | Description | Value |
---|---|---|
mpls-acl-name |
Creates an MPLS-based ACL with a name. |
The value is a string of 1 to 64 case-sensitive characters, spaces not supported. The name must start with a letter or digit, and cannot contain only digits. |
mpls |
Creates an MPLS-based ACL with a keyword. |
- |
number mpls-acl-number |
Creates an MPLS-based ACL with a number. |
The value is an integer ranging from 10000 to 10999. |
Usage Scenario
An MPLS-based ACL defines rules for filtering packets based on the EXP, label, and TTL values of MPLS packets. To create an MPLS-based ACL, run the acl
Configuration Impact
The undo acl all command deletes all types of ACLs on a device. If the ACLs being deleted are applied to services, these services are interrupted. Before deleting an ACL, ensure that the ACL is not referenced by services.
Follow-up Procedure
Run the rule command to configure a rule for a created MPLS-based ACL. Then the ACL rule can be applied to match packets.
Run the description command to configure a description for a created MPLS-based ACL. The description can contain the functions of the MPLS-based ACL, facilitating applications.