2-220
Catalyst 2950 and Catalyst 2955 Switch Command Reference
OL-10102-01
Chapter 2 Catalyst 2950 and 2955 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. 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.
monitor session session_number {destination {interface interface-id [, | -] [encapsulation
{dot1q}] [ingress vlan vlan id] | 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}] [ingress vlan vlan id] | 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}
Syntax Description
Defaults On a source interface, the default is to monitor both received and transmitted traffic.
session_number Specify the session number identified with the SPAN or RSPAN session.
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 IEEE 802.1Q.
ingress vlan vlan id (Optional) Specify whether forwarding is enabled for ingress traffic on the
destination port. If encapsulation type is not specified, packets are sent in
native form.
Ingress forwarding is not supported on RSPAN destination ports.
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.
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 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.
both, rx, tx (Optional) Specify the traffic direction for each source.
source remote vlan
vlan-id
Specify the source RSPAN VLAN for an RSPAN destination session.
all, local, remote Specify all, local, or remote to clear all SPAN sessions, all local SPAN
sessions, or all RSPAN sessions.