Monitor Session - Cisco Catalyst 2950 Command Reference Manual

Desktop switch
Hide thumbs Also See for Catalyst 2950:
Table of Contents

Advertisement

monitor session

monitor session
Use the monitor session global configuration command to start a new Switched Port Analyzer (SPAN)
or Remote SPAN (RSPAN) session. Use the no form of this command to remove the SPAN or the RSPAN
session or to remove source or destination interfaces from the SPAN or RSPAN session.
To use the RSPAN feature, you must have the enhanced software image (EI) installed on your switch.
Syntax Description
session_number
destination interface
interface-id
encapsulation
dot1q
destination remote vlan
vlan-id
reflector-port
interface-id
source interface
interface-id
,
-
both, rx, tx
source remote vlan
vlan-id
all, local, remote
Defaults
On a source interface, the default is to monitor both received and transmitted traffic.
If encapsulation type is not specified on a destination port, packets are sent in native form with no
encapsulation.
Catalyst 2950 Desktop Switch Command Reference
2-100
monitor session session_number {destination {interface interface-id [encapsulation {dot1q}] |
remote vlan vlan-id reflector-port interface-id} | source {interface interface-id [, | -] [both |
rx | tx ] | remote vlan vlan-id}}
no monitor session session_number {destination {interface interface-id [encapsulation {dot1q}]
| remote vlan vlan-id reflector-port interface-id} | source {interface interface-id [, | -] [both
| rx | tx ] | remote vlan vlan-id}}
no monitor session {session_number | all | local | remote}
Specify the session number identified with the SPAN or RSPAN session.
Specify the destination interface for a local SPAN session. Valid interfaces
are physical ports.
(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.
Specify the encapsulation type as 802.1Q.
Specify the destination remote VLAN for an RSPAN source session.
Specify the reflector port used for a source RSPAN session.
Specify the SPAN source interface type, slot, and port number. Valid
interfaces include physical ports and port channels.
Note
Note
(Optional) Specify the traffic direction for each source.
Specify the source RSPAN VLAN for an RSPAN destination session.
Specify all, local, or remote to clear a SPAN or RSPAN session.
(Optional) Specify a series of interfaces, or separate a range of
interfaces from a previous range. Enter a space after the comma.
(Optional) Specify a range of interfaces. Enter a space before and
after the hyphen.
Chapter 2
Cisco IOS Commands
78-11381-05

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents