Specifying Vlans To Filter - Cisco WS-C3550-12G Software Configuration Manual

Multilayer switch
Hide thumbs Also See for WS-C3550-12G:
Table of Contents

Advertisement

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:
Source VLANs:
Destination Ports:Gi0/7
Filter VLANs:

Specifying VLANs to Filter

Beginning in privileged EXEC mode, follow these steps to limit SPAN source traffic to specific VLANs:
Command
Step 1
configure terminal
Step 2
no monitor session session_number
Step 3
monitor session session_number interface
interface-id rx
Step 4
monitor session session_number filter vlan
vlan-id [, | -]
Step 5
monitor session session_number
destination interface interface-id
Step 6
end
Catalyst 3550 Multilayer Switch Software Configuration Guide
15-12
RX Only:
None
TX Only:
None
Both:
None
RX Only:
1-3,10
TX Only:
None
Both:
None
Encapsulation: Native
None
Purpose
Enter global configuration mode.
Clear any existing SPAN configuration for the session.
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.
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.
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 interfaces include
physical interfaces.
Return to privileged EXEC mode.
Chapter 15
Configuring SPAN
78-11194-03

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 3550

Table of Contents