traffic-type mpls outerNEW!

Filters Multiprotocol Label Switching Segment Routing (MPLS-SR) packets.

Syntax

traffic-type mpls outer header1 { [ label1 | any ] [ tc1 | any ] [ ttl1 | any ] }
no traffic-type mpls outer header1
no traffic-type mpls outer

Parameters

mpls outer
Specifies that the MPLS-SR is the outer encapsulation type to be matched to classify packet. MPLS can be the outer encapsulation or the only encapsulation.
header1
Configures the MPLS Bottom of Stack header (inner-most header) values to be matched.
label1
Specifies the label value of the MPLS Bottom of Stack to be matched. Valid range is 0 through 1048575.
any
Matches all values of the specified parameter.
tc1
Specifies the value of Traffic Class (earlier named as Experimental bits) from the Bottom of Stack MPLS header to be matched. Valid range is 0 through 7.
ttl1
Specifies the value of time-to-live field from the Bottom of Stack MPLS header to be matched. Valid range is 1 through 255.

Modes

Ingress-group config mode

Usage Guidelines

This command is available only to users with the admin role.

This command classifies MPLS-SR packets by removing all MPLS headers and sending payload to the tools. You can use the ingress or egress ACLs to match packets based on the payload fields.

The packets can also be classified based on the Bottom of Stack (inner-most header) MPLS header values.

Removal of MPLS headers is supported for maximum depth of four MPLS labels.

Validations for the command are as follows:

Examples

The following example enables classification of packets based on MPLS headers.

device(config-ingress-group)# traffic-type mpls outer header1 12345  3  250 

device(config-ingress-group)# do show ingress-group all 

Number of ingress-groups: 1 
    Name : igg1 
             Route-Map : rmap1 
           Description : - 
            Interfaces :  ethernet 0/1 

   Outer Tunnel Config : 
          Traffic-Type : MPLS 
   Header1 (Bottom of Stack header): 
                     label : 12345 
          Traffic Class : 3 
          Time to Live : 250 
                    Mirror : none