traffic-type

Configures or removes the specific header type to be matched for traffic classification.

Syntax

traffic-type { gre | ipip } { mode [ new-scope | decap ] }
no traffic-type [ gre | ipip ] mode
traffic-type gtpu teid teid-value { mode [ new-scope | decap ] }
no traffic-type gtpu [ teid | mode ]
traffic-type nvgre vsid vsid-value { mode [ new-scope | decap ] }
no traffic-type nvgre [ vsid | mode ]
traffic-type vxlan vnid vnid-value { mode [ new-scope | decap ] }
no traffic-type vxlan [ vnid | mode ]

Parameters

[ gre | gtpu teid teid-value | ipip | nvgre vsid vsid-value | vxlan vnid vnid-value ]
Specifies the header to be matched for classifying the packet.
Valid vsid range is 4096-16777214. The vsid range 1-4095 and VSID value 16777215 are reserved and not configurable.
Valid VNI range is 1-16777215.
Valid TEID range is 1-4294967295.
mode
Specifies the actions for matching packets.
decap
Removes the encapsulated header.
new-scope
Shifts the scope of headers to inner headers for further processing.

Modes

Ingress-group config mode

Usage Guidelines

Validations for the command are as follows:

Examples

The following examples configure traffic types gre and ipip with decap and new-scope modes.

device(config)# ingress-group ing-1 
device(config-ingress-group)# traffic-type gre mode decap
device(config-ingress-group)# end 

device# show running-config ingress-group ing-1 
ingress-group ing-1 
traffic-type gre mode decap 

device(config-ingress-group)# traffic-type ipip mode new-scope 

Show running:  
device# show running-configuration ingress-group ing-1 
ingress-group ing-1 
traffic-type ipip mode new-scope

The following example configures gtpu traffic type with decap mode.

device(config-ingress-group)# traffic-type gtpu teid 3000 mode decap
device(config-ingress-group)# end 

device# show running-config ingress-group ing 
ingress-group ing 
  traffic-type gtpu teid 3000 
  traffic-type gtpu ip any any 

device# conf t 
device(config)# ingress-group ing 
device(config-ingress-group)# no traffic-type gtpu teid 
device(config-ingress-group)# traffic-type gtpu teid 5000 mode decap

show ingress-group ing 
 
		    Name : ing 
             Route-Map : - 
           Description : - 
            Interfaces : none 
          Traffic-Type : GTPU 
             Tunnel-Id : 5000 
                  Mode : decap 
   Destination-ip-addr : any 
        Source-ip-addr : any 

device# show running-config ingress-group 

ingress-group ing 
  traffic-type gtpu teid 5000 mode decap 
  traffic-type gtpu ip any any 
 
device# conf t 
device(config)# ingress-group ing 
device(config-ingress-group)# no traffic-type gtpu teid 
device(config-ingress-group)# end 
device# show running-config ingress-group 

ingress-group ing 
  traffic-type gtpu mode decap 
  traffic-type gtpu ip any any 

The following example configures nvgre traffic type with decap mode.

device(config-ingress-group)# traffic-type nvgre vsid 7000 mode decap 
device(config-ingress-group)# end

device# show running-config ingress-group ing 

ingress-group ing
       	    Name : ing 
             Route-Map : - 
           Description : - 
            Interfaces : none 
          Traffic-Type : NVGRE 
             Tunnel-Id : 7000 
                  Mode : decap 
   Destination-ip-addr : any 
        Source-ip-addr : any 
 
device# show running-config ingress-group 

ingress-group ing 
  traffic-type nvgre vsid 7000 mode decap 
  traffic-type nvgre ip any any 

device# conf t 
device(config)# ingress-group ing 
device(config-ingress-group)# no traffic-type nvgre mode 
device(config-ingress-group)# end 

device# show running-config ingress-group 

ingress-group ing 
  traffic-type nvgre vsid 7000 
  traffic-type nvgre ip any any

The following example configures the vxlan traffic type with decap mode.

device(config-ingress-group)# traffic-type vxlan vni 2000 mode decap  
device(config-ingress-group)# end 

device# show running-config ingress-group ing 
    Name : ing 
             Route-Map : - 
           Description : - 
            Interfaces : none 
          Traffic-Type : VxLAN 
             Tunnel-Id : 2000 
                  Mode : decap 
   Destination-ip-addr : any 
        Source-ip-addr : any 

device# show running-config ingress-group 
  ingress-group ing 
  traffic-type vxlan vni 2000 mode decap 
  traffic-type vxlan ip any any 
 
device(config)# ingress-group ing 
device(config-ingress-group)# no traffic-type vxlan vni 
device(config-ingress-group)# end 

device# show running-config ingress-group 
  ingress-group ing 
  traffic-type vxlan mode decap 
  traffic-type vxlan ip any any