21-11
Catalyst 2950 Desktop Switch Software Configuration Guide
78-14982-01
Chapter 21 Configuring SPAN and RSPAN Configuring SPAN

Removing Ports from a SPAN Session

Beginning in privileged EXEC mode, follow these steps to remove a port as a SPAN source for a session:
To remove a so urce o r des tina tion por t f rom the SPAN sessi on, us e the no monitor session
session_number sour ce interface interface-id global configuration command or the no monitor session
session_number destination interface interface-id global configuration command. To change the
encapsu lati on type bac k to the de fault (na tive), use t he monitor session session_number destination
interface interface-id witho ut th e encapsulation keyword.
This exam ple sh ows how to remove port 1 a s a SPAN sourc e fo r SPAN sessi on 1:
Switch(config)# no monitor session 1 source interface fastEthernet0/1
Switch(config)# end
This exampl e shows how to disabl e received traffic monitor ing on por t 1, which was co nfigured for
bidirec tional mo nitorin g:
Switch(config)# no monitor session 1 source interface fastEthernet0/1 rx
The mo nitoring of traffic received on port 1 is di sabled, but traffic sent from thi s port co ntinues to be
monitored.
Command Purpose
Step 1 configure terminal Enter globa l configurati on mode.
Step 2 no monitor session session_number source
interface interface-id [, | -] [both | rx | tx]Specify the characteristi cs of the source port (monito re d port) and
SPAN session to remove.
For session, specify 1 or 2.
For interface-id, specify the source port to no longer monitor . Valid
interfaces includ e physica l interfac es and port -channe l logica l
inte rfa ces (port-channel port-channel-number).
(Optional) Use [, | -] to specify a series or range of inte rfaces if they
were con figured. This opt ion is valid when monitor ing only
received traffic. Enter a space after the comma; enter a space
before an d after th e hyphen.
(Optional) Specify the direction of traffic (both, rx, or tx) to no
longer moni tor. If yo u d o n ot sp ec ify a t raffic directi on, bo t h
transmit and receive are disabled.
Step 3 end Return to privileged EXEC mode.
Step 4 show monitor [session session_number] Verify your entries.
Step 5 copy running-config startup-config (Optiona l) Save your entries in the co nfigurati on file.