3.29 Mirroring Configuration

Mirroring is a feature for switched port analyzer. The administrator can use Mirroring to debug network problems. The selected traffic can be mirrored or copied on a destination port where a network analyzer can be attached to analyze the network traffic.

Command Syntax:

monitor session <session_number> [ destination { interface <port_type> [ <di_list> ] | remote vlan <drvid> reflector-port <port_type> <rportid> } | source { interface <port_type> [ <si_list> ] [ both | rx | tx ] | remote vlan <srvid> | vlan <source_vlan_list> | cpu [ both | rx | tx ] } ]
Table 3-129. Command Description

Argument

Description

Parameter

<session_number>

MIRROR session number 1–5

<port_type>

Port type in Giga or 2.5 Giga

<di_list>

List of destination Port ID, for example, 1/1-4

<drvid>

Remote MIRROR destination RMIRROR VLAN number.

<rportid>

Reflector Port ID in the format of switch-no/port-no

<si_list>

List of source Port ID, for example, 1/1-4

<srvid>

Remote MIRROR source RMIRROR VLAN number

<source_vlan_list>

MIRROR source VLAN

Default

N.A

Mode

Global Configuration mode

Usage

Enable and configure Mirroring. To disable, use the ‘no’ version of the command.

Example

Example 1:

Enable Mirroring Session 1 and configure remote source VLAN 100.

(config)# monitor session 1
(config)# monitor session 1 source remote vlan 100

Example 2:

Disable Mirroring Session 1.

(config)# no monitor session 1