Users Guide

Table Of Contents
Layer 2 Switching Commands 718
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
| cpu | port-
channel
port-channel-id
}|vlan
vlan-id
| remote vlan
rspan-vlan-id
}[rx | tx]
no monitor session
session-number
source {interface {
interface–id
| cpu |
port-channel
port-channel-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–id
— Physical Ethernet interface.
cpu
—The CPU interface.
port-channel–id
— A port channel identifier.
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.
tx — Mirrors transmitted packets only. If no option is specified, monitors
both rx and tx.
both—Mirrors both ingress and egress. This is the default.