2-261
Catalyst 3550 Multilayer Switch Command Reference
OL-8566-02
Chapter 2 Catalyst 3550 Switch 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 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
[ingress vlan vlan-id] | ISL [ingress]} [ingress vlan vlan-id] | 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
[ingress vlan vlan-id] | ISL [ingress]} [ingress vlan vlan-id] | 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.
The range is 1 to 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 (Optional) Specify the encapsulation type as IEEE 802.1Q.
isl (Optional) Specify the encapsulation type as ISL.
ingress vlan vlan-id (Optional) Specify whether forwarding is enabled for ingress traffic on the
destination port.
• For native (untagged) and dot1q encapsulation, specify ingress vlan
vlan-id to enable ingress forwarding with vlan id as the native VLAN.
Vlan-id is also used as the native VLAN for transmitted packets.
• Specify ingress to enable ingress forwarding when using ISL
encapsulation.
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 range is 1 to
4094.
source interface
interface-id
Specify the SPAN source interface type, slot, and port number. Valid
interfaces include physical ports and port channels.