15-12
Catalyst 3550 Multilayer Switch Software Configuration Guide
78-11194-03
Chapter15 Configuring SPAN
Configuring SPAN
This example shows how to clear any existing configuration on SPAN session 2, configure SPAN session
2 to monitor received traffic on all ports belonging to VLANs 1 through 3, and send it to destination
port 7. The configuration is then modified to also monitor received traffic on all ports belonging to
VLAN 10.
Switch(config)# no monitor session 2
Switch(config)# monitor session 2 source vlan 1 - 3 rx
Switch(config)# monitor session 2 destination interface gigabitethernet0/7
Switch(config)# monitor session 2 source vlan 10 rx
Switch(config)# end
Switch# show monitor session 2
Session 2
---------
Source Ports:
RX Only: None
TX Only: None
Both: None
Source VLANs:
RX Only: 1-3,10
TX Only: None
Both: None
Destination Ports:Gi0/7
Encapsulation: Native
Filter VLANs: None
Specifying VLANs to Filter
Beginning in privileged EXEC mode, follow these steps to limit SPAN source traffi c to specific VLAN s:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 no monitor session session_number Clear any existing SPAN configuration for the session.
Step3 monitor session session_number interface
interface-id rx Specify the characteristics of the source port (monitored port) and
SPAN session.
For session_number, specify 1 or 2.
For interface-id, specify the source port to monitor. The interface
specified must already be configured as a trunk port.
Step4 monitor session session_number filter vlan
vlan-id [, | -]Limit the SPAN source traffic to specific VLANs.
For session_number, specify 1 or 2.
For vlan-id, the range is 1 to 1005.
(Optional) Use a comma (,) to specify a series of VLANs or use a
hyphen (-) to specify a range of VLANs. Enter a space after the
comma; enter a space before and after the hyphen.
Step5 monitor session session_number
destination interface interface-id Specify the characteristics of the destination port (monitoring port)
and SPAN session.
For session_number, specify 1 or 2.
For interface-id, specify the destination port. Valid inte rf ace s inclu de
physical interfaces.
Step6 end Return to privileged EXEC mode.