Configures the source IP (with mask), tunnel-type and tunnel-ID for the packets to be terminated.
Transport tunnel config mode
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:
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. |
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