destination tunnel

Syntax

destination tunnel <TUNNEL-IPV4-ADDR> source <SOURCE-IPv4-ADDR> 
   dscp <DSCP-VALUE> vrf <VRF-NAME> id <ERSPAN-ID>

no destination tunnel

Description

This command specifies the tunnel to where all mirrored traffic for the session will be transmitted. Only one tunnel destination is allowed per session.

You may configure multiple mirror sessions with the same source/destination IP address pair, however, only one of those sessions sharing the same source/destination IP address pair can be enabled at a given time.

Multiple Mirror Sessions can be enabled with the same source/destination IP address pair if the span IDs are different for sessions. By default it is assigned 0 if not specified.

ERSPAN is not supported leaving the switch by the OOB port. If VRF management is configured for an ERSPAN session, the session will be in "mirror_err_tunnel_oob_port_not_supported" operation status.

ERSPAN is not supported leaving the switch encapsulated within another tunnel (e.g. GRE IPv4). When the path to the destination IP address will leave via a tunnel, the session will be in "tunnel_route_resolution_not_populated" operation status.

The no form of this command will cease the use of the tunnel and disable the session.

Command context

config-mirror-<SESSION-ID>

Authority

Administrators

Parameters

<TUNNEL-IPV4-ADDR>

Specifies the tunnel IPv4 address.

<SOURCE-IPv4-ADDR>

Specifies the source IPv4 address.

<DSCP-VALUE>

DSCP value can be specified in the range (0 to 63) to be carried within the DS field of ERSPAN packet header. By default it is assigned 0 if not specified.

<VRF-NAME>

Specifies the VRF name of the ERSPAN session. VRF can be attached to the ERSPAN tunnel session by specifying a valid VRF name. If not given, the default will be used.

<ERSPAN-ID>

Specifies the ERSPAN session with an ID. Range: 0 to 10.

Examples

Creating a Mirror Session and adding tunnel destination, source, dscp, and VRF:

switch# config
switch(config)# mirror session 1
switch(config-mirror-1)# destination tunnel 1.1.1.1 source 2.2.2.2 dscp 10 vrf default

Replacing the existing tunnel destination:

switch(config-mirror-1)# destination tunnel 11.12.13.14 source 2.2.2.2 dscp 10 vrf default

Replacing the existing destination with a different DSCP value:

switch(config-mirror-1)# destination tunnel 11.12.13.14 source 2.2.2.2 dscp 2 vrf default

Replace the existing destination with a different VRF:

switch(config-mirror-1)# destination tunnel 11.12.13.14 source 2.2.2.2 dscp 2 vrf newvrf

Remove the destination entirely:

switch(config-mirror-1)# no destination tunnel