traffic-type

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

Syntax

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

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.
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 2000 mode decap
device(config-ingress-group)# end 

device# show running-config ingress-group ing1 
ingress-group ing1 
  traffic-type gtpu teid 2000 mode decap

The following example configures nvgre traffic type with new-scope mode.

device(config-ingress-group)# traffic-type nvgre vsid 1000 mode new-scope 
device(config-ingress-group)# end
device# show running-config ingress-group ing1 
ingress-group ing1 
  traffic-type nvgre vsid 1000 mode new-scope

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-1 
ingress-group ing-1 
  traffic-type vxlan vni 2000 mode decap