traffic-type ip

Configures the specific header type with the IP address to be matched for traffic classification.

Syntax

traffic-type { gre | ipip | gtpu | vxlan | nvgre } ip [ src-ip src-mask dst-ip dst-mask ]
no traffic-type { gre | ipip | gtpu | vxlan | nvgre } ip

Parameters

{ gre | ipip | gtpu | vxlan | nvgre }
Specifies the header to be matched for classifying the packet.
ip
Specifies the ipv4/ipv6 addresses on matching packets.
src-ip src-mask dst-ip dst-mask
Specifies the source ipv4/v6 address, source ipv4/v6 mask, destination ipv4/v6 address, and destination ipv4/v6 mask values.

Modes

Ingress-group config mode

Usage Guidelines

Validations for the command are as follows:

Examples

The following examples configures gtpu traffic type with IP address.

device(config-ingress-group)# traffic-type gtpu ip 192.168.2.1 255.255.255.0 192.168.3.2 255.255.255.0 

device# show ingress-group ing 

    Name : ing 
             Route-Map : - 
           Description : - 
            Interfaces : none 
          Traffic-Type : GTPU 
             Tunnel-Id : any 
                  Mode : none 
   Destination-ip-addr : 192.168.3.2 
   Destination-ip-mask : 255.255.255.0 
        Source-ip-addr : 192.168.2.1 
        Source-ip-mask : 255.255.255.0 
The following examples show error messages.

Tunnel type already configured:

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

Invalid IP:

Error: Invalid Ip address

Source IP already configured:

Error: Source ip already configured for this traffic-type

Destination IP already configured:

Error: Destination ip already configured for this traffic-type 

Error: Source and destination ip already configured for this traffic-type

IP already configured:

device(config-ingress-group)# traffic-type gtpu 

Error: Traffic type is already configured with ip address