Configuring MPLS Access Lists

Configuring MPLS Access Lists

MPLS Access lists enables filtering of MPLS packets based on MPLS label and sending filtered packets to configured redirect interfaces.

Procedure

  Command or Action Purpose

Step 1

configure terminal

Example:

switch# configure terminal
switch(config)#

Enters global configuration mode.

Step 2

[no]install feature-set mpls

Example:

switch(config)# install feature-set mpls
switch(config)# feature-set mpls
switch(config)# feature mpls segment-routing

Enables parsing of MPLS packets. This is mandatory to filter MPLS packets based on MPLS label.

Step 3

mpls access list mpls-acl

Example:

switch(config)# mpls access list mpls-acl
switch(config-mpls-acl)# 10 permit mpls 1600 any redirect Ethernet1/15

Configures mpls-access list with filtering based on incoming outer MPLS label.

In this example, MPLS packets with incoming label 1600 matched and are redirected to Ethernet1/15.

Step 4

(Optional) copy running-config startup-config

Example:

switch(config)# copy running-config startup-config

(Optional) Copies the running configuration to the startup configuration.

Verifying the MPLS Access Lists Configuration

To display the MPLS access list configuration, perform the following task:

Command

Purpose

show mpls access lists

Displays information about MPLS access lists.

Configuration Examples for MPLS Access Lists

This example shows how to configure MPLS access lists:

switch# configure terminal
switch(config)# install feature-set mpls
switch(config)# feature-set mpls
switch(config)# feature mpls segment-routing
switch(config)# mpls access list mpls-acl
switch(config-mpls-acl)# 10 permit mpls 1600 any redirect Ethernet1/15
switch(config)# copy running-config startup-config