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
The following examples show error messages.

Mode already configured:

Error: Mode is already configured for this traffic-type

Traffic type already configured:

Error: Traffic type is already configured, can't set different tunnel on same ingress-group ing 

Error: Traffic-type information already configured for ingress group

Mode and/or IDs are already configured:

Error: Mode and tunnel-id already configured for this traffic-type 

Error: Tunnel-id is already configured for this traffic-type

Error: Mode is already configured for this traffic-type

Invalid VNI:

device(config-ingress-group)# traffic-type vxlan vni 0 
---------------------------------------------------------^ 
%Error: Value '0' not in range <1-16777215>. 

device(config-ingress-group)# traffic-type vxlan vni 16777216 
---------------------------------------------------------^ 
%Error: Value '16777216' not in range <1-16777215>. 

device(config-ingress-group)# traffic-type vxlan vni abc 
---------------------------------------------------------^ 
%Error: Unexpected token 'abc'.

Invalid vsid:

device(config-ingress-group)# traffic-type nvgre vsid 4000 
----------------------------------------------------------^ 
%Error: Value '4000' not in range <4096-16777214>. 

device(config-ingress-group)# traffic-type nvgre vsid 16777215 
----------------------------------------------------------^ 
%Error: Value '16777215' not in range <4096-16777214>. 

device(config-ingress-group)# traffic-type nvgre vsid abc 
----------------------------------------------------------^ 
%Error: Unexpected token 'abc'.

Invalid teid:

device(config-ingress-group)# traffic-type gtpu teid 0 
---------------------------------------------------------^ 
%Error: Value '0' not in range <1-4294967295>. 

device(config-ingress-group)# traffic-type gtpu teid 4294967296 
---------------------------------------------------------^ 
%Error: Value '4294967296' not in range <1-4294967295>. 

device(config-ingress-group)# traffic-type gtpu teid abc 
---------------------------------------------------------^ 
%Error: Unexpected token 'abc'.