destination interface

Syntax

destination interface <PORT-NUM>

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-n

(n is the mirroring session ID.)

Parameters

<PORT-NUM>

Specifies a physical port on the switch. 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).

Authority

Administrators

Usage

Specifies the interface to which all mirrored traffic for the session is to be transmitted. Only one destination interface is allowed per session.

You must specify a Layer 2 or Layer 3 Ethernet port. LAGs are not supported as mirror destinations.

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.

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

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

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