Configures or removes the specific header type to be matched for traffic classification.
Ingress-group config mode
Validations for the command are as follows:
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 anyThe 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'.