Administrator Guide

Layer 2 Switching Commands 668
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 destinaqtion for mirroring. Packets are copied from
the source to the destination. Use the source interace parameter to specify
the interface to monitor. Use rx to monitor only ingress packets, or use tx to
monitor only egress packets. If you do not specify an rx or tx option, the
session monitors both ingress and egress packets. Use the destination
interface to specify the interface to receive the monitored traffic. Use the
mode parameter to enabled the administrative mode of the session. If
enabled, the probe port monitors all the traffic received and transmitted on
the physical monitored port.
Use the no form of the command to remove 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
|
remote vlan
rspan-vlan-id
}
[no] monitor session session_number filter { ip access-group [
acl-name
|
acl-number
] | mac access-group
acl-name
}
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. The source VLAN must not be the RSPAN VLAN.
2CSNXXX_SWUM204.book Page 668 Monday, January 25, 2016 1:25 PM