MPLS ACL Commands

This module describes the commands used to configure the access control list (ACL) for MPLS.

mpls access-list

To define an MPLS access list, use the mpls access-list command in XR Config mode. To remove all entries in an MPLS access list, use the no form of this command.

mpls access-list acl_name

Syntax Description

acl_name

Name of the access list. Names cannot contain a space or quotation marks.

Command Default

None

Command Modes

XR Config mode

Command History

Release

Modification

Release 24.4.1

This command was introduced.

Usage Guidelines

The mpls access-list configuration places the router in the access list configuration mode.

To enable the router to permit the access conditions, use the permit command. Use the deny command so that the router disallows the access conditions.

The MPLS access list need not be applied to an interface as the mpls access-list configuration is used only for monitoring the ingress MPLS packets.

The maximum number of supported port ranges for MPLS must not exceed 23. Port range exceeding 23 results in invalid configuration and reports an OOR (out-of-resource) error condition.

Task ID

Task ID

Operations

acl

read, write

mpls-ldp

read, write

mpls-static

read, write

mpls-te

read, write

Examples

This example shows how to define an MPLS access list.

Router(config)# mpls access-list mp
Router(config-mpls-acl)# 10 permit label1 2000  label1 3000  label3 4000  exp1 5 exp2 5 exp3 7
Router(config-mpls-acl)# exit
Router(config)# commit