tunnel-type ipv4

Configures the source IPv4 address with mask and tunnel-type for the transport tunnel packets to be terminated.

Syntax

tunnel-type [ gre | erspan ] [ ipv4-src ipaddr mask ]
no tunnel-type [ gre | erspan ] [ ipv4-src ipaddr mask ]

Parameters

gre | erspan
Specifies the type of tunnel to be terminated.
ipv4-src ipaddr mask
Specifies the source IPv4 address and mask configured in dotted decimal notation. Example: 196.168.0.1.

Modes

Transport tunnel config mode

Usage Guidelines

This command is available only to users with the admin role.

If all the parameters match along with the chassis MAC, the transport header is removed and packets are subjected to further processing.

If the IP address is not provided, all packets matching the tunnel type or transport header type are configured for termination.

Validations for the command are as follows:

Examples

The following examples configure the transport tunnel:

device(config-transport-tunnel)# tunnel-type erspan ipv4-src 192.168.2.10 255.255.0.0 

device(config-transport-tunnel)# tunnel-type gre ipv4-src 10.10.2.3 255.255.255.0

device# show running-config transport-tunnel tt1 
transport-tunnel tt1 
  tunnel-type gre ipv4-src 10.10.2.3 255.255.255.0