Specifications

2-113
Catalyst 2950 and Catalyst 2955 Switch Command Reference
78-15304-01
Chapter 2 Cisco IOS Commands
monitor session
monitor session
Use the monitor session global configuration command to start a new Switched Port Analyzer (SPAN)
or Remote SPAN (RSPAN) session, to add or delete interfaces or VLANs to or from an existing SPAN
or RSPAN session, and to limit (filter) SPAN source traffic to specific source VLANs. Use the no form
of this command to remove the SPAN or the RSPAN session or to remove source or destination interfaces
or filters from the SPAN or RSPAN session.
monitor session session_number {destination {interface interface-id [encapsulation {dot1q |
isl}] | remote vlan vlan-id reflector-port interface-id} | filter vlan vlan-id [, | -] | source
{interface interface-id [, | -] [both | rx | tx ] | remote vlan vlan-id | vlan vlan-id [, | -] rx}}
no monitor session session_number {destination {interface interface-id [encapsulation {dot1q |
isl}] | remote vlan vlan-id reflector-port interface-id} | filter vlan vlan-id [, | -] | source
{interface interface-id [, | -] [both | rx | tx ] | remote vlan vlan-id | vlan vlan-id [, | -] rx}}
no monitor session {session_number | all | local | remote}
Syntax Description session_number Specify the session number identified with the SPAN or RSPAN session.
Valid values are 1 and 2.
destination interface
interface-id
Specify the destination interface for a local SPAN session. Valid interfaces
are physical ports.
encapsulation (Optional) Specify the encapsulation header for outgoing packets through a
destination port. If encapsulation type is not specified, packets are sent in
native form. To reconfigure a destination port in native form, enter the
command without the encapsulation keyword.
dot1q Specify the encapsulation type as 802.1Q.
isl (Optional) Specify the encapsulation type as ISL.
destination remote vlan
vlan-id
Specify the destination remote VLAN for an RSPAN source session.
reflector-port
interface-id
Specify the reflector port used for a source RSPAN session.
filter vlan vlan-id Specify a list of VLANs as filters on trunk source ports. The vlan-id range
is 1 to 4094; do not enter leading zeros.
source interface
interface-id
Specify the SPAN source interface type, slot, and port number. Valid
interfaces include physical ports and port channels.
, (Optional) Specify a series of interfaces or VLANs, or separate a range of
interfaces or VLANs from a previous range. Enter a space after the comma.
Note For source interface, you can configure the first port to monitor
egress traffic; others will be ingress only if a range or list is
specified.
- (Optional) Specify a range of interfaces or VLANs. Enter a space before
and after the hyphen.
Note For source interface, you can configure the first port to monitor
egress traffic; others will be ingress only if a range or list is
specified.