tunnel-type

Configures the source IP (with mask), tunnel-type and tunnel-ID for the packets to be terminated.

Syntax

tunnel-type [ gre | erspan ] [ src-ip ipaddr | mask mask ] [tunnel-id value ]
no tunnel-type [ gre | erspan ] [ src-ip ipaddr |mask mask ] [tunnel-id value ]

Parameters

gre | erspan
Specifies the type of tunnel to be terminated.
src-ip ipaddr
Specifies the Source IP to be matched.
mask mask
Specifies the IP address mask.
tunnel-id value
Specifies the tunnel ID of the tunnel.

Modes

Transport tunnel config mode

Usage Guidelines

If all parameters match along with destination MAC in chassis MAC range, packets are terminated and relevant SAP ID is attached to the packets.

Validations for the command are as follows:

Table 1. Error messages
Message Reason
Error: Tunnel type is already configured Only on of each tunnel type can be configured per ingress group. Valid types are GRE or ERSPAN.
Error: Source IP address mask is already configured
Error: Deny IP address is already configured
Error: Source IP address conflicts with transport-tunnel name

Error: Destination IP address conflicts with transport-tunnelname

Source or destination transport-tunnels IP cannot overlap.
Error: Invalid destination IP address

Error: Invalid source IP address

Reserved or poorly formed IP address entered.
Error: Cannot add/modify source IP address of existing tunnel type Attempt to add source IP address and mask to existing tunnel type.

Examples

The following example configures the transport tunnel, tunnel-1.

Device(config)# transport-tunnel tunnel-1 
device(config-trs-tnl-tunnel-1)# tunnel-type erspan src-ip 10.10.10.0 mask 255.255.255.0 tunnel-id 12345 

Show running:  
device# show running-configuration 

transport-tunnel tunnel-1 
tunnel-type erspan src-ip 10.10.10.0 mask 255.255.255.0 tunnel-id 12345