traffic-type outer mirror

Configures VXLAN or MPLS as outermost encapsulation type with the mirror action to classify MPLS Segment Routing packets.

Syntax

traffic-type [ vxlan | mpls ] outer mirror name
no traffic-type [ vxlan | mpls ] outer mirror name
no traffic-type [ vxlan | mpls ] outer mirror name

Parameters

vxlan
Specifies the VXLAN outermost header to be matched to classify packet in double encapsulated packet.
mpls
Specifies MPLS as the encapsulation type to be matched to classify packet. MPLS can be the outer encapsulation or the only encapsulation.
outer
Specifies the outer-most header to be matched to classify packet.
mirror
Enables the mirror action for the outer VXLAN tunnel.
name
Specifies the mirror name.

Modes

Ingress-group config mode

Usage Guidelines

This command enables mirroring in double encapsulation traffic with VXLAN as outermost header or traffic with MPLS outer encapsulation type. Successfully classified traffic is mirrored to the configured front-panel interface.

Validations for the command are as follows:

Examples

The following example configures the mirror for the VXLAN outermost header.

device(config-ingress-group)# traffic-type vxlan outer mirror mirr_1 

device# show ingress-group ing 
    Name : ing 
             Route-Map : - 
           Description : - 
            Interfaces : none 
          Traffic-Type : GTPU 
             Tunnel-Id : any 
                  Mode : none 
   Destination-ip-addr : 192.168.3.2 
   Destination-ip-mask : 255.255.255.0 
        Source-ip-addr : 192.168.2.1 
        Source-ip-mask : 255.255.255.0 

   Outer Tunnel Config : 
          Traffic-Type : VxLAN 
             Tunnel-Id : any 
   Destination-ip-addr : 192.168.5.2 
   Destination-ip-mask : 255.255.255.0 
        Source-ip-addr : 192.168.4.2 
        Source-ip-mask : 255.255.255.0 
                Mirror : mirr_1 

The following example configures the mirror for MPLS outer header.

device(config-ingress-group)# traffic-type mpls outer mirror mirr_2 

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 : mirr_2