traffic-type gre

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

Syntax

traffic-type gre ip [ A.B.C.D | X:X::X:X | any ]
traffic-type gre mode [ decap | new-scope ]
no traffic-type gre [ ip | mode ]

Parameters

gre
Specifies the gre header to be matched for classifying the packet.
ip
Specifies the IP address for matching packets.
A.B.C.D
Specifies the IPv4 address.
X:X::X:X
Specifies the IPv6 address.
any
Specifies any source IP address.
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 the gre traffic type 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 

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