CLI Guide

Table Of Contents
Layer 2 Switching Commands 705
Example
This example sends capture output to the console.
console(config)#monitor capture line
console(config)#exit
console#monitor capture start all
monitor session
Use the monitor session command in Global Configuration mode to
configure the source and destination for mirroring. Packets are copied from
the source to the destination. Use the no form of the command to disable the
monitoring session.
Syntax
monitor session session-number source {interface interface–id |vlan vlan-id
| remote vlan rspan-vlan-id}[rx | tx]
no monitor session session-number source {interface interface–id | vlan
vlan-id | remote vlan rspan-vlan-id}
[no] monitor session session-number destination {interface interface–id
[remove-rspan-tag] | remote vlan rspan-vlan-id}
[no] monitor session session-number filter {ip access-group [acl-name | acl-
number] | mac access-group acl-name}
no monitor session session-number mode
session-number— Session identification number. (Range: 1-4)
interface interface–id — Ethernet interface (Range: Any valid Ethernet
Port), CPU interface. CPU interface is not supported as a destination
interface or a source interface for RSPAN.
vlan vlan-id— The source VLAN identifier. All the ports in this VLAN are
mirrored in the ingress direction only. The source VLAN must not be the
RSPAN VLAN.
acl-name— An IP or MAC ACL name.
remote vlan rspan-vlan-id— An RSPAN VLAN configured on the source
switch.
rx — Mirrors received packets only. If no option specified, monitors both rx
and tx.