mirror session destination interface

This topic explains how to set the destination port for a port mirroring session and how to stop mirroring sessions.

Syntax

CODE
mirror session <1-4> destination interface id [allow-ingress]
no mirror session {all | <1-4> | [<1-4> destination interface id]}

Parameter

<1-4>: Specify the mirror session, which can be a number from 1 to 4. The switch can support a total of four simultaneous mirroring sessions.

id: Specify the destination interface (a single physical port) to which the traffic is mirrored. The id parameter represents the interface number, allows a partial port name, and is not case-sensitive. .

allow-ingress: As an option, enable forwarding of ingress traffic.

all: For the no form of the command, specify all mirroring sessions. The switch can support up to four simultaneous mirroring sessions.

Default

No destination port is configured.

Mode

Global Configuration

Usage

Use the mirror session destination interface command to set the physical destination port for a specific port mirror session.

Use the no mirror session command to stop either all mirroring sessions on the switch, a single mirroring session on the switch, or one specific mirroring session on a specific physical destination port.

Example

This example shows how to set interface 1/0/1 as the destination port for both incoming and outgoing traffic for mirroring session 1:

CODE
Switch(config)# mirror session 1 destination interface 1/0/1