destination interface

Syntax

destination interface {<PORT-NUM>|<LAG-NAME>}

no destination interface

Description

Configures the specified interface as the destination of the mirrored traffic.

The no form of this command immediately disables the mirroring session and removes the specified destination interface from the configuration.

Command context

config-mirror-<SESSION-ID>

Parameters

<PORT-NUM>

Specifies a physical switch port. Some switches (such as the Aruba 8400 Switch Series) use the format member/slot/port (for example, 1/1/1). Other switches use slot/port (for example, 1/1).

<LAG-NAME>

Specifies the LAG (link aggregation group) identifier.

Authority

Administrators

Usage

Only one destination is allowed per session.

Supported mirror destinations: Layer 2 or Layer 3 ethernet ports, LAGs, tunnel, or CPU as a Mirror Destination. A port that is already a member of a LAG is not a valid mirror destination.

Configuring a different destination interface in an enabled mirroring session causes all mirrored traffic to use the new destination interface. This action might cause a temporary suspension of mirrored source traffic during the reconfiguration.

Examples

Configuring a mirroring session and adding a port as a destination:

switch(config)# mirror session 1
switch(config-mirror-1)# destination interface 1/1/1

Configuring a LAG or port as a destination:

switch(config-mirror-1)# destination interface
  LAG-NAME      Enter a LAG name. For example, lag10
  PORT-NUM      Enter a port number

Replacing the existing destination with different interface:

switch(config-mirror-1)# destination interface 1/1/12

Removing the destination completely:

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