user manual
DETAILED STEPS
PurposeCommand or Action
Enters the global configuration mode.configure terminal
Example:
Switch# configure terminal
Step 1
Removes any existing SPAN configuration for the session.
no monitor session {session_number | all | local
| remote}
Step 2
•
For session_number, the range is 1 to 66.
Example:
Switch(config)# no monitor session 2
• all—Removes all SPAN sessions.
• local—Removes all local sessions.
• remote—Removes all remote SPAN sessions.
Specifies the characteristics of the source port (monitored port) and
SPAN session.
monitor session session_number source
interface interface-id
Step 3
Example:
Switch(config)# monitor session 2 source
interface gigabitethernet1/0/2 rx
•
For session_number, the range is 1 to 66.
•
For interface-id, specify the source port to monitor. The interface
specified must already be configured as a trunk port.
Limits the SPAN source traffic to specific VLANs.
monitor session session_number filter vlan
vlan-id [, | -]
Step 4
•
For session_number, enter the session number specified in step
3.
Example:
Switch(config)# monitor session 2 filter
vlan 1 - 5 , 9
•
For vlan-id, the range is 1 to 4094.
•
(Optional) , | - Use a comma (,) to specify a series of VLANs or
use a hyphen (-) to specify a range of VLANs. Enter a space
before and after the comma; enter a space before and after the
hyphen.
Specifies the RSPAN session and the destination remote VLAN
(RSPAN VLAN).
monitor session session_number destination
remote vlan vlan-id
Step 5
Example:
Switch(config)# monitor session 2
destination remote vlan 902
•
For session_number, enter the session number specified in Step
3.
•
For vlan-id, specify the RSPAN VLAN to carry the monitored
traffic to the destination port.
Returns to privileged EXEC mode.end
Example:
Switch(config)# end
Step 6
Catalyst 2960-X Switch Network Management Configuration Guide, Cisco IOS Release 15.0(2)EX
OL-29044-01 87
Configuring SPAN and RSPAN
Specifying VLANs to Filter